Aqui os traigo una pequeña "update" que le he dado al Zone-H Reporter dotandole de un control de excepciones y un code más limpio.
No más deje una aclaración : los except podeís ponerlos a vuestro gusto yo los deje en except: a secas pero cada uno tiene sus manias y ahí no me meto xd.
#########################
# S A N K O #
# #
# !/usr/bin/python #
# Zone-H Reporter v0.5 #
#########################
#Uso :
# login('user','password')
# uploadsingle(params)
# uploadmass(params)
#Aclaracin :
#Los except los dejo a gusto de cada uno , indicar el que mas os convenga
import urllib,urllib2
def zoneh():
main()
def main():
print """
@@@@@@@ @@@@ @ @ @@@@@ @ @ @@@@@ @@@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@@ @@@@@ |
@ @ @ @@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ | Visit
@ @ @ @@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ |
@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ | www.underc0de.org
@ @ @ @ @ @ @@@@ @@@@@@ @@@@@ @@@@ @@@@@ @ @ @@@@@ @ @@@@ @@@@@ |
@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ |
@ @ @ @ @@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ | Underc0de Team
@ @ @ @ @@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ | -------------------
@@@@@@@ @@@@ @ @ @@@@@ @ @ @ @ @@@@@ @ @@@@ @ @ @ @@@@@ @ @ | V.0.5 By Sanko\n"""
options = """
#########################
# #
# Zone-H Reporter #
# V.0.5 #
# #
# [+] OPTIONS [+] #
#-----------------------#
# [1] login #
# [2] Single Deface #
# [3] Mass deface #
# [i] Info Methods #
# #
#########################\n"""
print options
entra = raw_input("Choose an option -> ")
if entra == 1:
login('user','password')
elif entra == 2:
uploadsingle('defacer','domain','hackmode','reason')
elif entra == 3:
uploadmass('defacer','hackmode','reason') #Rellena los dominios en def uploadmass()
elif entra == 'i':
info()
else:
print "Error , try again\n"
main()
def login(user,password):
try:
url = 'http://www.zone-h.org/notify/single'
values = {'user':user,
'password':password}
data =urllib.urlencode(values)
req = urllib2.Request(url, data)
resp = urllib2.urlopen(req)
page = resp.read()
print page
except:
entrada = raw_input("Error , Desea volver a intentar loguearse? |si| o |no| -> ")
if entrada == 'si':
login('user','pass')
elif entrada == 'no':
main()
else:
print "Error , Saliendo del programa..."
exit
def uploadsingle(defacer,domain,hackmode,reason):
try:
url = 'http://www.zone-h.org/notify/single'
values = {'defacer':defacer,
'domain1':domain,
'hackmode':hackmode,
'reason':reason,
'submit':'Send'}
data =urllib.urlencode(values)
req = urllib2.Request(url, data)
resp = urllib2.urlopen(req)
page = resp.read()
print page
except:
entrada = raw_input("Ha ocurrido un Error , deseas volver a realizar la acción? |si| o |no| -> ")
if entrada == 'si':
uploadsingle('defacer','domain.com','hackmode','reason')
elif entrada == 'no':
main()
else:
print "Error , Saliendo del programa..."
exit
def uploadmass(defacer,hackmode,reason):
try:
url = 'http://www.zone-h.org/notify/mass'
values = {'defacer':defacer,
'domain1':'',
'domain2':'',
'domain3':'',
'domain4':'',
'domain5':'',
'domain6':'',
'domain7':'',
'domain8':'',
'domain9':'',
'domain10':'',
'domain1':domain,
'hackmode':hackmode,
'reason':reason,
'submit':'Send'}
data = urllib.urlencode(values)
req = urllib2.Request(url, data)
resp = urllib2.urlopen(req)
page = resp.read()
print page
except:
entrada = raw_input("Ha ocurrido un Error , deseas volver a realizar la acción? |si| o |no| -> ")
if entrada == 'si':
uploadmass(defacer,hackmode,reason)
elif entrada == 'no':
main()
else:
print "Error , Saliendo del programa..."
exit
def info():
hackmodes = """
[1] known vulnerability (i.e. unpatched system)
[2] undisclosed (new) vulnerability
[3] configuration / admin. mistake
[4] brute force attack
[5] social engineering
[6] Web Server intrusion
[7] Web Server external module intrusion
[8] Mail Server intrusion
[9] FTP Server intrusion
[10] SSH Server intrusion
[11] Telnet Server intrusion
[12] RPC Server intrusion
[13] Shares misconfiguration
[14] Other Server intrusion
[15] SQL Injection
[16] URL Poisoning
[17] File Inclusion
[18] Other Web Application bug
[19] Remote administrative panel access through bruteforcing
[20] Remote administrative panel access through password guessing
[21] Remote administrative panel access through social engineering
[22] Attack against the administrator/user (password stealing/sniffing)
[23] Access credentials through Man In the Middle attack
[24] Remote service password guessing
[25] Remote service password bruteforce
[26] Rerouting after attacking the Firewall
[27] Rerouting after attacking the Router
[28] DNS attack through social engineering
[29] DNS attack through cache poisoning
[30] Not available
[31] Cross-Site Scripting\n"""
reasons = """
[1] Heh...just for fun!
[2] Revenge against that website
[3] Political reasons
[4] As a challenge
[5] I just want to be the best defacer
[6] Patriotism
[7] Not available\n"""
entrada = raw_input("info about |hackmodes| or |reasons| -> ")
if entrada == "hackmodes":
print hackmodes
elif entrada == "reasons":
print reasons
else:
print "Error"
main()
zoneh()
: Los enlaces son solo para miembros.