forked from laudarch/Shellsploit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshellsploit.py
More file actions
103 lines (79 loc) · 2.64 KB
/
Copy pathshellsploit.py
File metadata and controls
103 lines (79 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/usr/bin/env python
#------------------Bombermans Team---------------------------------#
#Author : B3mB4m
#Concat : [email protected]
#Project : https://github.com/b3mb4m/Shellsploit
#LICENSE : https://github.com/b3mb4m/Shellsploit/blob/master/LICENSE
#------------------------------------------------------------------#
from .control import *
from .core.logo.logo import banner
from .core.logo.counter import *
from .core.Comp import tab
from shutil import move
from lib.core.base import Base
from sys import version_info
if version_info.major >= 3:
raw_input = input
tab.completion( "shellsploit")
db = B3mB4mLogo().start()
def start():
print (banner( db[0], db[1], db[2], db[3]+5))
shellsploit().startmain()
class shellsploit(Base):
def __init__(self):
Base.__init__(self)
def startmain(self):
try:
bash = bcolors.OKBLUE + bcolors.UNDERLINE + "ssf" + bcolors.ENDC
bash += bcolors.OKBLUE + " > "+ bcolors.ENDC
terminal = raw_input(bash)
except KeyboardInterrupt:
shellsploit.exit("\n[*] (Ctrl + C ) Detected, Trying To Exit ...")
if terminal[:4] == "help" or terminal[:1] == "?":
from .core.help import mainhelp
mainhelp()
elif terminal[:14] == "show backdoors":
from .core.backdoors import backdoorlist
backdoorlist()
elif terminal[:13] == "show encoders":
from .core.backdoors import encoderlist
encoderlist()
elif terminal[:2] == "os":
shellsploit.oscommand( terminal[3:])
elif terminal[:6] == "banner":
print (banner( db[0], db[1], db[2], db[3]+5))
elif terminal[:3] == "use":
all_sc_modules = []
for platforms in shellsploit.AllModules().keys():
for shellcodeType in shellsploit.AllModules()[platforms]:
all_sc_modules.append("{}/{}".format(platforms,shellcodeType))
if terminal.split()[1] in all_sc_modules:
for shellcode in all_sc_modules:
if terminal.split()[1] == shellcode:
B3mB4m().control(shellcode)
self.startmain()
shellsploit.invalidcommand()
self.startmain()
#else:
# shellsploit.invalidcommand()
# self.startmain()
elif terminal[:14] == "show injectors":
from .core.lists import injectorlist
injectorlist()
elif terminal[:5] == "clear":
shellsploit.clean()
elif terminal[:15] == "show shellcodes":
from .core.shellcodes import shellcodelist
shellcodelist()
elif terminal[:4] == "exit":
shellsploit.exit("\nThanks for using shellsploit !\n")
else:
if not terminal:
self.startmain()
else:
print (bcolors.RED + bcolors.BOLD + "[-] Unknown command: %s" % terminal + bcolors.ENDC)
self.startmain()
self.startmain()
def main():
from shell.parser import Parser
start()