forked from tarunkant/Gopherus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gopherus.py
executable file
·60 lines (54 loc) · 1.79 KB
/
gopherus.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
#!/usr/bin/python2
import argparse
import sys
sys.path.insert(0,'./scripts/')
from scripts import FastCGI, MySQL, DumpMemcached, PHPMemcached, PyMemcached, RbMemcached, Redis, SMTP, Zabbix
parser = argparse.ArgumentParser()
parser.add_argument("--exploit",
help="mysql,\n"
"fastcgi,\n"
"redis,\n"
"smtp,\n"
"zabbix,\n"
"pymemcache,\n"
"rbmemcache,\n"
"phpmemcache,\n"
"dmpmemcache")
args = parser.parse_args()
class colors:
reset='\033[0m'
red='\033[31m'
green='\033[32m'
orange='\033[33m'
blue='\033[34m'
print colors.green + """
________ .__
/ _____/ ____ ______ | |__ ___________ __ __ ______
/ \ ___ / _ \\\\____ \| | \_/ __ \_ __ \ | \/ ___/
\ \_\ ( <_> ) |_> > Y \ ___/| | \/ | /\___ \\
\______ /\____/| __/|___| /\___ >__| |____//____ >
\/ |__| \/ \/ \/
""" + "\n\t\t" + colors.blue + "author: " + colors.orange + "$_SpyD3r_$" + "\n" + colors.reset
if(not args.exploit):
print parser.print_help()
exit()
if(args.exploit=="mysql"):
MySQL.MySQL()
elif(args.exploit=="fastcgi"):
FastCGI.FastCGI()
elif(args.exploit=="redis"):
Redis.Redis()
elif(args.exploit=="smtp"):
SMTP.SMTP()
elif(args.exploit=="zabbix"):
Zabbix.Zabbix()
elif(args.exploit=="dmpmemcache"):
DumpMemcached.DumpMemcached()
elif(args.exploit=="phpmemcache"):
PHPMemcached.PHPMemcached()
elif(args.exploit=="rbmemcache"):
RbMemcached.RbMemcached()
elif(args.exploit=="pymemcache"):
PyMemcached.PyMemcached()
else:
print parser.print_help()