forked from xtiankisutsa/MARA_Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_mac.sh
executable file
·103 lines (72 loc) · 2.38 KB
/
setup_mac.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
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/bin/bash
#These are the requirements for running this tool:
#Update bash path in scripts
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' apktool_cfg.sh >> apktool_cfg.sh.tmp
rm apktool_cfg.sh.tmp
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' deobfuscator.sh >> deobfuscator.sh.tmp
rm deobfuscator.sh.tmp
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' setup.sh >> setup.sh.tmp
rm setup.sh.tmp
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' update.sh >> update.sh.tmp
rm update.sh.tmp
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' baksmali_cfg.sh >> baksmali_cfg.sh.tmp
rm baksmali_cfg.sh.tmp
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' mara.sh >> mara.sh.tmp
rm mara.sh.tmp
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' ssl_pyssltest.sh >> ssl_pyssltest.sh.tmp
rm ssl_pyssltest.sh.tmp
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' cfg.sh >> cfg.sh.tmp
rm cfg.sh.tmp
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' owasp_static_android.sh >> owasp_static_android.sh.tmp
rm owasp_static_android.sh.tmp
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' ssl_scanner.sh >> ssl_scanner.sh.tmp
rm ssl_scanner.sh.tmp
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' de-guard.sh >> de-guard.sh.tmp
rm de-guard.sh.tmp
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' setup_mac.sh >> setup_mac.sh.tmp
rm setup_mac.sh.tmp
sed -i.tmp 's|'/bin/bash'|/usr/local/bin/bash|g' ssl_testssl.sh >> ssl_testssl.sh.tmp
rm ssl_testssl.sh.tmp
chmod +x *.sh
#Package update
brew update -y -v
sudo -H pip install --upgrade pip
#Install bash
brew install bash -y -v
#Java JDK
brew tap caskroom/cask -y -v
brew tap caskroom/versions -y -v
brew cask install java -y
#Sed
#Will replace your BSD sed with GNU sed
brew install gnu-sed --with-default-names -y
#Git
brew install git -y -v
#Tree
brew install tree -y -v
#Figlet
brew install figlet -y -v
#unrest
sudo -H pip install unirest
#aha - Ansi HTML Adapter
#sudo apt-get -y install aha
brew install aha -y -v
#Python3
brew install python3 -y -v
#Androwarn dependencies
sudo -H pip install Jinja2
#Smali graph generation dependency
sudo -H pip install pydot
#configparser
sudo -H pip install configparser
#Smalisca
sudo -H pip install smalisca
#APKiD
cd tools/
git clone https://github.com/rednaga/yara-python
sudo -H python setup.py install
sudo -H pip install apkid
cd ../../
#Increase maximum java heap size for Jadx
export JAVA_OPTS="-Xmx4G"
source ~/.bashrc