nohack论坛挂时间工具(原创)(开放源码/C++)
/*code by fozzy
e-mail:h4ck@foxmail.com
*/
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <windows.h>
#include <ctime>
using namespace std;
void intstring(unsigned int U,string & n);
void inttostring(unsigned int U,string & n);
int main(void)
{
char szPath;
GetSystemDirectoryA(szPath,sizeof(szPath));
//cout << szPath << endl;
szPath='\x0';
//cout << szPath << endl;
strcat(szPath,"Program Files\\Internet Explorer\\iexplore.exe");
srand((unsigned int)time(0));
unsigned int Rand;
//cout << szPath << endl;
string n;
while(true)
{
Rand=rand()%500;
Rand+=8000;
string str=" nohack.cn/bbs/thread-10";
inttostring(Rand,n);
str+=n;
str+="-1-1.html";
str=szPath+str;
//cout << szPath << endl;
WinExec(str.c_str(),SW_HIDE);
Sleep(30000);
WinExec("taskkill.exe /im iexplore.exe /f",SW_HIDE);
}
//system("pause");
return 0;
}
void intstring(unsigned int U,string & n)
{
switch(U)
{
case 0:
n+="0";
break;
case 1:
n+="1";
break;
case 2:
n+="2";
break;
case 3:
n+="3";
break;
case 4:
n+="4";
break;
case 5:
n+="5";
break;
case 6:
n+="6";
break;
case 7:
n+="7";
break;
case 8:
n+="8";
break;
case 9:
n+="9";
break;
}
}
void inttostring(unsigned int U,string &n)
{
U-=8000;
n+="8";
unsigned int tmp1,tmp2,tmp3;
tmp1=U/100;
intstring(tmp1,n);
tmp2=(U-tmp1*100)/10;
intstring(tmp2,n);
tmp3=U-tmp1*100-tmp2*10;
intstring(tmp3,n);
//cout << n << endl;
//cout << tmp1 << " " << tmp2 << " " << tmp3 << endl;
}
复制代码用法:先用IE登陆nohack,登陆论坛账号,选择“记住我的登录信息”
然后关掉IE,双击本程序
没人或外出时即可挂在线时间
启动IE的方式设置成了隐藏
另外我编译好了一个没界面的程序
寻同样一起研究C++的PM我
以前的版本不稳定
最新修正版在这里
关闭请杀掉nohack.exe进程 ╮(╯▽╰)╭。
wpe确实值得学习啊。
页:
[1]