|
|
|
[转帖]狙剑 v5.0.2.0
code推荐过 |
|
[求助]如何通过文件句柄得到文件路径?
我只会这样 #include <windows.h> #pragma comment(lib, "ntdll.lib") #pragma comment(linker, "/subsystem:windows") #pragma comment(linker, "/entry:start") #pragma comment(linker, "/filealign:0x200") typedef struct _IO_STATUS_BLOCK { LONG Status; LONG Information; } IO_STATUS_BLOCK, *PIO_STATUS_BLOCK; typedef struct _FILE_NAME_INFORMATION { ULONG FileNameLength; WCHAR FileName[MAX_PATH]; } FILE_NAME_INFORMATION; __declspec(dllimport) LONG __stdcall ZwQueryInformationFile( IN HANDLE FileHandle, OUT PIO_STATUS_BLOCK IoStatusBlock, OUT PVOID FileInformation, IN ULONG FileInformationLength, IN ULONG FileInformationClass ); void start() { char szFileName[MAX_PATH]; HANDLE hFile; IO_STATUS_BLOCK isb; FILE_NAME_INFORMATION fni; GetModuleFileName(NULL, szFileName, MAX_PATH); hFile = CreateFile(szFileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile != (HANDLE)-1) { if (ZwQueryInformationFile(hFile, &isb, &fni, sizeof(fni), 9) == 0) { fni.FileName[fni.FileNameLength/2] = 0; MessageBoxW(0, fni.FileName, L"hFile", 0); } CloseHandle(hFile); } ExitProcess(0); } 我感觉应该从取得对象信息来弄这块会好一些 |
|
|
|
[原创]PEDIY祝大家新年进步
祝大家在新的一年里,腰好 |
|
[原创]发个手脱Themida的参考程序
//第2次加载,用Event通知inject.dll hEvent = CreateEvent(NULL, FALSE, FALSE, "FuckOreans" ); 这样的代码看着很亲切 |
|
[原创]发个手脱Themida的参考程序
SM主动发贴 关注 |
|
辞旧迎新exploit me挑战赛[题目]
那个文章忽悠人的, VC6当然也可以看到接口定义的 |
|
|
|
[转帖]PECompact v2.80 Beta 1
again to |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值