Skip to content

Instantly share code, notes, and snippets.

@thiwanga
Created March 5, 2019 06:35
Show Gist options
  • Save thiwanga/6b50909782513537e21837ae1a7eff41 to your computer and use it in GitHub Desktop.
Save thiwanga/6b50909782513537e21837ae1a7eff41 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from urllib2 import Request, urlopen, URLError, HTTPError
def Space(j):
i = 0
while i<=j:
print " ",
i+=1
def findAdmin():
f = open("link.txt","r");
link = raw_input("Enter Site Name \n(ex : example.com or www.example.com ): ")
print "\n\nAvilable links : \n"
while True:
sub_link = f.readline()
if not sub_link:
break
req_link = "http://"+link+"/"+sub_link
req = Request(req_link)
try:
response = urlopen(req)
except HTTPError as e:
continue
except URLError as e:
continue
else:
print "OK => ",req_link
def Credit():
Space(9); print "#####################################"
Space(9); print "# ++ Admin Panel Finder v1.0 ++ #"
Space(9); print "# Script by Mr Elite_x #"
Space(9); print "# Sri Lanka | Widane.com #"
Space(9); print "#####################################"
Credit()
findAdmin()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment