Заголовочный:
#include <Windows.h>
#include <algorithm>
#include <iostream>
#include <sddl.h>
#include <aclapi.h>
#include <NTSecAPI.h>
#include <TlHelp32.h>
using System; | |
using System.IO; | |
using IronPython.Hosting; | |
using Microsoft.Scripting.Hosting; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var engine = Python.CreateEngine(); |
using System; | |
using IronPython.Hosting; | |
using Microsoft.Scripting.Hosting; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var engine = Python.CreateEngine(); |
using System; | |
using System.IO; | |
using IronPython.Hosting; | |
using Microsoft.Scripting.Hosting; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var engine = Python.CreateEngine(); |
#include <windows.h> | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <filesystem> | |
#include <netfw.h> | |
#pragma comment(lib, "ole32.lib") | |
#pragma comment(lib, "oleaut32.lib") |
using System; | |
using System.IO; | |
using System.Reflection; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
class AssemblyStatistics | |
{ | |
static void Main() | |
{ |
Заголовочный:
#include <Windows.h>
#include <algorithm>
#include <iostream>
#include <sddl.h>
#include <aclapi.h>
#include <NTSecAPI.h>
#include <TlHelp32.h>
using Accord.Video.FFMPEG; | |
using AForge.Video; | |
using AForge.Video.DirectShow; | |
using System; | |
using System.Drawing; | |
using System.Threading; | |
using System.Windows.Forms; | |
class Program | |
{ |
EXE файл загрузчик:
#include <Windows.h>
#include <windowsx.h>
#include "Header.h"
HMODULE hHookDll = NULL;
BOOL(CALLBACK* SetKeyboardHook)();
#include <windows.h> | |
#include <stdio.h> | |
#define RTL_MAX_DRIVE_LETTERS 32 | |
#define RTL_USER_PROC_PARAMS_NORMALIZED 0x00000001 | |
#define STATUS_SUCCESS 0 | |
#define NT_SUCCESS(Status) ((NTSTATUS)(Status) == STATUS_SUCCESS) | |
// https://github.com/RedTeamOperations/Advanced-Process-Injection-Workshop/blob/66a2d3ffe6540c981182a2fb38cc92b0909c4b7f/CWLProcessDoppelganging/CWLProcessDoppelganging/CWLImplant.cpp | |
// https://github.com/huntandhackett/concealed_code_execution/blob/e688551bac50d8525b4ca7490da3981999cbff52/Injection/SampleDlls/3.NoDependencies/dllmain.c |
#include <stdio.h> | |
#include <stdlib.h> | |
// Определяем структуру для узла списка | |
typedef struct Node { | |
int value; | |
struct Node* next; | |
} Node; | |
// Вспомогательная функция для добавления узла к списку |