首页
社区
课程
招聘
[求助]一个bat文件转换成EXE后如何将这个EXE再转换回bat
发表于: 2014-12-24 08:43 9812

[求助]一个bat文件转换成EXE后如何将这个EXE再转换回bat

2014-12-24 08:43
9812
看程序界面应该是bat,然后用bat to exe或类似的东西转换成了exe.现在有什么办法可以把这个exe转换回bat?

[课程]Linux pwn 探索篇!

收藏
免费 0
支持
分享
最新回复 (5)
雪    币: 735
活跃值: (130)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
程序运行图及UE下图。。附下载
如图


。附下载
1.zip
上传的附件:
2014-12-24 08:57
0
雪    币: 293
活跃值: (287)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
3
这不是bat,这写出来就是exe


// dll 代码
#include <windows.h>

HINSTANCE hMod = NULL;
HHOOK hhk;
BOOL WINAPI DllMain(HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved)
{
hMod = (HINSTANCE)hModule;
return 1;
}

LRESULT CALLBACK fn(int code,
WPARAM wParam,
LPARAM lParam)
{
// add to do ...
return 0;
}

bool hook()
{
hhk = SetWindowsHookEx(WH_SHELL, fn, hMod, 0);
return (hhk != 0);
}

bool unhook()
{
return UnhookWindowsHookEx(hhk);
}


// exe 代码
#include <iostream>
using std::cout;
using std::endl;
int main(int argc, char* argv[])
{
cout<<"000000000000 -- by 00(000000000)"<<endl;
cout<<endl;
cout<<"WL 的名字必须为 WLServer.exe,不区分大小写"<<endl;
cout<< "如果有非法连接,会在 WL 目录下 worldhack.txt 有记录,请经常查看"<<endl;
cout<<endl;
if ( hook() )
{
cout<<"启动保护成功,请不要关闭本程序(不要在本窗口上按任何键)"<<endl;
}
else
{
cout<<"启动保护失败"<<endl;
}
cout<<endl;
system("pause");
unhook();
return 0;
}

2014-12-24 09:23
0
雪    币: 2393
活跃值: (1387)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
4
不是 bat
这是 console 的输出


v3 = sub_4010E0(std::cout, "000000000000 -- by 00(000000000)");
v4 = std::basic_ostream<char_std::char_traits<char>>::operator<<(v3, std::endl);
v5 = std::basic_ostream<char_std::char_traits<char>>::operator<<(v4, std::endl);
v6 = sub_4010E0(v5, "WL 的名字必须为 WLServer.exe,不区分大小写");
v7 = std::basic_ostream<char_std::char_traits<char>>::operator<<(v6, std::endl);
v8 = sub_4010E0(v7, "如果有非法连接,会在 WL 目录下 worldhack.txt 有记录,请经常查看");
v9 = std::basic_ostream<char_std::char_traits<char>>::operator<<(v8, std::endl);
std::basic_ostream<char_std::char_traits<char>>::operator<<(v9, std::endl);
if ( hook() )
{
v10 = sub_4010E0(std::cout, "启动保护成功,请不要关闭本程序(不要在本窗口上按任何键)");
v11 = std::basic_ostream<char_std::char_traits<char>>::operator<<(v10, std::endl);
}
else
{
v11 = sub_4010E0(std::cout, "启动保护失败");
}
std::basic_ostream<char_std::char_traits<char>>::operator<<(v11, std::endl);
system("pause");
unhook();
return 0;
2014-12-24 09:41
0
雪    币: 114
活跃值: (72)
能力值: ( LV5,RANK:70 )
在线值:
发帖
回帖
粉丝
5
看界面就能看出是bat?
2014-12-26 00:04
0
雪    币: 735
活跃值: (130)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
您好 这个DLL和EXE的代码您是如何看到的呢?
2014-12-28 20:19
0
游客
登录 | 注册 方可回帖
返回
//