Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import httplib
- import socket
- import sys
- print "\n\n\t|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
- print "\t||||| www.teamopenfire.com |||||"
- print "\t||||| |||||"
- print "\t||||| Coded By Ajith KP:::Coded By Ajith KP |||||"
- print "\t||||| |||||"
- print "\t||||| [email protected] [email protected] |||||"
- print "\t||||| openfire-security.net |||||"
- print "\t||||| www.suckthetech.blogspot.com |||||"
- print "\t|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
- try:
- try:
- site = raw_input("Web Site for Scan?: ")
- site = site.replace("http://","")
- site = site.replace("https://","")
- print ("\tChecking website " + site + "...")
- conn = httplib.HTTPConnection(site)
- conn.connect()
- print "\t[$] Yes... Server is Online."
- except (httplib.HTTPResponse, socket.error) as Exit:
- print("\t [!] Oops Error occured")
- raw_input("\t [!] Possible problems: Server offline, Invalid URL,Internet offline")
- exit()
- conn = httplib.HTTPConnection(site)
- conn.request("HEAD", "/")
- req = conn.getresponse()
- print "\n\t################################################################"
- print "\n\t [+] Server: "+req.getheader('server')
- power = req.getheader('x-powered-by')
- if power == None:
- print "\t [X] Powered by: Not Found !"
- else:
- print "\t [+] Powered by: "+ power
- print "\t [+] Encoded in: "+req.getheader('Content-type')
- cookie = req.getheader('Set-Cookie')
- if cookie == None:
- print "\t [X] Set Cookie Failed"
- else:
- print "\t [+] Set Cookie: "+cookie
- print "\n\t################################################################"
- print "Greets To Coded32 and all members of TeamOpenFire"
- except (httplib.HTTPResponse, socket.error):
- print "\n\t[!] Session Cancelled; Error occured. Check internet settings"
- except (KeyboardInterrupt, SystemExit):
- print "\n\t[!] Session cancelled"
Advertisement
Add Comment
Please, Sign In to add comment