Created
September 17, 2016 14:43
-
-
Save seadog007/fe97c0581c6bbb85e33c9749acb9106c to your computer and use it in GitHub Desktop.
CSAW CTF Qual 2016 [Misc][100pts]Regexpire
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 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