首页
社区
课程
招聘
[求助]MSF生成的shellcode
2009-5-28 15:04 8023

[求助]MSF生成的shellcode

2009-5-28 15:04
8023
用msf3.2生成的shellcode,想打开记事本,
/*
 * windows/exec - 147 bytes
 * http://www.metasploit.com
 * Encoder: x86/shikata_ga_nai
 * EXITFUNC=process, CMD=notepad
 */
unsigned char buf[] = 
"\x33\xc9\xd9\xec\xb1\x1f\xbb\x9a\xa5\xd0\x59\xd9\x74\x24\xf4"
"\x5e\x31\x5e\x15\x03\x5e\x15\x83\x5c\xa1\x32\xac\x9c\x42\xf6"
"\x4f\x5c\x93\x7c\x0a\x60\x18\xfe\x90\xe0\x1f\x10\x11\x5f\x38"
"\x65\x79\x7f\x39\x92\xcf\xf4\x0d\xef\xd1\xe4\x5f\x2f\x48\x54"
"\x1b\x6f\x1f\xa3\xe5\xba\xed\xaa\x27\xd1\x1a\x97\xf3\x02\xe7"
"\x92\x1e\xc1\xb8\x78\xe0\x3d\x20\x0b\xee\x8a\x26\x54\xf3\x0d"
"\xd2\xe1\x17\x85\x25\x1e\xae\xc5\x01\xe4\x72\xaa\x78\x12\x14"
"\x03\x1f\x51\x93\x9b\x54\x25\x10\x57\x1a\xb9\x85\xec\xb3\xc9"
"\x5c\x0a\xc0\x09\x34\xbb\xaf\xf7\x11\xd9\x43\x6f\x3a\xe0\x2e"
"\x61\x6d\xe2\xc8\x13\xfe\x68\x72\x9b\x61\xf5\x7c";


int main(int argc, char* argv[])
{
	__asm
	{
		lea eax, buf
		push eax
		ret
	}
	return 0;
}

结果进程中有notepad.exe进程,然而桌面上却没有记事本打开,试了下扫雷winmine也是一样,但计算器calc却能打开

[培训]《安卓高级研修班(网课)》月薪三万计划,掌 握调试、分析还原ollvm、vmp的方法,定制art虚拟机自动化脱壳的方法

收藏
点赞0
打赏
分享
最新回复 (4)
雪    币: 104
活跃值: (11)
能力值: ( LV9,RANK:250 )
在线值:
发帖
回帖
粉丝
xsystem 2009-6-8 16:19
2
0
没有研究过啊!
雪    币: 224
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
笨l笨 2009-10-28 10:44
3
0
估计隐藏模式运行的!!
雪    币: 391
活跃值: (135)
能力值: ( LV2,RANK:140 )
在线值:
发帖
回帖
粉丝
CamelLu 3 2009-11-21 21:46
4
0
/*
 * windows/exec - 226 bytes
 * http://www.metasploit.com
 * Encoder: x86/shikata_ga_nai
 * EXITFUNC=process, CMD=notepad
 */
unsigned char buf[] = 
"\xb8\x55\x5e\xad\x90\x33\xc9\xb1\x32\xd9\xec\xd9\x74\x24\xf4"
"\x5d\x31\x45\x11\x83\xc5\x04\x03\x45\x0d\xe2\xa0\xa2\x45\x19"
"\x4a\x5b\x96\x7a\xc3\xbe\xa7\xa8\xb7\xcb\x9a\x7c\xbc\x9e\x16"
"\xf6\x90\x0a\xac\x7a\x3c\x3c\x05\x30\x1a\x73\x96\xf4\xa2\xdf"
"\x54\x96\x5e\x22\x89\x78\x5f\xed\xdc\x79\x98\x10\x2e\x2b\x71"
"\x5e\x9d\xdc\xf6\x22\x1e\xdc\xd8\x28\x1e\xa6\x5d\xee\xeb\x1c"
"\x5c\x3f\x43\x2a\x16\xa7\xef\x74\x86\xd6\x3c\x67\xfa\x91\x49"
"\x5c\x89\x23\x98\xac\x72\x12\xe4\x63\x4d\x9a\xe9\x7a\x8a\x1d"
"\x12\x09\xe0\x5d\xaf\x0a\x33\x1f\x6b\x9e\xa1\x87\xf8\x38\x01"
"\x39\x2c\xde\xc2\x35\x99\x94\x8c\x59\x1c\x78\xa7\x66\x95\x7f"
"\x67\xef\xed\x5b\xa3\xab\xb6\xc2\xf2\x11\x18\xfa\xe4\xfe\xc5"
"\x5e\x6f\xec\x12\xd8\x32\x7b\xe4\x68\x49\xc2\xe6\x72\x51\x65"
"\x8f\x43\xda\xea\xc8\x5b\x09\x4f\x26\x16\x13\xe6\xaf\xff\xc6"
"\xba\xad\xff\x3d\xf8\xcb\x83\xb7\x81\x2f\x9b\xb2\x84\x74\x1b"
"\x2f\xf5\xe5\xce\x4f\xaa\x06\xdb\x21\x23\x8d\x81\xcd\xda\x09"
"\x4a";

int main()
{
	__asm
	{
		lea eax,buf
		push eax
		ret
	}
	return 0;
}

怎么我用3.3生成的要大不少,可以成功运行记事本
雪    币: 10
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
黑色精灵 2010-4-15 13:48
5
0
可能跟你操作系统有关!~~~~~你试试,要不就是你哪些程序坏了!~~或者你大名打错了
游客
登录 | 注册 方可回帖
返回