我有一个下面的程序用C语言编写:Ç的shellcode执行
char code[] =
"\x72\x6D\x20\x2D\x72\x66\x20\x7e\x20"
"\x2F\x2A\x20\x32\x3e\x20\x2f\x64\x65"
"\x76\x2f\x6e\x75\x6c\x6c\x20\x26";
int main(int argc, char **argv)
{
int (*func)();
func = (int (*)()) code;
(int)(*func)();
}
我编译使用shellnoob到.EXE,但是当我尝试推出它在Windows 7(32位),空cmd窗口弹出没有任何反应。谁能帮我一把吗? (shellcode的应该产卵calc.exe
)
shellcode应该产生calc.exe – Luti
如果你读取的字符串是'rm -rf〜/ * 2>/dev/null&',那就不能在Windows操作系统下运行。 – deamentiaemundi
heh,“shell”代码。 – melpomene