-
Notifications
You must be signed in to change notification settings - Fork 326
/
Copy pathcompilesploit
executable file
·43 lines (39 loc) · 1.14 KB
/
compilesploit
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
#!/bin/bash
# compilesploit by @xer0dayz
# A small script to automatically find and copy an exploit file to the current directory...
#
COLOR1='\033[1m\033[91m'
COLOR2='\033[1m\033[92m'
COLOR3='\033[1m'
function logo {
echo -e "$COLOR3 ___ _ _ _ _ _ "
echo -e "$COLOR3 / __(_)_ __ __| |___ _ __ | | ___ (_) |_ "
echo -e "$COLOR3 / _\ | | '_ \ / _\` / __| '_ \| |/ _ \| | __|"
echo -e "$COLOR3/ / | | | | | (_| \__ \ |_) | | (_) | | |_ "
echo -e "$COLOR3\/ |_|_| |_|\__,_|___/ .__/|_|\___/|_|\__|"
echo -e "$COLOR3 |_| "
echo ""
}
if [ -z "$1" ];
then
logo
echo -e "$COLOR1+ -- --=[ compilesploit by @xer0dayz"
echo -e "$COLOR1+ -- --=[ https://sn1persecurity.com$RESET"
echo -e "$COLOR1+ -- --=[ Usage: compilesploit <filename>"
echo ""
echo ""
exit;
else
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
logo
echo ""
echo -e "$COLOR1+ -- --=[compilesploit by @xer0dayz"
echo -e "$COLOR1+ -- --=[https://sn1persecurity.com$RESET"
echo ""
echo -e "$COLOR1+ -- --=[COMPILING:$COLOR2 $1 $RESET"
echo ""
gcc $1 -o $1.out
echo -e "$COLOR1"
./$1.out
fi
exit