-
Notifications
You must be signed in to change notification settings - Fork 0
/
phantomblitz.py
101 lines (98 loc) · 4.55 KB
/
phantomblitz.py
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
import argparse,time
import os,subprocess
from socket import *
from modules.auto_type import s_print
from modules.phantomblitz_listener import phantomblitz_listen
from modules.phantomblitz_builder import phantomblitz_build
# colors
NONE = "\033[0m"
BOLD = "\033[1m"
RED = "\033[31m"
GREEN = "\033[32m"
YELLOW = "\033[33m"
BLUE = "\033[34m"
MAGENTA = "\033[35m"
CYAN = "\033[36m"
def clear_screen():
if os.name == 'nt':
os.system('cls')
else:
os.system('clear')
clear_screen()
# logo
s_print('''
'''+RED+''' DISCLAIMER '''+NONE+MAGENTA+'''
By using this tool, you agree to the terms and conditions [./terms-and-conditions.md] outlined above and acknowledge that any misuse of this tool is strictly prohibited.'''
+NONE )
time.sleep(2)
clear_screen()
def intro():
s_print(f'''{NONE}{BLUE}
¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
¶¶__¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶__¶¶
¶¶__¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶__¶¶
¶¶___¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶___¶¶
¶¶___¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶___¶¶
¶¶____¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶____¶¶
¶¶¶____¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶_____¶¶
¶¶¶______¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶_____¶¶¶
¶__8______¶¶¶¶¶¶¶¶_¶¶¶¶¶¶¶_¶¶¶¶¶¶¶¶______8__¶
¶___88______¶¶¶¶¶__¶¶¶¶¶¶¶__¶¶¶¶¶_______8___¶
¶____88________¶¶¶___¶_¶___¶¶¶¶_______88____¶
¶¶_____888_______¶¶_______¶¶_______888_____¶¶
¶¶________8888____¶¶_____¶¶____88888_______¶¶
¶¶¶___________888___________888___________¶¶¶
¶¶¶_88___________88________8___________88_¶¶¶
¶¶¶___8888888__________________88888888___¶¶¶
¶¶¶¶_______8888888__88_88__8888888_______¶¶¶¶
¶¶¶¶¶________________8_8_________________¶¶¶¶
¶¶¶¶¶¶___________88__8_8__888___________¶¶¶¶¶
¶¶¶¶¶¶¶¶¶___88888____8_8_____8888____¶¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶___8_____________________8____¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶__________¶_88_88_¶__________¶¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶¶¶________¶__888__¶¶_______¶¶¶¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶¶¶¶¶____¶¶¶__888__¶¶¶____¶¶¶¶¶¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶___888___¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶_____888_____¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶_____88888_____¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶____8888888____¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶____8888888____¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶__8888888__¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶_8888888_¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
ℙ𝕙𝕒𝕟𝕥𝕠𝕞𝔹𝕝𝕚𝕥𝕫 {NONE}
Developer: Dev. Gautam Kumar {RED}
''')
parser = argparse.ArgumentParser()
parser.add_argument("-m", "--mode", type=str, help="Which mode or function to execute: build or listen")
parser.add_argument("-lh","--lhost",type=str, help="LHOST")
parser.add_argument("-lp","--lport",type=int, help="LPORT")
parser.add_argument("-o","--output",type=str, help="Specify Output file for the payload file name")
parser.add_argument("-c","--command",type=str, help="Command to execute after connection initialization")
args = parser.parse_args()
lhost = args.lhost
lport = args.lport
filename = args.output
if args.mode == "build":
intro()
time.sleep(1)
phantomblitz_build(lhost,lport,filename)
elif args.mode == "listen":
intro()
time.sleep(1)
print(phantomblitz_listen(lhost,lport))
else:
intro()
print(
'''
usage: PhantomBlitz.py [-h] [-m MODE] [-lh LHOST] [-lp LPORT]
options:
-h, --help show this help message and exit
-m MODE, --mode MODE Which mode or function to execute: build or listen
-lh LHOST, --lhost LHOST
LHOST
-lp LPORT, --lport LPORT
LPORT
-o output, --output Output
Specify Output file for the payload file name {NONE}
''')