repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/cuda/include/csr_type.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.029108
/** * Copyright (c) 2019-2021 ETH Zurich, Automatic Control Lab, * Michel Schubiger, Goran Banjac. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/cuda/include/cuda_csr.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.075334
/** * Copyright (c) 2019-2021 ETH Zurich, Automatic Control Lab, * Michel Schubiger, Goran Banjac. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/cuda/include/cuda_memory.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.156254
/** * Copyright (c) 2019-2021 ETH Zurich, Automatic Control Lab, * Michel Schubiger, Goran Banjac. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/cuda/include/cuda_wrapper.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.157292
/** * Copyright (c) 2019-2021 ETH Zurich, Automatic Control Lab, * Michel Schubiger, Goran Banjac. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/cuda/include/cuda_lin_alg.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.163760
/** * Copyright (c) 2019-2021 ETH Zurich, Automatic Control Lab, * Michel Schubiger, Goran Banjac. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/cuda/include/helper_cuda.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.167416
/* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of condi...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/cuda/include/cuda_handler.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.193181
/** * Copyright (c) 2019-2021 ETH Zurich, Automatic Control Lab, * Michel Schubiger, Goran Banjac. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/cuda/include/helper_string.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.223718
/* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of condi...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/cuda/lin_sys/indirect/cuda_pcg.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.227525
/** * Copyright (c) 2019-2021 ETH Zurich, Automatic Control Lab, * Michel Schubiger, Goran Banjac. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/mkl/algebra_impl.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.886175
#ifndef ALGEBRA_IMPL_H #define ALGEBRA_IMPL_H #include <mkl_spblas.h> #include "csc_math.h" #ifdef __cplusplus extern "C" { #endif /********************************************* * Internal definition of OSQPVector types * and supporting definitions *********************************************/ struct OSQPVect...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/cuda/lin_sys/indirect/cuda_pcg_interface.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.917713
/** * Copyright (c) 2019-2021 ETH Zurich, Automatic Control Lab, * Michel Schubiger, Goran Banjac. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/mkl/lin_sys/direct/pardiso_interface.c
null
null
null
null
null
null
C
2026-05-04T19:37:01.934824
#include "pardiso_interface.h" #include "algebra_impl.h" #include "printing.h" #include "util.h" #include "profilers.h" #if OSQP_EMBEDDED_MODE != 1 #include "kkt.h" #endif #include "mkl_service.h" #include "mkl_pardiso.h" // Solver Phases #define PARDISO_SYMBOLIC (11) #define PARDISO_NUMERIC (22) #define PARDISO_...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/mkl/lin_sys/indirect/mkl-cg_interface.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.942270
#ifndef MKL_CG_INTERFACE_H #define MKL_CG_INTERFACE_H #include "osqp.h" #include "types.h" //OSQPMatrix and OSQPVector[fi] types #include <mkl_rci.h> //MKL_INT typedef struct mklcg_solver_ { enum osqp_linsys_solver_type type; /** * @name Functions * @{ */ const char* (*name)(struct mklcg_solver...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/mkl/matrix.c
null
null
null
null
null
null
C
2026-05-04T19:37:01.946808
#include "osqp.h" #include "lin_alg.h" #include "algebra_impl.h" #include "csc_math.h" #include "csc_utils.h" #include "printing.h" #include "blas_helpers.h" /* logical test functions ----------------------------------------------------*/ OSQPInt OSQPMatrix_is_eq(const OSQPMatrix* A, const ...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/mkl/blas_helpers.h
null
null
null
null
null
null
C
2026-05-04T19:37:01.951997
#ifndef BLAS_HELPERS_H_ #define BLAS_HELPERS_H_ #include "osqp_configure.h" #include <mkl.h> #include <mkl_cblas.h> #include <mkl_spblas.h> #include <mkl_vml.h> /* Let the user override the MKL memory alignment if they really want, but default to 64-bytes alignment if nothing is specified. */ #ifndef OSQP_MKL_MEM...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/mkl/lin_sys/indirect/mkl-cg_interface.c
null
null
null
null
null
null
C
2026-05-04T19:37:01.952518
#include "algebra_impl.h" #include "algebra_vector.h" #include "reduced_kkt.h" #include "mkl-cg_interface.h" #include "util.h" #include <mkl_rci.h> #include "profilers.h" OSQPFloat cg_compute_tolerance(OSQPInt admm_iter, OSQPFloat rhs_norm, OSQPFloat ...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/mkl/lin_sys/direct/pardiso_interface.h
null
null
null
null
null
null
C
2026-05-04T19:37:02.010372
#ifndef PARDISO_INTERFACE_H #define PARDISO_INTERFACE_H #include "osqp.h" #include "types.h" //OSQPMatrix and OSQPVector[fi] types /** * Pardiso solver structure * * NB: If we use Pardiso, we suppose that OSQP_EMBEDDED_MODE is not enabled */ typedef struct pardiso pardiso_solver; struct pardiso { enum osqp...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/mkl/vector.c
null
null
null
null
null
null
C
2026-05-04T19:37:02.012919
#include "osqp.h" #include "algebra_vector.h" #include "algebra_impl.h" #include "stdio.h" #include "time.h" #include "blas_helpers.h" /* VECTOR FUNCTIONS ----------------------------------------------------------*/ OSQPInt OSQPVectorf_is_eq(const OSQPVectorf* A, const OSQPVectorf* B, ...
osqp/osqp
https://github.com/osqp/osqp
null
null
null
null
2,120
null
null
apache-2.0
null
null
null
null
null
null
null
algebra/mkl/algebra_libs.c
null
null
null
null
null
null
C
2026-05-04T19:37:02.053408
#include "osqp_configure.h" #include "osqp_api_constants.h" #include "osqp_api_types.h" #include "pardiso_interface.h" #include "mkl-cg_interface.h" #include "profilers.h" #include "util.h" #include <mkl.h> #include <stdio.h> OSQPInt osqp_algebra_linsys_supported(void) { /* Has both Paradiso (direct solver) and a...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/WinDNS.h
null
null
null
null
null
null
C
2026-05-04T19:37:06.305726
/*++ Copyright (c) 1996-2005 Microsoft Corporation Module Name: windns.h Abstract: Domain Name System (DNS) DNS definitions and DNS API. Author: Jim Gilroy (jamesg) December 7, 1996 Revision History: --*/ #ifndef _WINDNS_INCLUDED_ #define _WINDNS_INCLUDED_ #ifdef __cplusplus extern "C...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/PshPack8.h
null
null
null
null
null
null
C
2026-05-04T19:37:06.505727
/*++ Copyright (c) Microsoft Corporation. All rights reserved. Module Name: pshpack8.h Abstract: This file turns 8 byte packing of structures on. (That is, it disables automatic alignment of structure fields.) An include file is needed because various compilers do this in different ways. For Mi...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/Midles.h
null
null
null
null
null
null
C
2026-05-04T19:37:06.628654
/*++ Copyright (c) Microsoft Corporation. All rights reserved. Module Name: midles.h Abstract: This module contains definitions needed for encoding/decoding support (serializing/deserializing a.k.a. pickling). --*/ #ifndef __MIDLES_H__ #define __MIDLES_H__ #if _MSC_VER > 1000 #pragma once #endif #i...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/SubAuth.h
null
null
null
null
null
null
C
2026-05-04T19:37:06.638587
/*++ BUILD Version: 0005 Increment this if a change has global effects Copyright (c) Microsoft Corporation. All rights reserved. Module Name: subauth.h Abstract: This module defines types and macros for Subauthentication Packages. Revision History: --*/ #ifndef _NTSUBAUTH_ #define _NTSUBAUTH_ #ifde...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/WinBer.h
null
null
null
null
null
null
C
2026-05-04T19:37:06.642279
/*++ Copyright (c) 1996-1999 Microsoft Corporation Module Name: winber.h Basic Encoding Rules (BER) API header file Abstract: This module is the header file for the 32 bit BER library on Windows NT and Windows 95. Updates : Environments : Win32 user mode --*/ // // Only pull in this header fi...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/DsGetDC.h
null
null
null
null
null
null
C
2026-05-04T19:37:06.646851
/*++ BUILD Version: 0001 // Increment this if a change has global effects Copyright (c) 1996-1999 Microsoft Corporation Module Name: dsgetdc.h Abstract: This file contains structures, function prototypes, and definitions for the DsGetDcName API. Environment: User Mode - Win32 Notes: --*/ ...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/DhcpSSdk.h
null
null
null
null
null
null
C
2026-05-04T19:37:06.758868
/*++ Copyright (C) 1997-1999 Microsoft Corporation Module Name: dhcpssdk.h Abstract: Header for writing a DHCP Callout DLL. --*/ #ifndef _CALLOUT_H_ #define _CALLOUT_H_ #ifdef __cplusplus extern "C" { #endif #if _MSC_VER > 1000 #pragma once #endif // This structure could change any day. This wil...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/Fci.h
null
null
null
null
null
null
C
2026-05-04T19:37:06.760073
/*** types.h - Common defines for FCI/FDI stuff -- goes into FCI/FDI.H * * Copyright (C) Microsoft Corporation * All Rights Reserved. * */ #ifndef INCLUDED_TYPES_FCI_FDI #define INCLUDED_TYPES_FCI_FDI 1 #ifdef __cplusplus extern "C" { /* Assume C declarations for C++ */ #endif /* __cplusplus */...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/NTSecPKG.h
null
null
null
null
null
null
C
2026-05-04T19:37:06.925438
/*++ BUILD Version: 0000 Increment this if a change has global effects Copyright (c) Microsoft Corporation. All rights reserved. Module Name: ntsecpkg.h Abstract: This module defines the structures and APIs for use by a authentication or security package. Revision History: --*/ #ifndef _NTSECPKG...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/cardmod.h
null
null
null
null
null
null
C
2026-05-04T19:37:07.065804
//==============================================================; // // CARDMOD.H // // Abstract: // This is the header file commonly used for card modules. // // This source code is only intended as a supplement to existing Microsoft // documentation. // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHO...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/fltUser.h
null
null
null
null
null
null
C
2026-05-04T19:37:07.187317
/*++ Copyright (c) 1989-2002 Microsoft Corporation Module Name: fltUser.h Abstract: Header file which contains the structures, type definitions, constants, global variables and function prototypes that are visible to user mode applications that interact with filters. Environment: User mode -...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/Winldap.h
null
null
null
null
null
null
C
2026-05-04T19:37:07.188788
/*++ Copyright (c) 1996-1999 Microsoft Corporation Module Name: winldap.h LDAP client 32 API header file Abstract: This module is the header file for the 32 bit LDAP client API for Windows NT and Windows 95. This API is based on RFC 1823 with some enhancements for LDAP v3. Notes about Unicode ...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/msasn1.h
null
null
null
null
null
null
C
2026-05-04T19:37:07.357869
/* Copyright (C) Boris Nikolaus, Germany, 1996-1997. All rights reserved. */ /* Copyright (C) Microsoft Corporation 1997-1998, All rights reserved. */ #ifndef __MS_ASN1_H__ #define __MS_ASN1_H__ #include <pshpack8.h> /* Assume 8 byte packing throughout */ #ifdef __cplusplus extern "C" { #endif /* ------ Basic integ...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/globals.h
null
null
null
null
null
null
C
2026-05-04T19:37:07.384662
#pragma once #include <ntstatus.h> #define WIN32_NO_STATUS #define SECURITY_WIN32 #define CINTERFACE #define COBJMACROS #include <windows.h> #include <sspi.h> #include <sddl.h> #include <wincred.h> #include <ntsecapi.h> #include <ntsecpkg.h> #include <stdio.h> #include <wchar.h> #include "../modules/kull_m_output.h" //...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/fltUserStructures.h
null
null
null
null
null
null
C
2026-05-04T19:37:07.388384
/*++ Copyright (c) 1989-2002 Microsoft Corporation Module Name: fltUserStructures.h Abstract: This contains structures, types, and defintiions that are common to both USER mode and KERNEL mode environments. Environment: User mode --*/ #ifndef __FLT_USER_STRUCTURES_H__ #define __FLT_USER_STRUCTU...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/schannel.h
null
null
null
null
null
null
C
2026-05-04T19:37:07.395743
//+--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1992-1999. // // File: schannel.h // // Contents: Public Definitions for SCHANNEL Security Provider // // Classes: // // Functions: // //--------------------------...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/schnlsp.h
null
null
null
null
null
null
C
2026-05-04T19:37:07.485119
//+--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1992-1999. // // File: schnlsp.h // // Contents: Public Definitions for SCHANNEL Security Provider // // Classes: // // Functions: // //---------------------------...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/inc/wincred.h
null
null
null
null
null
null
C
2026-05-04T19:37:07.492871
/*++ BUILD Version: 0001 // Increment this if a change has global effects Copyright (c) 2000 Microsoft Corporation Module Name: wincred.h Abstract: This module contains the public data structures and API definitions needed for the Credential Manager. Author: Revision History: --*/ #ifndef _WIN...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/globals.h
null
null
null
null
null
null
C
2026-05-04T19:37:07.665409
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include <ntifs.h> #include <fltkernel.h> #include <ntddk.h> #include <aux_klib.h> #include <ntstrsafe.h> #include <string.h> #include "ioctl.h" #define POOL_TAG '...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/ioctl.h
null
null
null
null
null
null
C
2026-05-04T19:37:07.748092
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #define IOCTL_MIMIDRV_RAW CTL_CODE(FILE_DEVICE_UNKNOWN, 0x000, METHOD_NEITHER, FILE_READ_DATA | FILE_WRITE_DATA) #define IOCTL_MIMIDRV_PING CTL_CODE(FILE_DEVICE_UNKNOWN,...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/kkll_m_filters.c
null
null
null
null
null
null
C
2026-05-04T19:37:07.912327
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kkll_m_filters.h" const ULONG MF_OffSetTable[KiwiOsIndex_MAX][MF_MAX] = { /* CallbackOffset, CallbackPreOffset, CallbackPostOffset, CallbackVolumeNameOffset */ #i...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/kkll_m_filters.h
null
null
null
null
null
null
C
2026-05-04T19:37:07.914078
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "globals.h" #include "kkll_m_modules.h" typedef enum _KIWI_MF_INDEX { CallbackOffset = 0, CallbackPreOffset = 1, CallbackPostOffset = 2, Callba...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/kkll_m_memory.c
null
null
null
null
null
null
C
2026-05-04T19:37:08.120312
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kkll_m_memory.h" NTSTATUS kkll_m_memory_search(const PUCHAR adresseBase, const PUCHAR adresseMaxMin, const UCHAR *pattern, PUCHAR *addressePattern, SIZE_T longueur) {...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/kkll_m_modules.c
null
null
null
null
null
null
C
2026-05-04T19:37:08.255424
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kkll_m_modules.h" NTSTATUS kkll_m_modules_enum(SIZE_T szBufferIn, PVOID bufferIn, PKIWI_BUFFER outBuffer, PKKLL_M_MODULE_CALLBACK callback, PVOID pvArg) { NTSTATUS s...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/kkll_m_memory.h
null
null
null
null
null
null
C
2026-05-04T19:37:08.256514
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "globals.h" typedef struct _KKLL_M_MEMORY_PATTERN { DWORD Length; PUCHAR Pattern; } KKLL_M_MEMORY_PATTERN, *PKKLL_M_MEMORY_PATTERN; typedef struct _KKL...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/kkll_m_modules.h
null
null
null
null
null
null
C
2026-05-04T19:37:08.272568
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "globals.h" typedef NTSTATUS (* PKKLL_M_MODULE_CALLBACK) (SIZE_T szBufferIn, PVOID bufferIn, PKIWI_BUFFER outBuffer, PAUX_MODULE_EXTENDED_INFO pModule, PV...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/kkll_m_notify.h
null
null
null
null
null
null
C
2026-05-04T19:37:08.298535
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "globals.h" #include "kkll_m_memory.h" #include "kkll_m_modules.h" #define OBJECT_HASH_TABLE_SIZE 37 #define CM_REG_MAX_CALLBACKS 100 typedef struct _KKL...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/kkll_m_notify.c
null
null
null
null
null
null
C
2026-05-04T19:37:08.313208
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kkll_m_notify.h" PVOID *PspCreateThreadNotifyRoutine = NULL, *PspCreateProcessNotifyRoutine = NULL, *PspLoadImageNotifyRoutine = NULL; ULONG PspCreateThreadNotifyRout...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/kkll_m_process.c
null
null
null
null
null
null
C
2026-05-04T19:37:08.505170
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kkll_m_process.h" const ULONG EPROCESS_OffSetTable[KiwiOsIndex_MAX][Eprocess_MAX] = { /* EprocessNext, EprocessFlags2, TokenPrivs, SignatureProtect */ /* d...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/kkll_m_process.h
null
null
null
null
null
null
C
2026-05-04T19:37:08.656291
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "globals.h" typedef enum _KIWI_PROCESS_INDEX { EprocessNext = 0, EprocessFlags2 = 1, TokenPrivs = 2, SignatureProtect= 3, Eprocess_MAX = 4, } KIWI_...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/kkll_m_ssdt.h
null
null
null
null
null
null
C
2026-05-04T19:37:09.078490
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "globals.h" #include "kkll_m_modules.h" #include "kkll_m_memory.h" typedef struct _SERVICE_DESCRIPTOR_TABLE { #if defined(_M_IX86) PVOID *ServiceTable; #...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/kkll_m_ssdt.c
null
null
null
null
null
null
C
2026-05-04T19:37:09.183940
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kkll_m_ssdt.h" #if defined(_M_X64) PSERVICE_DESCRIPTOR_TABLE KeServiceDescriptorTable = NULL; #endif NTSTATUS kkll_m_ssdt_list(PKIWI_BUFFER outBuffer) { NTSTATUS ...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/mimidrv.c
null
null
null
null
null
null
C
2026-05-04T19:37:09.258103
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "mimidrv.h" UNICODE_STRING uStrDriverName = {30, 32, L"\\Device\\" MIMIDRV}, uStrDosDeviceName = {38, 40, L"\\DosDevices\\" MIMIDRV}; NTSTATUS UnSupported(PDEVICE_OB...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/crypto/kuhl_m_crypto_extractor.c
null
null
null
null
null
null
C
2026-05-04T19:37:09.516392
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kuhl_m_crypto_extractor.h" void kuhl_m_crypto_extractor_capi32(PKULL_M_MEMORY_ADDRESS address) { KIWI_CRYPTKEY32 kKey; KIWI_UNK_INT_KEY32 kUnk; KIWI_RAWKEY32 kRaw;...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/mimikatz.c
null
null
null
null
null
null
C
2026-05-04T19:37:09.534426
#include "mimikatz.h" const KUHL_M * mimikatz_modules[] = { // &kuhl_m_standard, // &kuhl_m_crypto, &kuhl_m_sekurlsa, // &kuhl_m_kerberos, // commenting out to get compiled out via optimizations. &kuhl_m_privilege, &kuhl_m_process, // &kuhl_m_service, // commenting out to get compiled out via optimizations. &kuhl_...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/crypto/kuhl_m_crypto_extractor.h
null
null
null
null
null
null
C
2026-05-04T19:37:09.551591
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "../kuhl_m.h" #include "../../../modules/kull_m_crypto.h" #include "../../../modules/kull_m_memory.h" #include "../../../modules/kull_m_process.h" void ku...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimidrv/mimidrv.h
null
null
null
null
null
null
C
2026-05-04T19:37:09.600632
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "globals.h" #include "kkll_m_process.h" #include "kkll_m_modules.h" #include "kkll_m_ssdt.h" #include "kkll_m_notify.h" #include "kkll_m_filters.h" extern...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/mimikatz.h
null
null
null
null
null
null
C
2026-05-04T19:37:09.634698
#pragma once #include "globals.h" #include "modules/kuhl_m_standard.h" #include "modules/kuhl_m_crypto.h" #include "modules/sekurlsa/kuhl_m_sekurlsa.h" #include "modules/kerberos/kuhl_m_kerberos.h" #include "modules/kuhl_m_process.h" #include "modules/kuhl_m_service.h" #include "modules/kuhl_m_privilege.h" #include "m...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/crypto/kuhl_m_crypto_patch.c
null
null
null
null
null
null
C
2026-05-04T19:37:09.673045
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kuhl_m_crypto_patch.h" PCP_EXPORTKEY K_RSA_CPExportKey = NULL, K_DSS_CPExportKey = NULL; BYTE PATC_WIN5_CPExportKey_EXPORT[] = {0xeb}; BYTE PATC_W6AL_CPExportKey_EXP...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/crypto/kuhl_m_crypto_patch.h
null
null
null
null
null
null
C
2026-05-04T19:37:09.941993
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "../kuhl_m.h" #include "../../../modules/kull_m_patch.h" #include "../../../modules/kull_m_crypto.h" typedef BOOL (WINAPI * PCP_EXPORTKEY) (IN HCRYPTPROV ...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/crypto/kuhl_m_crypto_pki.h
null
null
null
null
null
null
C
2026-05-04T19:37:10.031848
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "../kuhl_m.h" #include "../../../modules/kull_m_string.h" #include "../../../modules/kull_m_crypto.h"//*_system.h" //#include "../kuhl_m_crypto.h" typedef...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/crypto/kuhl_m_crypto_pki.c
null
null
null
null
null
null
C
2026-05-04T19:37:10.044994
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kuhl_m_crypto_pki.h" BOOL kuhl_m_crypto_c_sc_auth_quickEncode(__in LPCSTR lpszStructType, __in const void *pvStructInfo, PDATA_BLOB data) { BOOL status = FALSE; dat...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/crypto/kuhl_m_crypto_sc.c
null
null
null
null
null
null
C
2026-05-04T19:37:10.065335
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kuhl_m_crypto_sc.h" DWORD kuhl_m_crypto_l_sc_provtypefromname(LPCWSTR szProvider) { DWORD result = 0, provType, tailleRequise, index = 0; wchar_t * monProvider; fo...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/dpapi/kuhl_m_dpapi.c
null
null
null
null
null
null
C
2026-05-04T19:37:10.295043
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kuhl_m_dpapi.h" const KUHL_M_C kuhl_m_c_dpapi[] = { {kuhl_m_dpapi_blob, L"blob", L"Describe a DPAPI blob, unprotect it with API or Masterkey"}, {kuhl_m_dpapi_pro...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/crypto/kuhl_m_crypto_sc.h
null
null
null
null
null
null
C
2026-05-04T19:37:10.323288
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "../kuhl_m_crypto.h" #include <cardmod.h> //#include "../../../modules/kull_m_crypto.h" NTSTATUS kuhl_m_crypto_l_sc(int argc, wchar_t * argv[]); void kuh...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/dpapi/kuhl_m_dpapi.h
null
null
null
null
null
null
C
2026-05-04T19:37:10.338873
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "globals.h" #include "../kuhl_m.h" #include "../modules/kull_m_file.h" #include "../modules/kull_m_dpapi.h" #include "kuhl_m_dpapi_oe.h" #include "package...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/dpapi/kuhl_m_dpapi_oe.c
null
null
null
null
null
null
C
2026-05-04T19:37:10.342596
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kuhl_m_dpapi_oe.h" LIST_ENTRY gDPAPI_Masterkeys = {&gDPAPI_Masterkeys, &gDPAPI_Masterkeys}; LIST_ENTRY gDPAPI_Credentials = {&gDPAPI_Credentials, &gDPAPI_Credentials}...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/dpapi/kuhl_m_dpapi_oe.h
null
null
null
null
null
null
C
2026-05-04T19:37:10.455109
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "globals.h" #include "kuhl_m_dpapi.h" #include "../modules/rpc/kull_m_rpc_dpapi-entries.h" typedef struct _KUHL_M_DPAPI_OE_MASTERKEY_ENTRY { LIST_ENTRY n...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/dpapi/packages/kuhl_m_dpapi_chrome.c
null
null
null
null
null
null
C
2026-05-04T19:37:10.470220
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #include "kuhl_m_dpapi_chrome.h" NTSTATUS kuhl_m_dpapi_chrome(int argc, wchar_t * argv[]) { LPCWSTR infile, szKey; PSTR aInfile; int rc; sqlite3 *pDb; sqlite3_stmt * pStmt...
center-for-threat-informed-defense/adversary_emulation_library
https://github.com/center-for-threat-informed-defense/adversary_emulation_library
null
null
null
null
2,096
null
null
apache-2.0
null
null
null
null
null
null
null
carbanak/Resources/utilities/attackkatz-source/mimikatz/modules/dpapi/packages/kuhl_m_dpapi_chrome.h
null
null
null
null
null
null
C
2026-05-04T19:37:10.590205
/* Benjamin DELPY `gentilkiwi` http://blog.gentilkiwi.com benjamin@gentilkiwi.com Licence : https://creativecommons.org/licenses/by/4.0/ */ #pragma once #include "../kuhl_m_dpapi.h" #include "../modules/sqlite3.h" NTSTATUS kuhl_m_dpapi_chrome(int argc, wchar_t * argv[]); BOOL kuhl_m_dpapi_chrome_isTableExist(sqlite...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
4 Tree/1-二叉树 /btree/队列.h
null
null
null
null
null
null
C
2026-05-04T19:37:17.087717
// // 队列.h // 只在一段进行插入,另一端删除元素 // // Created by mac on 13-9-8. // Copyright (c) 2013年 xiaoran. All rights reserved. // #ifndef DS____h #define DS____h #include "public.h" #include "bintree.c" typedef BiTNode ElemType; //队列的顺序存储 typedef struct Node{ ElemType *elem; ElemType *head; ElemType *tail...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
4 Tree/1-二叉树 /rbtree.c
null
null
null
null
null
null
C
2026-05-04T19:37:17.089225
/* ### 红黑树基础 一种自平衡的二叉查找树。在每个节点中增加一个存储位表示节点的颜色,可以是red或black 红黑树比AVL树优秀在哪? 5个性质 性质1. 节点是红色或黑色。 性质2. 根是黑色。 性质3. 所有叶子都是黑色(叶子是NIL节点)。 性质4. 每个红色节点的两个子节点都是黑色。(从每个叶子到根的所有路径上不能有两个连续的红色节点) 性质5. 从任一节点到其每个叶子的所有简单路径 都包含相同数目的黑色节点。 ### 红黑树应用 ### 存储结构 ### 问题与延伸阅读 */ typedef int ElemType typedef struct node{ int c...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
4 Tree/1-二叉树 /btree.c
null
null
null
null
null
null
C
2026-05-04T19:37:17.090157
/* ### B树基础 B树即B-tree(B树就是B-tree),B是balanced,也就是平衡的意思。 B树又叫平衡多路查找树,节点的直接点个数可以多于2个,一颗m阶的B树: 1) 树中每个节点做多含有m个子节点 2) 根节点不是叶子节点,至少有2个孩子 3) 所有叶子节点在同一层 4) 除根节点和叶子节点外,每个分支节点至少有[m/2]个子树 5) 有j个孩子的非叶子节点有 j-1 个关键码,关键码递增一次排列 ### B树应用 数据库 文件系统 ### B树存储结构 ### B树问题和延伸阅读 */
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
3 Hash Table/hash_ref.c
null
null
null
null
null
null
C
2026-05-04T19:37:17.112401
#include "stdio.h" #include "stdlib.h" #include "string.h" #include "time.h" #define DEFAULT_MAP_SIZE 1<<5 #define MAX_MAP_SIZE 1<<30 #define CAPACITY_FACTOR 0.6f #define MAX_KEY_LENGTH 1<<3 typedef unsigned int Hash; typedef char* Key; typedef int Value; typedef struct Entry{ struct Entry *next; Hash hash; ...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
4 Tree/2-二叉查找树/BiSearchTree/bisearchtree.h
null
null
null
null
null
null
C
2026-05-04T19:37:17.113685
// // bisearchtree.h // BiSearchTree // // Created by nonstriater on 14-2-22. // // /** * 二叉查找树(Binary search tree),也叫有序二叉树(Ordered binary tree),排序二叉树(Sorted binary tree)。是指一个空树或者具有下列性质的二叉树: 1. 若任意节点的左子树不为空,则左子树上所有的节点值小于它的根节点值 2. 若任意节点的右子树不为空,则右子树上所有节点的值均大于它的根节点的值 3. 任意节点左右子树也为二叉查找树 4. 没有键值相等的节点 */ #i...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
4 Tree/1-二叉树 /suffix_tree.c
null
null
null
null
null
null
C
2026-05-04T19:37:17.122788
/* ### 后缀树(suffix tree)基础 又叫后缀trie,与trie最大不同在于:字符串集合由指定的后缀子串组成。 很适合用来操作字符串的子串。 用于字符串的匹配和查询 ### 后缀树应用 从目标串T中判断是否包含模式串P(时间复杂度接近KMP算法); 从目标串T中查找最长的重复子串; 从目标串T1和T2中查找最长公共子串; Ziv-Lampel无损压缩算法; 从目标串T中查找最长的回文子串; ### 存储结构 ### suffix tree 问题与延伸阅读 后缀数组 */
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
3 Hash Table/HashTable.c
null
null
null
null
null
null
C
2026-05-04T19:37:17.124218
#include "stdio.h" typedef char * Key; typedef int Value; typedef unsigned int Hash; typedef struct Entry { struct Entry *next; Hash hash; // key 对应的hash值 Key key; Value value; }Entry; // 拉链法实现,也就是链表的数组.也是 数组和链表优势的结合 typedef struct HashTable{ Entry **head; unsigned int size; unsigned int usage; }Ha...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
4 Tree/1-二叉树 /btree/bintree.c
null
null
null
null
null
null
C
2026-05-04T19:37:17.125367
/** * 第一次题目 :构建二叉树(链表存储方式),空格表示空树,实现二叉树的基本操作:创建,遍历(先,中,后,按层)二叉树 * 提交邮箱 :510495266@qq.com to learn_algorithm@163.com * 邮件题目 :第一期第一次作业 **/ #include <stdlib.h> #include <stdio.h> typedef struct BiTNode{ char item; struct BiTNode *lChild,*rChild; }BiTNode,*BiTree; // ================================...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
4 Tree/1-二叉树 /btree/public.h
null
null
null
null
null
null
C
2026-05-04T19:37:17.162871
// // public.h // DS // // Created by mac on 13-9-8. // Copyright (c) 2013年 xiaoran. All rights reserved. // #ifndef DS_public_h #define DS_public_h //#include <malloc.h> #include "stdlib.h" // 后来,换到mac环境下,#include <malloc.h> 应该为<malloc/malloc.h> 或 #include "stdlib.h" #include <stdio.h> #include <string.h> // f...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
4 Tree/2-二叉查找树/BiSearchTree/bisearchtree.c
null
null
null
null
null
null
C
2026-05-04T19:37:17.163708
// // bisearchtree.c // BiSearchTree // // Created by nonstriater on 14-2-22. // // #include "bisearchtree.h" #include <stdio.h> #include <stdlib.h> /** * 创建二叉查找树 * * @return 指向一颗空树的指针 */ BiSearchTree *bisearch_tree_new(){ return NULL; } /** * 插入节点 * * @param tree tree * @param node 节点值 *...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
4 Tree/4-字典树Trie/trie.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.117020
/* trie树 */ #include <stdio.h> #include <stdlib.h> #define ALPHABET_SIZE 26 // 256 typedef int bool; #define YES 1 #define NO 0 typedef struct node { int count; //count 如果为0,则代表非黄色点,count>0代表是黄色点,同时表示出现次数; char value; //字符 struct node * subtries[ALPHABET_SIZE]; //子树 } Trie; Trie *trie_create(Trie **tr...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
6 Sort/8.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.118038
#include "stdio.h" int main(int argc, char const *argv[]) { int length=10; int j; for (int i = 0; i < length; ++i) { for (j = i+1 ; j < length; ++j) { printf("i=%d,j=%d\n",i,j ); } } for (int i = 0; i < length; ++i) { for (int k = i+1 ; k < length; ++k) { printf("i=%d,k=%d\n",i,k ); } ...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/1 string/proc.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.119847
#include "stdio.h" char *proc(char *str){ char *start = str; char *end = str; if (str == NULL) return NULL; while(*end != '\0') end++; end--; while(start < end){ if (*start >= 'A' && *start <= 'Z'){//大写 if (*end >= 'a' && *end <= 'z'){ char tmp = *start; *start = *end; *end = tmp; start++;...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/1 string/replce_blank.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.124486
#include "stdio.h" char *replace_blank(char *source){ int count = 0; char *tail = source; if (source == NULL) return NULL; while(*tail != '\0'){ if (*tail == ' ') count++; tail++; } while(count){ if(*tail != ' '){ *(tail+2*count) = *tail; }else{ *(tail+2*count) = '0'; *(tail+2*count-1) = '2'; ...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
6 Sort/insert_sort.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.126067
#include "stdio.h" #include "stdlib.h" #include "time.h" // 插入排序 void insert_sort(int *a,int length){ int tmp ; int i,j; for (i = 1; i < length; ++i) { for ( tmp=a[i],j=i-1 ; j>=0 && a[j] > tmp ; j--) { a[j+1]=a[j]; } // j+1是插入的位置 a[j+1...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
4 Tree/8-堆/heap.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.158724
void heap_build(int *a,int length){ } // 插入 void heap_insert(int *a,int v){ } //删除,删除的元素放在value指向的内存中 void heap_delete(int *a,int *value){ }
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/1 string/char_first_appear_once.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.160276
#include "stdio.h" char char_first_appear_once(const unsigned char *source){ int hash[256]={0}; char *tmp = source; if (tmp == NULL) return '\0'; while(*tmp != '\0'){ hash[*tmp]++; tmp++; } tmp = source; while(*tmp != '\0'){ if (hash[*tmp] == 1) return *tmp; tmp++; } return '\0'; } int main(int arg...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
4 Tree/2-二叉查找树/BiSearchTree/main.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.161358
// // main.c // BiSearchTree // // Created by nonstriater on 14-2-22. // // #include <stdio.h> #include "bisearchtree.h" int main(){ printf("begining...\n"); BiSearchTree *searchTree; searchTree = bisearch_tree_new(); searchTree = bisearch_tree_insert(searchTree,19);// 第一次insert bisearch_t...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
4 Tree/3-平衡树AVL/AVLTree.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.308888
/* 记于2014-2-28 by @nonstriater */ #include <stdio.h> #include <stdlib.h> #define LH 1 #define EH 0 #define RH -1 typedef int KEY_TYPE; typedef struct node{ KEY_TYPE key; int height; // 平衡因子 struct node *lChild; struct node *rChild; }AVLTree; // void avltree_rr_rotate(AVLTree **tree){ AVLTree *right...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/10.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.862263
#include "stdio.h" void generate(int a,int b,int N ,int * Q){ int p=1,q=1; int tmpA,tmpB; for (int i = 0; i < N; ++i) { tmpA = a*p; tmpB = b*q; if (tmpA>tmpB) { Q[i]=tmpB; q++; } else if(tmpA<tmpB) { Q[i]=tmpA; p++; } else{// == Q[i]=tmpA; p++; q++; } } } int ...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/20.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.873870
#include <stdlib.h> #include <stdio.h> #define PrintInt(expr) printf("%s : %d\n",#expr,(expr)) int main() { int y = 100; int *p; p = malloc(sizeof(int)); *p = 10; y = y / *p; PrintInt(y); return 0; }
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/1 string/string.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.875154
#include "stdio.h" typedef int BOOL; #define YES 1 #define NO 0 // 反序 void revert(const char *source,char *dest){ const char *s = source; char *end = dest; while(*s){ *end++ = *s++; //先拷贝字符串 } *end='\0'; end--;// 指向最后一个字符 while(end>dest){ char tmp = *end; *end = *dest; *dest = tmp; end--; des...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/12.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.930603
#include "stdio.h" void reorder(int *data, int length){ int i=0; int j=length-1; while(i<j){ if (!isEvenNum(data[i]) ) { i++; continue; } if (isEvenNum(data[j]) ) { j--; continue; } //交换 int tmp ; tmp = data[i]; data[i] = data[j]; data[j] = tmp; } } int isEvenNum(int...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/24.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.931621
#include <stdio.h> int main() { int i = 6; if( ((++i < 7) && ( i++/6)) || (++i <= 9)) ; printf("%d\n",i); return 0; } // && 优先级大于 ||
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/21.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.932725
#include <stdio.h> int main() { int day,month,year; printf("Enter the date (dd-mm-yyyy) format including -'s:"); scanf("%d-%d-%d",&day,&month,&year); printf("The date you have entered is %d-%d-%d\n",day,month,year); return 0; }
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/23.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.967833
#include <stdio.h> int main() { int cnt = 5, a; do { a /= cnt; } while (cnt --); printf ("%d\n", a); return 0; } /// cnt==1 时,会发生除0错误
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/22.c
null
null
null
null
null
null
C
2026-05-04T19:37:18.968848
#include <stdio.h> int main() { int n; printf("Enter a number:\n"); scanf("%d",&n); // & printf("You entered %d \n",n); return 0; }
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/1 string/revert_by_word.c
null
null
null
null
null
null
C
2026-05-04T19:37:19.031319
#include "stdio.h" void _reverse(char *start,char *end){ if ((start == NULL) || (end == NULL)) return; while(start < end){ char tmp = *start; *start = *end; *end = tmp; start++, end--; } } char *_revert_by_word(char *source){ char *end = source; char *start = source; while(*start != '\0'){ if (*s...
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/25.c
null
null
null
null
null
null
C
2026-05-04T19:37:19.063789
#include <stdlib.h> #include <stdio.h> #define SIZE 15 int main() { int *a, i; a = malloc(SIZE*sizeof(int)); for (i=0; i<SIZE; i++) *(a + i) = i * i; for (i=0; i<SIZE; i++) printf("%d\n", *a++); free(a); return 0; } // 指针已经移动,free错误
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/26.c
null
null
null
null
null
null
C
2026-05-04T19:37:19.691009
// FROM:http://www.gowrikumar.com/c/ #include <stdio.h> int main() { char dummy[80]; printf("Enter a string:\n"); scanf("%[^a]",dummy); printf("%s\n",dummy); return 0; } /** 输入一个串,以字符'a'结尾 */
nonstriater/Learn-Algorithms
https://github.com/nonstriater/Learn-Algorithms
null
null
null
null
8,937
null
null
apache-2.0
null
null
null
null
null
null
null
9 Algorithms Job Interview/codes/28.c
null
null
null
null
null
null
C
2026-05-04T19:37:19.691626
#include <stdlib.h> #include <stdio.h> int main() { int* ptr1,*ptr2; ptr1 = malloc(sizeof(int)); ptr2 = ptr1; *ptr2 = 10; return 0; }