Last active
October 11, 2020 21:04
-
-
Save InersIn/52bff731ab0c8d3ff24ffd694bc18e91 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python3 | |
import requests | |
from bs4 import BeautifulSoup | |
if __name__ == "__main__": | |
status = True | |
link="https://finger-warmup.chals.damctf.xyz/" | |
uri="" | |
req=requests.Session() | |
while status: | |
content=req.get(link+uri).content | |
if "dam{" in content.decode(): | |
print(content.decode()) | |
exit(1) | |
s=BeautifulSoup(content,features="html.parser") | |
uri=s.find('a')['href'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment