Skip to content

Commit

Permalink
New Core
Browse files Browse the repository at this point in the history
  • Loading branch information
RedToor committed Apr 1, 2016
1 parent e99a281 commit 451563e
Show file tree
Hide file tree
Showing 111 changed files with 3,206 additions and 3,425 deletions.
52 changes: 3 additions & 49 deletions README.md → README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="http://web.alsa.org/images/content/pagebuilder/KTF_Logo.jpg" title="Python" align="center">
</center>
[![Gitter chat](https://badges.gitter.im/totaljs/framework.png)](https://gitter.im/RedToor/Katana) ![Supported OS](https://img.shields.io/badge/Supported%20OS-Linux-yellow.svg) ![License](https://img.shields.io/badge/license-GPLv3-blue.svg)
![CORE](https://img.shields.io/badge/core-0.0.0.8-green.svg)![Build](https://img.shields.io/badge/BUILD-0055-red.svg)
![CORE](https://img.shields.io/badge/core-0.0.0.9-green.svg)![Build](https://img.shields.io/badge/BUILD-0056-red.svg)
---
# ABOUT

Expand All @@ -22,28 +22,14 @@ The Katana source code is organized as follows:
<i>-[doc/](https://github.com/RedToor/Katana/tree/master/doc)</i> > Documentation<br>
<i>-[scripts/](https://github.com/RedToor/Katana/tree/master/scripts)</i> > Scripts(modules)<br>

# MAIN FILES
```
--core
¬Setting.py --- Setting variables
¬design.py --- Design template
¬Errors.py --- Error Debug
¬ping.py --- Functions
--scripts
¬__init__.py --- Modules List
```
# REQUIREMENTS
OS requirement:
<img src="http://www.question-defense.com/wp-content/themes/qd/backtrack-menu/backtrack-logo.png"> Kali Linux

# INSTALLATION
Installation of Katana framework:
<i><b><br><br>
git clone https://github.com/RedToor/katana.git<br>
cd Katana<br>
chmod 777 install.py<br>
python install.py</i>
chmod 777 install<br>
python install</i>
</i></b>

# USAGE
Expand All @@ -56,38 +42,6 @@ Commands
Building (Katana Laboratory) [ktf.lab] PREMIUM
(Katana Graphical User Interface) [ktf.gui] PREMIUM
```
# MODULES (SCRIPTS)

Code-Name | Description | Author | Version
----------|-------------|-------|--------
web/httpbt|Brute force to http 403|Redtoor|1.0
web/formbt|Brute force to form-based|Redtoor|1.0
web/cpfinder|Admin panel finder|Redtoor|1.0
web/joomscan|Scanner vul's cms joomla|Redtoor|1.0
web/dos|Denial of service web|Redtoor|1.0
web/whois|Who-is web|Redtoor|1.0
web/lfd-con|LFD vulnerability Console|Redtoor|1.0
net/arpspoof|ARP-Spoofing attack|Redtoor|1.0
net/lanlive|Host's up in my LAN|Redtoor|2.0
net/arplook|ARP-Spoofing detector|cl34r|1.0
net/portscan|Port Scanner|RedToor|1.1
set/gdreport|Getting information with web|RedToor|3.0
set/mailboom|E-mail boombing SPAM|RedToor|1.0
set/facebrok|facebook phishing plataform|RedToor|1.7
fle/brutezip|Brute force to zip files|LeSZO ZerO|2.0
fle/bruterar|Brute force to rar files|LeSZO ZerO|2.0
clt/ftp|Console ftp client|Redtoor|1.0
clt/sql|Console sql client|Redtoor|1.1
clt/pop3|Console pop3 client|Redtoor|1.0
ser/sql|Start SQL server|Redtoor|1.0
ser/apache|Start Apache server|Redtoor|1.0
ser/ssh|Start SSH server|Redtoor|1.0
fbt/ftp|Brute force to ftp|Redtoor|1.0
fbt/ssh|Brute force to ssh|Redtoor|1.0
fbt/sql|Brute force to sql|Redtoor|1.0
fbt/pop3|Brute force to pop3|Redtoor|1.0
mc/gendic|Dictionary generator|Redtoor|2.1
wifi/dos|Denial of service wifi|Redtoor|2.0

# SUPPORT
Questions, bugs or suggestions to : [email protected]
Expand Down
17 changes: 12 additions & 5 deletions core/Errors.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#
# Katana framework
# @Katana Errors
#

#!/usr/bin/env python
#HEADER#######################
# Katana framework #
# Error file debug #
# Last Modified: 27/03/2016 #
# Review: 0 #
#######################HEADER#

from design import *
d=DESIGN()
Expand All @@ -20,6 +22,11 @@ def Errors(event, info):
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("socket") >= 0:
return d.target_off(str(info))
if string.find("KeyboardInterrupt") >= 0 and info!=False:
Expand Down
40 changes: 40 additions & 0 deletions core/GeneralCommands.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env python
#HEADER#######################
# Katana framework #
# General Commands File #
# Last Modified: 23/03/2016 #
# Review: 0 #
#######################HEADER#

# Show modules installed in framework
SHOW_MODULES="show modules"
SHOW_MODULES_SHORT="showm"

# Select a module
SELECT="use"

# Exit of ktf
EXIT="exit"
EXIT_SHORT="x"

# Helper
HELP="help"
HELP_SHORT="h"

# Update
UPDATE="update"
UPDATE_SHORT="u"

# Clear
CLEAR="clear"
CLEAR_SHORT="c"

# Show Options
SHOW="show options"
SHOW_SHORT="sop"

# SET Value
SETET="set"

# Back
BACKING="back"
2 changes: 0 additions & 2 deletions core/Setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@

# PATHS SCRIPTS
NMAP_PATH="/usr/bin/nmap"


2 changes: 0 additions & 2 deletions core/ShortCuts/ktf.console

This file was deleted.

2 changes: 0 additions & 2 deletions core/ShortCuts/ktf.linker

This file was deleted.

2 changes: 0 additions & 2 deletions core/ShortCuts/ktf.run

This file was deleted.

4 changes: 4 additions & 0 deletions core/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@
P = '\033[35m'
C = '\033[36m'
GR = '\033[40m'
GY = '\033[43m'
GE = '\033[41m'
GW = '\033[4m'
HH = '\033[1m'
84 changes: 43 additions & 41 deletions core/design.py
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
#
# Katana framework
# @Katana Design
#

#
# Core::Theme>Warrior
#
#!/usr/bin/env python
#HEADER#######################
# Katana framework #
# Design file (Theme) #
# Last Modified: 25/03/2016 #
# Review: 0 #
#######################HEADER#

import time
colors=['\033[0m', # 0} WHITE
'\033[31m', # 1} RED
'\033[32m', # 2} YELLOW
'\033[33m', # 3} PURPLE
'\033[34m', # 4} CYAN
'\033[35m', # 5} MAGENT
'\033[36m', # 6} CURL ____
'\033[1m', # 7} WHITE LOW
'\033[4m', # 8} WHITE HIGH
'\033[0m', # 9} WHITE (FUCK)
'\033[40m', # 10} BACKGROUND GREY
'\033[41m', # 11} BACKGROUND RED
'\033[42m', # 12} BACKGROUND GREEN
'\033[43m'] # 13} BACKGROUND YELLOW



#White #Red #Green #Orange #Blue #Purple #Cyan
colors=['\033[0m', '\033[31m', '\033[32m', '\033[33m', '\033[34m', '\033[35m', '\033[36m','\033[1m', '\033[4m', '\033[0m', '\033[40m']
#Bold #Underl #ENDL #BackBlack


# Alerts
Bad=colors[0]+"["+colors[1]+"Err"+colors[0]+"]"
Alr=colors[0]+"["+colors[4]+"Inf"+colors[0]+"]"
God=colors[0]+"["+colors[2]+"Run"+colors[0]+"]"
# ALERTs
Bad=colors[0]+"["+colors[1]+"ERR"+colors[0]+"]"
Alr=colors[0]+"["+colors[4]+"INF"+colors[0]+"]"
God=colors[0]+"["+colors[2]+"RUN"+colors[0]+"]"
Suf=colors[0]+"["+colors[2]+"SUF"+colors[0]+"]"
Hlp=colors[0]+"["+colors[7]+"HLP"+colors[0]+"]"
Got=colors[0]+"["+colors[8]+"-->"+colors[0]+"]"
Ned=colors[0]+"["+colors[1]+"Err"+colors[0]+"]"
Nrs=colors[0]+"["+colors[1]+"NRS"+colors[0]+"]"
War=colors[0]+"["+colors[3]+"WAR"+colors[0]+"]"

#print colors[0]+"0"+colors[1]+"1"+colors[2]+"2"+colors[3]+"3"+colors[4]+"4"+colors[5]+"5"+colors[6]+"6"+colors[7]+"7"+colors[8]+"8"+colors[9]+"9"+colors[10]+"10"

class DESIGN:
def messages(self, message):
if module == 1:
print " test module"
def Line(self,CodeName,Description):
print colors[0]+" |"+colors[1]+"=="+colors[0]+"|::| "+colors[7]+CodeName+colors[0]+"\t\t"+Description
def MainPrompt(self):
return colors[11]+" KTF>"+colors[0]
def prompt(self, module):
promp=colors[0]+" "+colors[0]+"ktn"+colors[0]+"::"+colors[3]+module+colors[0]+" "+colors[0]+">"+colors[0]
return promp
return colors[11]+" KTF>"+colors[10]+colors[7]+module+colors[0]+">"+colors[0]
def option(self):
print "\n [options]\t[RQ]\t[description]\t\t[value]"
print " ---------\t----\t-------------\t\t-------"
Expand All @@ -61,28 +64,33 @@ def kbi(self):
def loading_file(self):
print " "+Alr+" Loading files..."+colors[0]
def loaded(self):
print " "+God+" Loaded file "+colors[0]
print " "+Suf+" Loaded file "+colors[0]
def filenot(self, files):
print " "+Bad+" Dictionary Not found : '"+files+"'"+colors[0]+", Check againt the parameters.\n"
def no_file_found(self, files):
print " "+Bad+" File Not found : '"+files+"'"+colors[0]+", Check againt the parameters.\n"
def Client_prompt(self,client):
return colors[1]+" CLT~"+colors[3]+""+client+"/> "+colors[0]
return colors[11]+" KTF>"+colors[10]+colors[7]+client+colors[0]+">"+colors[0]
def noptions(self):
print "\n Options ["+colors[1]+"disabled"+colors[0]+"], you relax just "+colors[2]+"run"+colors[0]+" it...\n"
def Success(self, username, password):
print "\n-"+Suf+" Successfully with [username="+username+"][password="+password+"]\n"
def nodataallow(self):
print " "+Bad+" parameter not allow"+colors[0]
def ModuleNotFound(self,nameModule):
print " "+Bad+" The `"+nameModule+"` is Not Installed or not Exist.\n"
def No_match(self):
print " "+Bad+" Username or password no match, Check againt the parameters.\n"
def helpAUX(self):
print "\n "+Hlp+" Auxiliar Help\n"
def noconnect(self):
string=" "+Ned+" Not connected to any network, this module need are connected to a network."
return string
def KtfRun(self):
print colors[11]+" KTF.RUN "+colors[0]+colors[7]+time.strftime('%c')+colors[0]
def Noconnect(self):
print " "+Ned+" Not connected to any network, this module need are connected to a network."
def go(self,to):
print " "+Got+" Go to : \033[40m"+to+""+colors[0]
def Helper(self):
print " ["+colors[1]+"!"+colors[0]+"] Invalid parameter use show 'help' for more information"+colors[0]
def testing(self, protocol, port):
print " "+Alr+" Testing "+protocol+" protocol \t\t\t ["+port+"]"
def live_protocol(self):
Expand All @@ -94,7 +102,9 @@ def nocommandCLT(self, string):
def VError(self):
print " "+Bad+" Value Error: [LINKER] is necesary all parameters, type 'sop'."
def NoDeviceFound(self, device):
print " "+Bad+" The divice '"+device+"' not was Found.\n"
print " "+Bad+" The device '"+device+"' not was Found.\n"
def Nosuchdevice(self):
print " "+Bad+" No such device.\n"
def ktflab(self,version,build):
print """
__ __ ___"""+colors[3]+"""__ __ """+colors[0]+"""
Expand All @@ -116,11 +126,3 @@ def ktfrun(self,version,build):
/ '_/ __/ _/"""+colors[1]+"""_ __/ // / _ \\ """+colors[0]+"""
/_/\_\\\\_/__/ """+colors[1]+"""/_/ \_,_/_//_/ """+colors[0]+"""
Core:"""+version+"""/Build:"""+build+"\n"
def ktfgui(self):
print """
__ __ ___ _
/ /__/ /_/ _/__ ___ __(_)
/ '_/ __/ _/ _ `/ // / /
/_/\_\\__/_/ \_, /\_,_/_/
Versio 0.0.1/___/ \n"""

Loading

0 comments on commit 451563e

Please sign in to comment.