There was a very particular style of DDOS attack just now, it was mitigated.
The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.
Eleven Years of Service
Posts: 4,274
Threads: 302
Python - Website Recon Tool 09-28-2014, 08:33 PM
#1
Python - Website Recon Tool
![[Image: 21c4b71dfa679517a0f02deae888dc81.png]](http://i.gyazo.com/21c4b71dfa679517a0f02deae888dc81.png)
WebsiteRecon.py
Code:
Code:
import socket
import dns.resolver
import urllib.request
#Coded for SL by Eclipse
print()
print("==================================================")
print("--------------------------------------------------")
print("==================================================")
print()
print()
print(" =-=-=-=-=-Website Recon-=-=-=-=-= ")
print()
print()
print("==================================================")
print("--------------------------------------------------")
print("==================================================")
def main():
print()
url = input("Enter the website URL (Don't include 'http://')~: ")
http = 'http://'
http_url = str(http + url)
print()
print("Analyzing", http_url)
print()
try:
hostname = socket.gethostbyname(url)
nameserver = dns.resolver.query(url,'NS')
print("[+]Server IP: ", hostname)
for server in nameserver:
print("[+]Nameserver: ", server)
print("[+]Grabbing banner...")
banner_grab = urllib.request.urlopen(http_url).info()
print("----------")
print(banner_grab)
print("----------")
except:
print("[+]Unknown Error!")
main()
main()
main()
Github:
https://github.com/Eclipse-kun/eclipse/b...teRecon.py
•
Ten Years of Service
Posts: 154
Threads: 11
RE: Python - Website Recon Tool 09-28-2014, 09:17 PM
#2
What are all these empty prints for?
Code:
print()
print()
print(" =-=-=-=-=-Website Recon-=-=-=-=-= ")
print()
print()
•
Eleven Years of Service
Posts: 1,195
Threads: 224
RE: Python - Website Recon Tool 09-28-2014, 09:31 PM
#3
(09-28-2014, 09:17 PM)Yagmi Wrote: What are all these empty prints for?
Code:
print()
print()
print(" =-=-=-=-=-Website Recon-=-=-=-=-= ")
print()
print()
I mean, they're clearly for spacing the text, but @"Eclipse", you should really just do this:
Code:
print("\n\n =-=-=-=-=-Website Recon-=-=-=-=-= \n\n")
Use escape sequences!
•
Twelve Years of Service
Posts: 2,604
Threads: 207
RE: Python - Website Recon Tool 09-28-2014, 09:44 PM
#4
You should check if http is included in the string instead of telling people how they should input the string. Otherwise good job.
•
Twelve Years of Service
Posts: 903
Threads: 25
RE: Python - Website Recon Tool 09-28-2014, 09:50 PM
#5
(09-28-2014, 09:31 PM).Shebang Wrote: I mean, they're clearly for spacing the text, but @"Eclipse", you should really just do this:
Code:
print("\n\n =-=-=-=-=-Website Recon-=-=-=-=-= \n\n")
Use escape sequences!
ooor because python is soo gangster at making your life easier:
EDIT:
(09-28-2014, 08:33 PM)Eclipse Wrote: Code:
print()
url = input("Enter the website URL (Don't include 'http://')~: ")
http = 'http://'
http_url = str(http + url)
lol what happened to raw_input()?
•
Eleven Years of Service
Posts: 1,195
Threads: 224
RE: Python - Website Recon Tool 09-28-2014, 10:06 PM
#6
(09-28-2014, 09:50 PM)Dyme Wrote: ooor because python is soo gangster at making your life easier:
![[Image: 61HL4CS.png]](http://i.imgur.com/61HL4CS.png)
EDIT:
lol what happened to raw_input()?
Presumably he's using Python 3.x+. raw_input() became input().
Before that, input() worked like how eval(input()) works in Python 3.x.
•
Twelve Years of Service
Posts: 903
Threads: 25
RE: Python - Website Recon Tool 09-28-2014, 10:14 PM
#7
(09-28-2014, 10:06 PM).Shebang Wrote: Presumably he's using Python 3.x+. raw_input() became input().
Before that, input() worked like how eval(input()) works in Python 3.x.
Oi, then forget everything I posted. Didn't know people actually used python 3 lol...
•
Eleven Years of Service
Posts: 1,195
Threads: 224
RE: Python - Website Recon Tool 09-28-2014, 10:50 PM
#8
(09-28-2014, 10:14 PM)Dyme Wrote: Oi, then forget everything I posted. Didn't know people actually used python 3 lol...
I was forced to for school. Kinda sucked, a lot of stuff isn't compatible.
•
Eleven Years of Service
Posts: 655
Threads: 15
RE: Python - Website Recon Tool 09-29-2014, 04:30 AM
#9
What is the difference with your tool and using curl??
PGP
Sign: F202 79C9 76F7 40BB 54EC 494F 5DEF 1D70 14C1 C4CC
Encrypt: A5B3 1B21 55E1 80AF 4C6E DE83 467B 8EFC 3DEE 681C
Auth: CD55 E8A5 1A08 2933 8BA6 BC88 D81F 1943 739A 3C47
•
Eleven Years of Service
Posts: 4,274
Threads: 302
RE: Python - Website Recon Tool 09-29-2014, 01:32 PM
#10
(09-28-2014, 09:44 PM)Adorapuff Wrote: You should check if http is included in the string instead of telling people how they should input the string. Otherwise good job.
I'm lazy, but I'll add that.
(09-28-2014, 09:50 PM)Dyme Wrote: lol what happened to raw_input()?
That's Python2, this is Py3.
(09-29-2014, 04:30 AM)Reiko Wrote: What is the difference with your tool and using curl??
Nothing much really, it just simplifies it into one Py script.
•
Users browsing this thread: