Created
April 25, 2020 19:07
-
-
Save m-primo/01a8cb1c97c9e2ccbff09a92a6324749 to your computer and use it in GitHub Desktop.
Admin Link Finder [manually] - python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("\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