Skip to content

Commit

Permalink
Beta
Browse files Browse the repository at this point in the history
Beta
  • Loading branch information
RedToor committed Jun 1, 2016
1 parent b9243af commit 5697730
Show file tree
Hide file tree
Showing 137 changed files with 28,841 additions and 3,340 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ Youtube Guide: https://www.youtube.com/watch?v=5JR3Lnrvmg4&list=PL6BZilIOZMcy7uG
from <img src="http://www.euromonitor.com/medialibrary/Image/Flag_20x20_Colombia.png" title="Colombia"> made in <img src="https://developer.ibm.com/predictiveanalytics/wp-content/uploads/sites/48/2015/04/python-icon.png" title="Python"> with <img src="http://cdn0.bodas.com.mx/img/smileys/smiley_heart.png" title="Love"> by <font color="red">Red</font>Toor, if you want Donate <img src="http://www.wbtcb.com/frontend/webroot/gfx/bitcoin-ico.gif" title="Bitcoins"> 1PAq7a9TqkJzEfBZGXGf2YFAU5KBZRccnW

© 2015-2016

22 changes: 12 additions & 10 deletions core/splash.py → core/Banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
#HEADER#######################
# Katana framework #
# Splash File #
# Last Modified: 01/05/2016 #
# Last Modified: 24/05/2016 #
# Review: 0 #
#######################HEADER#

from core import colors
from core import info
from core import colors,Information
from Function import get_number_modules,get_number_tools
tema="Space...theme"

