![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
黑客编程
qq_857305819
这个作者很懒,什么都没留下…
展开
-
文件自删除
// SelfDel_Test.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <Windows.h>BOOL CreateChoiceBat(char *pszBatFileName){ int iTime = 5; // 等待多少秒后删除文件 char szBat[MAX_PATH] = { 0 }; // 构造批处理内容 /* @echo off choice /t 5 /d y /n >nul原创 2021-01-08 19:26:08 · 113 阅读 · 0 评论 -
FTP网络通信
连接的IP地址在此函数 InternetConnect// FTP_Download_Test.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include<windows.h>#include <WinInet.h>#pragma comment(lib, "WinInet.lib")void Ftp_ShowError(char *lpszText){ char szErr[MAX_PATH] = { 0 };原创 2021-01-06 20:58:45 · 302 阅读 · 0 评论 -
SHGetSpecialFolderPath获取指定的系统目录
FOLDERID_RoamingAppData FOLDERID_CommonStartup(启动项目录) FOLDERID_ProgramData FOLDERID_PublicDesktop(桌面) 这个函数可以获取非常多的系统指定的路径// AutoRun_Startup_Test.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <Windows.h>#include <Shlobj.h>#prag原创 2021-01-06 19:09:37 · 365 阅读 · 0 评论 -
FindResource提取PE文件中的资源
PE文件的资源为一个隐藏的PE文件,使用FindResource把它给提取出来,顺便理解一下资源函数的使用// test.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <windows.h>#include "GgetPE_Info.h"int _tmain(int argc, _TCHAR* argv[]){ char *buffer = NULL; HRSRC hRsrc = NULL; // 获取指定模块里的指定原创 2021-01-05 19:22:15 · 2941 阅读 · 0 评论