Skip to content

Instantly share code, notes, and snippets.

@m-primo
Created April 25, 2020 19:07
Show Gist options
  • Save m-primo/01a8cb1c97c9e2ccbff09a92a6324749 to your computer and use it in GitHub Desktop.
Save m-primo/01a8cb1c97c9e2ccbff09a92a6324749 to your computer and use it in GitHub Desktop.
Admin Link Finder [manually] - python
import requests
# Initializations
panels = ["admin.php", "wp-login.php", "login.php", "admin/admin.php", "admin/index.php"]
found = 0
notFound = 0
# Inputs
url = input("[*] Enter URL: ")
# Wait
print("Processing...\nPlease wait...\n")
# Check
if not url.startswith("http"):
url = "http://" + url
if url[-1] != "/":
url += "/"
# Process
for i in panels:
req = requests.get(url + i)
if req.status_code == 200:
print("[+] Found -> " + url + i)
found += 1
else:
print("[-] Not Found -> " + url + i)
notFound += 1
# Print
print("\nProcess has been finished.")
print("[" + str(found) + "] has been found.")
print("[" + str(notFound) + "] has not been found.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment