-
Notifications
You must be signed in to change notification settings - Fork 6
/
build_modules.sh
executable file
·90 lines (72 loc) · 2.43 KB
/
build_modules.sh
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
#!/bin/bash
# Project: Catherine Framework (https://github.com/battleoverflow/catherine)
# Author: battleoverflow (https://github.com/battleoverflow)
# License: BSD 2-Clause
# NetScan
# TODO: Test this function to verify it works, Go is the odd man out
function netscan() {
cd src/modules/net/netscan/src
echo "[+] Configuring NetScan module..."
go build src/modules/net/netscan/src/main.go -o /opt/catherine/modules/net/netscan
if [ -f "/opt/catherine/modules/net/netscan" ]
then
echo "[+] NetScan module successfully built"
else
echo "[-] NetScan module was not built properly"
fi
echo ""
}
# Web parsers
function parsers() {
# Link parser
echo "[+] Configuring Link Parser module..."
pyinstaller src/modules/web/parsers/links.py --onefile --clean -n links --distpath /opt/catherine/modules/web/parsers/ 2>/dev/null
if [ -f "/opt/catherine/modules/web/parsers/links" ]
then
echo "[+] Link Parser module successfully built"
else
echo "[-] Link Parser module was not built properly"
fi
echo ""
}
# Exec Dump
function exec_dump() {
echo "[+] Configuring Windows Exe Dump module..."
pyinstaller src/modules/formats/exe/win_exe_dump.py --onefile --clean -n win_exe_dump --distpath /opt/catherine/modules/formats/exe/ 2>/dev/null
if [ -f "/opt/catherine/modules/formats/exe/win_exe_dump" ]
then
echo "[+] Windows Exe Dump module successfully built"
else
echo "[-] Windows Exe Dump module was not built properly"
fi
echo ""
}
# Redis
function db_redis() {
echo "[+] Configuring Redis Database module..."
pyinstaller src/modules/db/redis.py --onefile --clean -n redis --distpath /opt/catherine/modules/db/ 2>/dev/null
if [ -f "/opt/catherine/modules/db/redis" ]
then
echo "[+] Redis Database module successfully built"
else
echo "[-] Redis Database module was not built properly"
fi
echo ""
}
# Mercy Extension
function mercy_ext() {
echo "[+] Configuring Mercy Extension module..."
pyinstaller src/modules/mercy/extension.py --onefile --clean -n extension --distpath /opt/catherine/modules/mercy/ 2>/dev/null
if [ -f "/opt/catherine/modules/mercy/extension" ]
then
echo "[+] Mercy Extension module successfully built"
else
echo "[-] Mercy Extension module was not built properly"
fi
echo ""
}
# netscan
parsers
exec_dump
db_redis
mercy_ext