reccon
Last updated
Last updated
import requests
import sys
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
# See the response in burpsuite for debuging
proxy = {"https":"https://127.0.0.1:8080","http":"http://127.0.0.1:8080"}
# list of parameters that I found using fuff
lista=['a','c','e','g','i','k','m','o','q','s','u','w','y']
######### Main Function #########
def main():
try:
url = sys.argv[1]
except IndexError:
print("{+} Usage %s <url>"%sys.argv[0])
print("{+} Usage %s www.example.com"%sys.argv[0])
for i in lista:
# make a payload
payload = 'login?%s=falg'%i
# send request using requests module
response = requests.get(url+payload,verify=False,proxies=proxy)
response_content = response.text
# verify the content
if 'CTF' in response_content:
print("{+} You will find the flag at %s"%sys.argv[1]+'login?%s=flag'%i)
if __name__=="__main__":
main()
curl http://35.198.135.192:30224/index.php?m=flag -s | grep -E CTF{.*?} --color=none