Skip to content

Instantly share code, notes, and snippets.

@InersIn
Last active October 11, 2020 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save InersIn/52bff731ab0c8d3ff24ffd694bc18e91 to your computer and use it in GitHub Desktop.
Save InersIn/52bff731ab0c8d3ff24ffd694bc18e91 to your computer and use it in GitHub Desktop.
#!/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