print colors.B+"""
mM@@MM@@MM@@MM@@MM@@MM@@@MMMMM@@@@Mm
||========mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm===========||
Expand All @@ -20,10 +22,10 @@
||========@MMMM"""+colors.W+"""MMM"""+colors.B+"""MMM"""+colors.W+"""MMM"""+colors.B+"""MMMMM"""+colors.W+"""MMM"""+colors.B+"""MMMMMM"""+colors.W+"""MMM"""+colors.B+"""MMMMMMMMM=========||
|| """+colors.HH+""""""+colors.W+"""/TT\\"""+colors.HH+colors.B+"""mMMMMMMMMMM"""+colors.W+colors.HH+"""FRAMEWORK"""+colors.W+colors.HH+colors.B+"""MMMMMMMMMMMMm ||
|| """+colors.W+"""(____)"""+colors.HH+colors.B+"""@MM@@MM@@MM@@MMMMMM@@MM@@Mm"""+colors.W+""" ||
|| | P | ||
|| | W | """+colors.HH+""" Core """+colors.W+""" [ """+info.version+""", Build: """+info.build+""" ] ||
|| |__N_| """+colors.HH+""" Date """+colors.W+""" [ """+info.date+""" ] ||
|| |_ _| """+colors.HH+""" Theme """+colors.W+""" [ """+info.tema+""" ] ||
|| /|__|\\ """+colors.HH+"""Modules """+colors.W+""" [ """""+info.modules+""" Scritp's"""+colors.W+""" ] ||
"""+colors.GW+"""|| /__\/__\\"""+colors.GW+""" By RedToor ||"""+colors.W+"""
() ()\n"""
|| |# P | ||
|| |# W | """+colors.HH+""" Core """+colors.W+""" [ """+Information.version+""", Build: """+Information.build+""" ] ||
|| |#_N_| """+colors.HH+""" Date """+colors.W+""" [ """+Information.date+""" ] ||
|| |_ _| """+colors.HH+""" Theme """+colors.W+""" [ """+tema+""" ] ||
|| /|__|\\ """+colors.HH+"""Modules """+colors.W+""" [ """""+str(get_number_modules())+""" ] """+colors.HH+"""Tools """+colors.W+"""[ """+str(get_number_tools())+""" ] ||
"""+colors.GW+"""|| /__\/__\\"""+colors.GW+""" The hacking framework ||"""+colors.W+"""
() ()\n"""
70 changes: 70 additions & 0 deletions core/Default.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#!/usr/bin/env python
#HEAD#########################################################
#
# Katana Framework | Default
# Settings and Default Variables of Framework, here you can
# change value of variables for adapter to your system.
#
#
# Last Modified: 01/06/2016
#
#########################################################HEAD#


### SETTING FRAMEWORK ###

# Verbose Mode
"""Show all the alert messages."""
VERBOSE =True

# Errors Log
"""Saves all error events in a log."""
ERROR_LOG =True

# Apache Folder
"""Path of Apache2"""
PATCH_WWW ="/var/www/html/"

# Enable Xterm
"""It shows processes that are running through wires, shown with xterm"""
XTERM_OPTION =False

### END SETTING FRAMEWORK ###


# DEFAULT VARIABLES
"""Names of main files"""
KTFCONSOLE ="ktf.console"
KTFLINKER ="ktf.linker"
KTFRUN ="ktf.run"
KTFLAB ="ktf.lab"
KTFGUI ="ktf.gui"
"""References"""
FOLDER_KATANA ="/usr/share/KatanaFramework/"
KTF_REPO ="https://github.com/PowerScript/KatanaFramework/"
KTF_LINCENSE ="https://github.com/PowerScript/KatanaFramework/blob/master/doc/LICENCE"
TABLE_FOLDER_ADMIN ="files/db/commons-dir-admin.tbl"
DITIONARY_PASSWORDS="files/db/pass.dicc"
AGENTS_BROWSER ="files/db/headersbrowser.list"
PATCH_INTALL ="/usr/share/"
NMAP_PATH ="/usr/bin/nmap"
"""Commons"""
LOCAL_IP ="127.0.0.1"
INTERFACE_DEVICE ="wlan0"
INTERFACE_MONITOR ="wlan0mon"
MAC_TARGET ="AA:A1:BB:B2:CC:C1"
CHANNEL_TARGET ="9"
ESSID_TARGET ="FUCK-ME"
MY_IP ="192.168.1.225"
GATEWAY_ADR ="192.168.1.254"
EMAIL ="root@localhost"
USERNAME ="root"
PASSWORD ="toor"
"""Ports"""
FTP_PORT ="21"
HTTP_PORT ="80"
POP_PORT ="110"
SQL_PORT ="3306"
SSH_PORT ="22"
SMTP_PORT ="25"
# END DEFAULT VARIABLES
107 changes: 63 additions & 44 deletions core/Errors.py
Original file line number Diff line number Diff line change
@@ -1,47 +1,66 @@
#!/usr/bin/env python
#HEADER#######################
# Katana framework #
# Error file debug #
# Last Modified: 03/05/2016 #
# Review: 1 #
#######################HEADER#

from design import *
#HEAD#########################################################
#
# Katana Framework | Errors
# Register of Errors and Event
#
#
# Last Modified: 01/06/2016
#
#########################################################HEAD#

from Design import *
from Default import ERROR_LOG
from Function import SaveErrorLog

import sys
d=DESIGN()

def Errors(event, info):
#DEBUG
#print event, info
info=str(info)
string=str(event)
if string.find("IOError") >= 0:
return d.no_file_found(str(info))
if string.find("OperationalError(1045") >= 0:
d.No_match()
return
if string.find("_mysql_exceptions.OperationalError") >= 0:
print ' '+Bad+' Host '+info+' is not allowed to connect to this MySQL server.\n'
return
if string.find("password refused") >= 0:
print ' '+Bad+' Host '+info+' is not allowed to connect to this MySQL server.\n'
return
if string.find("No such device") >= 0:
return d.Nosuchdevice()
if string.find("smtplib.SMTPServerDisconnected") >= 0:
print ' '+Bad+' Host '+info+' Connection unexpectedly closed.\n'
return
if string.find("socket") >= 0:
return d.target_off(str(info))
if string.find("KeyboardInterrupt") >= 0 and info!=False:
d.kbi()
return
if string.find("KeyboardInterrupt") >= 0 and info==False:
d.kbi()
exit(0)
if string.find("SystemExit") >= 0 and info==False:
exit(0)
if string.find("ValueError") >= 0:
d.VError()
else:
print "\n Event : %s \n Info: %s " % (event,info)
exit(0)
def Errors():
try:
event = sys.exc_info()
Alert = "Nothing"
Error = str(event[0]).replace("<class '","").replace("'>","").replace("<type '","")
ClassError = Error.split(".")

#DEBUG
#print event
#print sys.exc_traceback.tb_lineno
#print sys.exc_traceback.tb_frame.f_code.co_filename

if ClassError[0] == "socket" :
if ClassError[1] == "error" : Alert = " ["+colors[3]+"Socket"+colors[0]+"]"+error
elif ClassError[1] == "timeout" : Alert = " ["+colors[3]+"Socket"+colors[0]+"]"+warning
elif ClassError[1] == "gaierror": Alert = " ["+colors[3]+"Socket"+colors[0]+"]"+warning

elif ClassError[0] == "ftplib" :
if ClassError[1] == "error_perm" : Alert = " ["+colors[3]+"Ftp"+colors[0]+"]"+warning

elif ClassError[0] == "_mysql_exceptions":
if ClassError[1] == "OperationalError" : Alert = " ["+colors[3]+"Sql"+colors[0]+"]"+error
if ClassError[1] == "ProgrammingError" : Alert = " ["+colors[3]+"Sql"+colors[0]+"]"+error

elif ClassError[0] == "exceptions" :
if ClassError[1] == "ValueError" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+error
elif ClassError[1] == "IOError" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+error
elif ClassError[1] == "NameError" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+error+"[Line #"+str(sys.exc_traceback.tb_lineno)+"]"
elif ClassError[1] == "UnboundLocalError" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+error+"[Line #"+str(sys.exc_traceback.tb_lineno)+"]"
elif ClassError[1] == "AttributeError" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+error+"[Line #"+str(sys.exc_traceback.tb_lineno)+"]"
elif ClassError[1] == "KeyboardInterrupt" : Alert = "\n ["+colors[3]+"Exception"+colors[0]+"]"+warning
elif ClassError[1] == "DeprecationWarning" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+warning
elif ClassError[1] == "PendingDeprecationWarning" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+warning
elif ClassError[1] == "RuntimeWarning" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+warning
elif ClassError[1] == "SyntaxWarning" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+warning
elif ClassError[1] == "UserWarning" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+warning
elif ClassError[1] == "FutureWarning" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+warning
elif ClassError[1] == "ImportWarning" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+warning
elif ClassError[1] == "UnicodeWarning" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+warning
elif ClassError[1] == "BytesWarning" : Alert = " ["+colors[3]+"Exception"+colors[0]+"]"+warning
else:
print " ["+colors[3]+"Exception"+colors[0]+"]"+"("+str(event[1])+")\n"
return

print Alert+"("+str(event[1])+")\n"
except Exception as E:print E
finally:
if ERROR_LOG:SaveErrorLog(str(event)+"#"+str(sys.exc_traceback.tb_lineno)+":"+str(sys.exc_traceback.tb_frame.f_code.co_filename))
Loading

0 comments on commit 5697730

Please sign in to comment.