Quantcast
Channel: 看雪安全论坛
Viewing all articles
Browse latest Browse all 9556

【讨论】大家看看这段代码 这句我看不懂 求解释

$
0
0
//这是完整代码
#include<stdio.h>
#include<string.h>

unsigned char code[] = \
"\x31\xc0\x50\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x50\x89\xe2\x53\x89\xe1\xb0\x0b\xcd\x80";

main()
{

printf("Shellcode Length: %d\n", strlen(code));

int (*ret)() = (int(*)())code;

ret();

}
//就是这句
int (*ret)() = (int(*)())code;
求解释 ret后面的括弧 和右边那么多的括弧怎么回事啊 求解释

Viewing all articles
Browse latest Browse all 9556

Latest Images

Trending Articles

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>