Shellcode in C program

前端 未结 4 1568
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 06:01

In Demystifying the Execve Shellcode is explained a way to write an execve shellcode:

#include
#include

unsigned char code[]          


        
4条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 06:49

        (*(void(*)())shellcode)()
    

    ==

        p = (void(*)()) shellcode;
        (*p)();
    

提交回复
热议问题