Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
RedToor committed Sep 21, 2016
1 parent dfde0d5 commit bcd5bc4
Show file tree
Hide file tree
Showing 31 changed files with 6,497 additions and 153 deletions.
7 changes: 7 additions & 0 deletions LINETIME
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
* 21/09/16
Added the GUI!!!
Install : Install man files
Doc : Added new paper (Spanish)
Fixed Module : fbt/pr.pop
Fixed Import modules installed

* 23/08/16
Added New Function : Invoke, to call module within another module.
Added New Dependence : xterm, For open news consoles in other windows
Expand Down
4 changes: 2 additions & 2 deletions core/Information.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
#######################HEADER#

version="0.0.1.0"
date="28/07/16:18/08/16"
build="0063"
date="18/08/16:21/09/16"
build="0064"
Type="FREE"
8 changes: 4 additions & 4 deletions core/modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,28 +151,28 @@
<version>1.1</version>
<author>LeSZO ZerO</author>
<category>btf</category>
<filename>bruteforcetoftprotol</filename>
<filename>brute_force_to_ftp_protocol</filename>
<description>Brute Force to FTprotocol.</description>
</module>
<module name="btf/pr.sql">
<version>1.1</version>
<author>RedToor</author>
<category>btf</category>
<filename>bruteforcetosqlprotocol</filename>
<filename>brute_force_to_sql_protocol</filename>
<description>Brute Force to SQL protocol.</description>
</module>
<module name="btf/pr.ssh">
<version>1.1</version>
<author>RedToor</author>
<category>btf</category>
<filename>bruteforcetosshprotocol</filename>
<filename>brute_force_to_ssh_protocol</filename>
<description>Brute Force to SSH protocol.</description>
</module>
<module name="btf/pr.pop">
<version>1.1</version>
<author>RedToor</author>
<category>btf</category>
<filename>bruteforcetopop3rotocol</filename>
<filename>brute_force_to_pop3_protocol</filename>
<description>Brute Force to POP3 protocol.</description>
</module>
<module name="anf/af.imagen">
Expand Down
3 changes: 3 additions & 0 deletions core/shorts/ktf.gui
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
cd /usr/share/KatanaFramework
java -jar ktf.gui.jar
2 changes: 1 addition & 1 deletion core/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Katana":{"Description":"Katana Updates information","Author": "Redtoor","Version":"0.3","Update":{"Core":"0.0.1.0","Build":"0063","Date":"18/08/16"}}}
{"Katana":{"Description":"Katana Updates information","Author": "Redtoor","Version":"0.3","Update":{"Core":"0.0.1.0","Build":"0064","Date":"21/09/16"}}}
Binary file added doc/Paper-ES.pdf
Binary file not shown.
4 changes: 3 additions & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#HEAD#########################################################
#
# Katana Framework | install
# Last Modified: 18/08/2016
# Last Modified: 21/09/2016
#
#########################################################HEAD#

Expand Down Expand Up @@ -50,9 +50,11 @@ ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.linker /usr/bin/ktf.link
ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.update /usr/bin/ktf.update ;
ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.ktf /usr/bin/ktf.ktf ;
ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.tool /usr/bin/ktf.tool ;
ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.gui /usr/bin/ktf.gui ;
ln -f -r -s /usr/share/KatanaFramework/core/shorts/ktf.run /usr/bin/ktf.run
"""
Files="""
cp -r * /usr/share/KatanaFramework/doc/man/ /usr/local/share/man/man1/ ;
cd /usr/share/KatanaFramework/files/ ;
tar xvf /usr/share/KatanaFramework/files/exiftool.tar >/dev/null 2>&1;
tar xvf /usr/share/KatanaFramework/files/facebrok1.8.tar >/dev/null 2>&1;
Expand Down
Binary file added ktf.gui.jar
Binary file not shown.
78 changes: 7 additions & 71 deletions ktf.linker
Original file line number Diff line number Diff line change
@@ -1,71 +1,7 @@

from scripts.web import whois
from core import Errors

from core.Function import KatanaCheckActionShowModules,KatanaCheckActionUseModule
from core.Function import KatanaCheckActionShowOptions
from core.Function import KatanaCheckActionGetInfo,ShowInformationModule
from core.Function import ShowOptions,KatanaCheckActionSetValue,UpdateValue,runModule
from core.Function import KatanaCheckActionisBack,KatanaCheckActionGlobalCommands

import xml.etree.ElementTree as ET
import importlib
from core.design import *
from core import info
import argparse

CLASS_LINKER=DESIGN()
tree = ET.parse('core/modules.xml')
root = tree.getroot()
parser = argparse.ArgumentParser()
parser = argparse.ArgumentParser(description='ktf.linker:'+info.version+info.build)
parser.add_argument("-m", "--module", help="Module")
parser.add_argument("-t", "--target", help="Target")
parser.add_argument("-p", "--port", help="Port")
parser.add_argument("-f", "--file", help="File")
parser.add_argument("-u", "--user", help="Username")
parser.add_argument("-ps","--pass", help="Password")
parser.add_argument("-i","--interface", help="Password")

args = parser.parse_args()
args = parser.parse_args()
m=args.module

if __name__=="__main__":
# For GUI not show this.
CLASS_LINKER.linker(info.version, info.build)
for modules in root.findall('module'):
if m == modules.get('name'):
Space()
category = modules.find('category').text
filename = modules.find('filename').text
ModuleToStart = importlib.import_module("modules."+category+"."+filename)
init=ModuleToStart.init()

for option in init.options:
if init.options[option] == "target":init.options[option]=[args.target ,init.options[option][1],init.options[option][2]]
if init.options[option] == "port" :init.options[option]=[args.port ,init.options[option][1],init.options[option][2]]
if init.options[option] == "file" :init.options[option]=[args.file ,init.options[option][1],init.options[option][2]]
if init.options[option] == "user" :init.options[option]=[args.user ,init.options[option][1],init.options[option][2]]
if init.options[option] == "pass" :init.options[option]=[args.interface ,init.options[option][1],init.options[option][2]]

actions = "run"

while True:
try:
if actions != "run":actions=raw_input(Prompt(init.CodeName))
if KatanaCheckActionShowOptions(actions) :ShowOptions(init)
elif KatanaCheckActionSetValue(actions) :init.options=UpdateValue(actions,init.options)
elif KatanaCheckActionGetInfo(actions) :ShowInformationModule(init)
elif runModule(actions):
for Namevalue in init.options:
init.var.update({Namevalue:init.options[Namevalue][0]})
ModuleToStart.main(True)
elif KatanaCheckActionisBack(actions) :printAlert(6,"This Commands just work in console mode.")
else :
if a
ctions != "":KatanaCheckActionGlobalCommands(actions)
actions = ""
except:Errors.Errors()
Space()
ModuleNotFound(m)
#!/usr/bin/env python
#HEAD#########################################################
#
# Katana Framework | ktf.linker
# Last Modified: 21/09/2016
#
#########################################################HEAD#
Loading

0 comments on commit bcd5bc4

Please sign in to comment.