Skip to content

Instantly share code, notes, and snippets.

@seadog007
Created September 17, 2016 14:43
Show Gist options
  • Save seadog007/fe97c0581c6bbb85e33c9749acb9106c to your computer and use it in GitHub Desktop.
Save seadog007/fe97c0581c6bbb85e33c9749acb9106c to your computer and use it in GitHub Desktop.
CSAW CTF Qual 2016 [Misc][100pts]Regexpire
import rstr
from pwn import *
def genstr(re):
print re
res = rstr.xeger(re)
print res
print ''
return res
r = remote('misc.chal.csaw.io', 8001)
r.recvline()
while True:
re = r.recvline().replace('\x0a','').replace('\\W', '%')
if re == 'Irregular':
break
r.sendline(genstr(re))
print 'QQ'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment