Skip to content

Commit 2823f04

Browse files
author
peterpt
committed
1.9.8
1 parent c44795f commit 2823f04

File tree

146 files changed

+227209
-15341
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+227209
-15341
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## CHANGELOG
2+
* v1.9.8 - Upgraded android sdk tools to 30.0.1 & apktool to 2.6.0
23
* v1.9.7 - Fixes in Setup , now it detects if incorrect version of mingw is installed and also updates automatically public keys for jessie repository before installing correct version of mingw for fudwin
34
* v1.9.7 - Bugs and more bugs solved in setup and chk_tools , implemented python3 in install and pip3 for original powerstager and solved theissues during a clean install in kali of fatrat the problems related to mingw issues from jessie repo from debian
45
* v1.9.7 - Implemented capability to test apk before going further with payload

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
# TheFatRat
33

4-
[![Version](https://img.shields.io/badge/TheFatRat-1.9.7-brightgreen.svg?maxAge=259200)]()
5-
[![Version](https://img.shields.io/badge/Codename-Whistle-red.svg?maxAge=259200)]()
6-
[![Stage](https://img.shields.io/badge/Release-Stable-brightgreen.svg)]()
4+
[![Version](https://img.shields.io/badge/TheFatRat-1.9.8-brightgreen.svg?maxAge=259200)]()
5+
[![Version](https://img.shields.io/badge/Codename-Target-red.svg?maxAge=259200)]()
6+
[![Stage](https://img.shields.io/badge/Release-Testing-brightgreen.svg)]()
77
[![Build](https://img.shields.io/badge/Supported_OS-Linux-orange.svg)]()
88
[![Available](https://img.shields.io/badge/Available-BlackArch-red.svg?maxAge=259200)]()
99
[![Documentation](https://img.shields.io/badge/CEHv10-eccouncil-blue.svg?maxAge=259200)](https://github.com/ManhNho/CEHv10/tree/master/Slides)

autorun/app4

239 KB
Binary file not shown.

autorun/autorun.ico

66.1 KB
Binary file not shown.

autorun/autorun.inf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[autorun]
2+
open=app4
3+
icon=autorun.ico
4+
label=

chk_tools

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ if [ "$?" -eq "0" ]; then
267267
dxg=$(dx --version 2>&1 | tee temp/dx > /dev/null 2>&1)
268268
chkvs=$(grep "version" < temp/dx | awk '{print $3}')
269269
case "$chkvs" in
270-
1.12)
270+
1.16)
271271
echo "[✔]"
272272
;;
273273
*)
@@ -293,7 +293,7 @@ which aapt >> /dev/null 2>&1
293293
if [ "$?" -eq "0" ]; then
294294
chkvs=$(aapt v | grep "Android" | awk '{print $5}')
295295
case "$chkvs" in
296-
v0.2-3544217)
296+
v0.2-6625208)
297297
echo "[✔]"
298298
;;
299299
*)
@@ -318,7 +318,7 @@ which apktool >> /dev/null 2>&1
318318
if [ "$?" -eq "0" ]; then
319319
chkvs=$(apktool --version | awk '{print$1}')
320320
case "$chkvs" in
321-
2.4.1)
321+
2.6.0)
322322
echo "[✔]"
323323
;;
324324
*)

prog.c

Lines changed: 179025 additions & 8460 deletions
Large diffs are not rendered by default.

release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.7
1+
1.9.8

setup.sh

Lines changed: 39 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ rm /tmp/expkeys.log && mv /tmp/expkeystmp.log /tmp/expkeys.log
3131
cntk=$(wc -l /tmp/expkeys.log | awk '{print$1}' | sed 's/ //g')
3232
if [[ "$cntk" == "0" ]]
3333
then
34-
echo "Done"
34+
echo "[ Done ]"
3535
else
36-
echo "Error"
36+
echo "[ Error ]"
3737
echo "Unable to process key for $dist"
3838
echo ""
3939
fi
4040
}
4141

4242
function repokey () {
43-
echo -ne "$green" "[ ? ] Update Jessie/Kali Repo Public Key."
43+
echo -ne "$green" "[ ? ] Update Jessie/Kali Repo Public Key"
4444
apt-get update &> /tmp/aptkey.log
4545
awk '{print $1}' RS='NO_PUBKEY' /tmp/aptkey.log | sed '1d' > /tmp/expkeys.log
4646
awk '{print $1}' RS='EXPKEYSIG' /tmp/aptkey.log | sed '1d' >> /tmp/expkeys.log
@@ -49,17 +49,17 @@ rm /tmp/expkeys.log && mv /tmp/expkeystmp.log /tmp/expkeys.log
4949
cntk=$(wc -l /tmp/expkeys.log | awk '{print$1}' | sed 's/ //g')
5050
if [[ "$cntk" == "0" ]]
5151
then
52-
echo "Done"
52+
echo "[ Done ]"
5353
fi
5454
for i in $(seq $cntk)
5555
do
5656
gtkey=$(sed -n ${i}p /tmp/expkeys.log)
57-
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $gtkey &> /tmp/gtkey.log
57+
xterm -T "☣ CHECK PUBKEY ☣" -geometry 100x30 -e "apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $gtkey &> /tmp/gtkey.log"
5858
kout=$(grep -w "Total number processed:" /tmp/gtkey.log | awk -F'Total number processed:' '{print $2}' | sed 's/ //g')
5959
dist=$(grep -o '".*"' /tmp/gtkey.log | sed 's/"//g')
6060
if [[ "$kout" == "1" ]]
6161
then
62-
echo "Done"
62+
echo "[ Done ]"
6363
echo "Succefull Key processed for $dist"
6464
else
6565
rchk
@@ -811,18 +811,18 @@ sleep 1
811811

812812
which x86_64-w64-mingw32-gcc >> /dev/null 2>&1
813813
if [ "$?" -eq "0" ]; then
814-
echo -e "$green" "[ ✔ ] Mingw-w64 Compiler...............[ found ]"
814+
echo -e "$green" "[ ✔ ] Mingw-w64 Compiler................[ found ]"
815815
which x86_64-w64-mingw32-gcc >> "$log" 2>&1
816816
echo "Mingw64 -> OK" >> "$inst"
817817
else
818818
echo -e "$red" "[ X ] Mingw-w64 -> not found "
819819
#Powerstager requires mingw64 to work , mingw32 is required because powerfull.sh requires it for 32bit fud exe compiling
820820
# In case mingw64 not found then remove any previously mingw32 & 64 bit faulty instalations and install mingw64
821821

822-
xterm -T "☣ INSTALL MINGW64 COMPILLER ☣" -geometry 100x30 -e "sudo apt-get install *mingw* -y | tee -a $mingw"
822+
xterm -T "☣ INSTALL MINGW64 COMPILLER ☣" -geometry 100x30 -e "sudo apt-get install mingw32 mingw-w64 -y | tee -a $mingw"
823823
which x86_64-w64-mingw32-gcc > /dev/null 2>&1
824824
if [ "$?" -eq "0" ]; then
825-
echo -e "$green" "[ ✔ ] Mingw-64 Compiler..................[ found ]"
825+
echo -e "$green" "[ ✔ ] Mingw-64 Compiler.................[ found ]"
826826
which x86_64-w64-mingw32-gcc >> "$log" 2>&1
827827
echo "Mingw64 -> OK" >> "$inst"
828828
else
@@ -863,27 +863,27 @@ if [ "$?" -eq "0" ]; then
863863
dxg=$(dx --version 2>&1 | tee temp/dx)
864864
dxv=$(grep "version" < temp/dx | awk '{print $3}')
865865
case "$dxv" in
866-
1.12)
867-
#DX exists and it is version 1.12
866+
1.16)
867+
#DX exists and it is version 1.16
868868
rm -rf temp/dx >/dev/null 2>&1
869869
which dx >> "$log" 2>&1
870870
echo "dx" | tee -a "$config" >> /dev/null 2>&1
871-
echo -e "$green" "[ ✔ ] DX 1.12...........................[ found ]"
871+
echo -e "$green" "[ ✔ ] DX 1.16...........................[ found ]"
872872
echo "DX -> OK" >> "$inst"
873873
;;
874874
*)
875-
#DX does not exists or is not 1.12 version
875+
#DX does not exists or is not 1.16 version
876876
xterm -T "☣ Removing Your Current DX ☣" -geometry 100x30 -e "sudo apt-get remove --purge dx -y"
877877
unlink "/usr/local/sbin/dx" > /dev/null 2>&1
878878
ln -s "$path/tools/android-sdk/dx" "/usr/local/sbin/dx" > /dev/null 2>&1
879879
which dx > /dev/null 2>&1
880880
if [ "$?" -eq "0" ]; then
881881
which dx >> "$log" 2>&1
882882
echo "dx" | tee -a "$config" >> /dev/null 2>&1
883-
echo -e "$green" "[ ✔ ] DX 1.12...........................[Installed]"
883+
echo -e "$green" "[ ✔ ] DX 1.16...........................[Installed]"
884884
echo "DX -> OK" >> "$inst"
885885
else
886-
echo -e "$red" "[ x ] DX 1.12"
886+
echo -e "$red" "[ x ] DX 1.16"
887887
echo "0" > "$stp"
888888
echo "dx -> Not OK" >> "$inst"
889889
fi
@@ -896,10 +896,10 @@ which dx > /dev/null 2>&1
896896
if [ "$?" -eq "0" ]; then
897897
which dx >> "$log" 2>&1
898898
echo "dx" | tee -a "$config" >> /dev/null 2>&1
899-
echo -e "$green" "[ ✔ ] DX 1.12...........................[Installed]"
899+
echo -e "$green" "[ ✔ ] DX 1.16...........................[Installed]"
900900
echo "DX -> OK" >> "$inst"
901901
else
902-
echo -e "$red" "[ x ] DX 1.12"
902+
echo -e "$red" "[ x ] DX 1.16"
903903
echo "0" > "$stp"
904904
echo "dx -> Not OK" >> "$inst"
905905
fi
@@ -911,87 +911,92 @@ which aapt > /dev/null 2>&1
911911
if [ "$?" -eq "0" ]; then
912912
aptv=`aapt v | awk '{print $5}'`
913913
case "$aptv" in
914-
v0.2-3544217)
915-
#exists and it is v0.2-3544217
914+
v0.2-6625208)
915+
#exists and it is v0.2-6625208
916916
which aapt >> "$log" 2>&1
917917
echo "aapt" | tee -a "$config" >> /dev/null 2>&1
918-
echo -e "$green" "[ ✔ ] Aapt v0.2-3544217.................[ found ]"
918+
echo -e "$green" "[ ✔ ] Aapt v0.2-6625208.................[ found ]"
919919
echo "Aapt -> OK" >> "$inst"
920920
;;
921921
*)
922922
#Aapt does not exists or is not the latest version used in fatrat (android sdk)
923923
xterm -T "☣ Removing Your Current Aapt ☣" -geometry 100x30 -e "sudo apt-get remove --purge aapt -y"
924924
unlink "/usr/local/sbin/aapt" > /dev/null 2>&1
925+
unlink "/usr/local/sbin/aapt2" > /dev/null 2>&1
925926
rm /usr/local/sbin/aapt >/dev/null 2>&1
927+
rm /usr/local/sbin/aapt2 >/dev/null 2>&1
926928
ln -s "$path/tools/android-sdk/aapt" "/usr/local/sbin/aapt" > /dev/null 2>&1
929+
ln -s "$path/tools/android-sdk/aapt2" "/usr/local/sbin/aapt2" > /dev/null 2>&1
927930
which aapt > /dev/null 2>&1
928931
if [ "$?" -eq "0" ]; then
929932
which aapt >> "$log" 2>&1
930933
echo "aapt" | tee -a "$config" >> /dev/null 2>&1
931-
echo -e "$green" "[ ✔ ] Aapt v0.2-3544217..................[Installed]"
934+
echo -e "$green" "[ ✔ ] Aapt v0.2-6625208..................[Installed]"
932935
echo "Aapt -> OK" >> "$inst"
933936
else
934-
echo -e "$red" "[ x ] Aapt v0.2-3544217"
937+
echo -e "$red" "[ x ] Aapt v0.2-6625208"
935938
echo "0" > "$stp"
936939
echo "aapt -> Not OK" >> "$inst"
937940
fi
938941
;;
939942
esac
940943
else
941944
unlink "/usr/local/sbin/aapt" > /dev/null 2>&1
945+
unlink "/usr/local/sbin/aapt2" > /dev/null 2>&1
942946
ln -s "$path/tools/android-sdk/aapt" "/usr/local/sbin/aapt" > /dev/null 2>&1
947+
ln -s "$path/tools/android-sdk/aapt2" "/usr/local/sbin/aapt2" > /dev/null 2>&1
943948
which aapt > /dev/null 2>&1
944949
if [ "$?" -eq "0" ]; then
945950
which aapt >> "$log" 2>&1
946951
echo "aapt" | tee -a "$config" >> /dev/null 2>&1
947-
echo -e "$green" "[ ✔ ] Aapt v0.2-3544217.................[Installed]"
952+
echo -e "$green" "[ ✔ ] Aapt v0.2-6625208.................[Installed]"
948953
echo "Aapt -> OK" >> "$inst"
949954
else
950-
echo -e "$red" "[ x ] Aapt v0.2-3544217"
955+
echo -e "$red" "[ x ] Aapt v0.2-6625208"
951956
echo "0" > "$stp"
952957
echo "aapt -> Not OK" >> "$inst"
953958
fi
954959
fi
955960
sleep 1
956-
#Same procedure used for dx and aapt , but for apktool 2.4.0.
961+
#Same procedure used for dx and aapt , but for apktool 2.6.0.
957962
which apktool > /dev/null 2>&1
958963
if [ "$?" -eq "0" ]; then
959964
apk=`apktool | sed -n 1p | awk '{print $2}'` > /dev/null 2>&1
960965
case "$apk" in
961-
v.2.4.1)
966+
v.2.6.0)
962967
which apktool >> "$log" 2>&1
963968
echo "apktool" | tee -a "$config" >> /dev/null 2>&1
964-
echo -e "$green" "[ ✔ ] Apktool v.2.4.1..................[ found ]"
969+
echo -e "$green" "[ ✔ ] Apktool v.2.6.0..................[ found ]"
965970
echo "Apktool -> OK" >> "$inst"
966971
;;
967972
*)
968973
xterm -T "☣ REMOVE OLD APKTOOL ☣" -geometry 100x30 -e "sudo apt-get remove --purge apktool -y"
969974
unlink "/usr/local/sbin/apktool" > /dev/null 2>&1
970-
ln -s "$path/tools/apktool2.4.1/apktool" "/usr/local/sbin/apktool" > /dev/null 2>&1
975+
ln -s "$path/tools/apktool/apktool" "/usr/local/sbin/apktool" > /dev/null 2>&1
971976
which apktool > /dev/null 2>&1
972977
if [ "$?" -eq "0" ]; then
973-
echo -e "$green" "[ ✔ ] Apktool v.2.4.1...................[Installed]"
978+
echo -e "$green" "[ ✔ ] Apktool v.2.6.0...................[Installed]"
974979
which apktool >> "$log" 2>&1
975980
echo "apktool" | tee -a "$config" >> /dev/null 2>&1
976981
echo "Apktool -> OK" >> "$inst"
977982
else
978-
echo -e "$red" "[ x ] Apktool v.2.4.1"
983+
echo -e "$red" "[ x ] Apktool v.2.6.0"
979984
echo "0" > "$stp"
980985
echo "apktool -> Not OK" >> "$inst"
981986
fi
982987
;;
983988
esac
984989
else
985990
unlink "/usr/local/sbin/apktool" > /dev/null 2>&1
986-
ln -s "$path/tools/apktool2.4.1/apktool" "/usr/local/sbin/apktool" > /dev/null 2>&1
991+
ln -s "$path/tools/apktool/apktool" "/usr/local/sbin/apktool" > /dev/null 2>&1
987992
which apktool > /dev/null 2>&1
988993
if [ "$?" -eq "0" ]; then
989994
which apktool >> "$log" 2>&1
990995
echo "apktool" | tee -a "$config" >> /dev/null 2>&1
991-
echo -e "$green" "[ ✔ ] Apktool v.2.4.1...................[Installed]"
996+
echo -e "$green" "[ ✔ ] Apktool v.2.6.0...................[Installed]"
992997
echo "Apktool -> OK" >> "$inst"
993998
else
994-
echo -e "$red" "[ x ] Apktool v.2.4.1"
999+
echo -e "$red" "[ x ] Apktool v.2.6.0"
9951000
echo "0" > "$stp"
9961001
echo "apktool -> Not OK" >> "$inst"
9971002
fi
@@ -1329,7 +1334,7 @@ chmod +x tools/android-sdk/zipalign
13291334
chmod +x tools/baksmali233/baksmali
13301335
chmod +x tools/android-sdk/dx
13311336
chmod +x tools/android-sdk/aapt
1332-
chmod +x tools/apktool2.4.1/apktool
1337+
chmod +x tools/apktool/apktool
13331338
chmod +x tools/android-string-obfuscator/lib/aso
13341339
chmod +x tools/pump.py
13351340
chmod +x tools/pw_exec.py

0 commit comments

Comments
 (0)