Easy to Find Hided PID Code
来源:互联网 发布:js改变css样式 编辑:程序博客网 时间:2024/06/07 06:54
// Easy to Find Hided PID Code
// Author: Finback Jun.6,2006
// NOTE:this code needn't any driver supported
#include "stdafx.h"
#include <windows.h>
#include "psapi.h"
#pragma comment(lib,"psapi.lib")
int main(int argc, char* argv[])
{
printf("/nEasy to Find Hided PID Code /n");
printf("Author: Finback Jun.6,2006 <Finbackcpp@hotmail.com> /n");
printf("NOTE:this code needn't any driver supported /n");
printf(" /n");
DWORD aProcesses[1024], cbNeeded;
if ( !EnumProcesses( aProcesses, sizeof(aProcesses), &cbNeeded ) )
return 0;
DWORD cProcesses = cbNeeded / sizeof(DWORD);
DWORD PidFor;
for ( PidFor = 0x0c; PidFor < 0xFFFF; PidFor +=4 )
{
HANDLE hProcess = OpenProcess( PROCESS_QUERY_INFORMATION |
PROCESS_VM_READ,
FALSE, PidFor );
if (hProcess)
{
BOOL sHide = false;
unsigned int i;
char szName[MAX_PATH]="<Unknown>";
HMODULE hModule;
for ( i = 1; i <= cProcesses; i++ )
{
if (PidFor == aProcesses[i])
{
sHide = true;
break;
}
}
if(EnumProcessModules(hProcess,&hModule,sizeof(hModule),&cbNeeded))
{
GetModuleFileNameEx(hProcess,hModule,szName,sizeof(szName));
printf("%-5d - %16s %s/n", PidFor, szName, (sHide) ? "" : "--[Hidden]--");
}
else
{
GetProcessImageFileName(hProcess,szName,sizeof(szName));
printf("%-5d - %16s %s/n", PidFor, szName, "--[Zombie]--");
}
}
CloseHandle( hProcess );
}
return 0;
}
// Author: Finback Jun.6,2006
// NOTE:this code needn't any driver supported
#include "stdafx.h"
#include <windows.h>
#include "psapi.h"
#pragma comment(lib,"psapi.lib")
int main(int argc, char* argv[])
{
printf("/nEasy to Find Hided PID Code /n");
printf("Author: Finback Jun.6,2006 <Finbackcpp@hotmail.com> /n");
printf("NOTE:this code needn't any driver supported /n");
printf(" /n");
DWORD aProcesses[1024], cbNeeded;
if ( !EnumProcesses( aProcesses, sizeof(aProcesses), &cbNeeded ) )
return 0;
DWORD cProcesses = cbNeeded / sizeof(DWORD);
DWORD PidFor;
for ( PidFor = 0x0c; PidFor < 0xFFFF; PidFor +=4 )
{
HANDLE hProcess = OpenProcess( PROCESS_QUERY_INFORMATION |
PROCESS_VM_READ,
FALSE, PidFor );
if (hProcess)
{
BOOL sHide = false;
unsigned int i;
char szName[MAX_PATH]="<Unknown>";
HMODULE hModule;
for ( i = 1; i <= cProcesses; i++ )
{
if (PidFor == aProcesses[i])
{
sHide = true;
break;
}
}
if(EnumProcessModules(hProcess,&hModule,sizeof(hModule),&cbNeeded))
{
GetModuleFileNameEx(hProcess,hModule,szName,sizeof(szName));
printf("%-5d - %16s %s/n", PidFor, szName, (sHide) ? "" : "--[Hidden]--");
}
else
{
GetProcessImageFileName(hProcess,szName,sizeof(szName));
printf("%-5d - %16s %s/n", PidFor, szName, "--[Zombie]--");
}
}
CloseHandle( hProcess );
}
return 0;
}
- Easy to Find Hided PID Code
- How to find code and file
- Write code that is easy to delete, not easy to extend.
- Leet Code OJ 8. String to Integer (atoi) [Difficulty: Easy]
- Leet Code OJ 8. String to Integer (atoi) [Difficulty: Easy]
- How to find the source code of the special command?
- Enhancement--How to Find a Screen Exit for T-code
- Enhancement--How to Find a Screen Exit for T-code
- Report to Find User-Exit for Transaction Code
- How to Find a Screen Exit for T-code
- 【Enhancement】--How to Find a Screen Exit for T-code
- 12 Most Useful Sites to Find Code Snippets
- Find ways to code in Mac OS X
- How To add Bidvertiser Ad code on Blogger Blog Follow these easy steps to add bidvertiser ad code
- Easy Code 1.00.0.0033
- From APK to readable java source code in 3 easy steps
- 6 Easy Steps to Learn Naive Bayes Algorithm (with code in Python)
- 易读代码的艺术之Code Should Be Easy to Understand
- 渐变的窗口背景(C#2005)
- 美国最新研究证实苹果是最佳减肥水果
- Free Pascal不完全攻略之一 :进入FP的世界
- 10g OCA考试
- 近期小结
- Easy to Find Hided PID Code
- 通过大学学习后发现毕业后不能去的几类单位
- 数据结构之排序
- Linux下Socket写http协议下载文件代码以及说明
- c实现一元多项式加乘
- oracle简单对象类型
- asp 导出到excel 方法
- 一个linux典型的select模型更新方法
- 如何成立軟件公司,及其相關的政策