--- 发表于 news://freenews.netfront.net 投诉 ne ** @ netfront.netcould some body help me what''s happening here...thanks..char sc[] ="\x31\xc0" /* xor %eax, %eax */"\x50" /* push %eax */"\x68\x2f\x2f\x73\x68" /* push $0x68732f2f */"\x68\x2f\x62\x69\x6e" /* push $0x6e69622f */"\x89\xe3" /* mov %esp,%ebx */"\x50" /* push %eax */"\x53" /* push %ebx */"\x89\xe1" /* mov %esp,%ecx */"\x31\xd2" /* xor %edx,%edx */"\xb0\x0b" /* mov $0xb,%al */"\xcd\x80"; /* int $0x80 */main(){void (*fp) (void); // what is happening at this linefp = (void *)sc;fp();}--A day spent without Linux is a day spent without learning!-- Java B?y---Posted via news://freenews.netfront.netComplaints to ne**@netfront.net推荐答案 0x68732f2f * / " \ x68 \ x2f \ x62 \ x69 \ x6e" / * push0x68732f2f */"\x68\x2f\x62\x69\x6e" /* push 0x6e69622f * / " \ x89 \ xe3" / * mov%esp,%ebx * / " \ x50" / * push%eax * / " \ x53" / * push%ebx * / " \ x89 \ xe1" / * mov%esp,%ecx * / " \ x31 \ xd2" / * xor%edx,%edx * / " \ xb0 \ x0b" / * mov0x6e69622f */"\x89\xe3" /* mov %esp,%ebx */"\x50" /* push %eax */"\x53" /* push %ebx */"\x89\xe1" /* mov %esp,%ecx */"\x31\xd2" /* xor %edx,%edx */"\xb0\x0b" /* mov 0xb,%al * / " \ xcd \ x80" ;; / * int0xb,%al */"\xcd\x80"; /* int 这篇关于这个函数调用如何工作???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-29 07:05