-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEbowla
executable file
·59 lines (51 loc) · 2.05 KB
/
Ebowla
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
#!/bin/bash
# Script written by rl1k
# https://github.com/iNoSec
help_banner=$(echo "Usage : sudo ./ebowla payload_to_encode.exe output_encoded.exe [Optional argument: --nohidden]")
if [[ $1 == -h || $1 == --help ]];then
echo $help_banner
elif [[ -z $1 || -z $2 ]]; then
echo $help_banner
else
read -p "Set the path to Ebowla directory (default: /pentest/av-bypass/Ebowla): " ebowla
if [ -z $ebowla ]; then
cd /pentest/av-bypass/Ebowla/
else
cd "$ebowla"
fi
echo "$PWD"
filename1=$(basename $1)
read -p "Do you want to configure the genetic.config file ? [Y/n]: " genetic
if [[ $genetic == Y || $genetic == y ]];then
sudo vi genetic.config;
else
echo "Ok?! Let's jump it!!"
fi
read -p "Configure the arch of your payload [x86/x64] :" arch
if [[ $arch == x64 && -z $3 ]]; then
sudo ./ebowla.py $1 genetic.config;
sudo ./build_x64_go.sh output/go_symmetric_$filename1.go $2;
echo "Job done! All have been saved under $ebowla/output directory"
exit 1;
elif [[ $arch == x86 && -z $3 ]];then
sudo ./ebowla.py $1 genetic.config;
sudo ./build_x86_go.sh output/go_symmetric_$filename1.go $2;
echo "Job done! All have been saved under $ebowla/output directory"
exit 1;
elif [[ $arch == x64 && $3 == --nohidden ]]; then
sudo ./ebowla.py $1 genetic.config;
echo "--nohidden detected"
sudo ./build_x64_go.sh output/go_symmetric_$filename1.go $2 $3;
echo "Job done! All have been saved under $ebowla/output directory"
exit 1;
elif [[ $arch == x86 && $3 == --nohidden ]];then
sudo ./ebowla.py $1 genetic.config;
echo "--nohidden detected"
sudo ./build_x86_go.sh output/go_symmetric_$filename1.go $2 $3;
echo "Job done! All have been saved under $ebowla/output directory"
exit 1;
else
echo "Without the good choice we cant do the job!! Bye!!"
exit 0;
fi
fi