Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- def get_the_flag():
- # make a request to the server to get the flag and print it
- response = requests.post('https://click.ctf.about-noon.com/api/increment')
- # check if the request was successful
- flag = response.json().get('flag')
- if flag:
- print(f"Flag: {flag}")
- return flag
- def main():
- while True:
- # get the flag
- flag = get_the_flag()
- # if the flag is not None, break the loop
- if flag:
- break
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement