-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaddexploit.sh
More file actions
56 lines (56 loc) · 2.6 KB
/
addexploit.sh
File metadata and controls
56 lines (56 loc) · 2.6 KB
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
#!/bin/sh
# GNU GENERAL PUBLIC LICENSE
addme_exploit () {
## On demande des informations sur l'exploit
read -p "Enter a title >> " addme_exploit_title
read -p "Enter a extension (exemple: sh/py)>> " addme_exploit_extention
read -p "How to run? (exemple: sh/python) >> " addme_exploit_run
read -p "Enter your name >> " addme_exploit_name
read -p "Enter the location of your exploit >> " addme_exploit_location
##On copie l'exploit vers le répertoire de FExploit
cp $addme_exploit_location /opt/FExploit/rsc/exploits/$addme_exploit_title.$addme_exploit_extention
## On ajoute l'exploit dans listool.txt pour que les utilisateurs voit l'exploit dans le menu main.sh
echo "$addme_exploit_title" >> /opt/FExploit/rsc/exploits/listool.txt
## On ajoute l'exploit au menu main.sh
echo "else" >> /opt/FExploit/rsc/exploits/main.sh
echo "#Title: $addme_exploit_title" >> /opt/FExploit/rsc/exploits/main.sh
echo "#Author: $addme_exploit_name" >> /opt/FExploit/rsc/exploits/main.sh
echo "#Language: $addme_exploit_extention" >> /opt/FExploit/rsc/exploits/main.sh
echo "if [ \$menu = '$addme_exploit_title' ]; then" >> /opt/FExploit/rsc/exploits/main.sh
echo "$addme_exploit_run /opt/FExploit/rsc/exploits/$addme_exploit_title.$addme_exploit_extention" >> /opt/FExploit/rsc/exploits/main.sh
echo "exit" >> /opt/FExploit/rsc/exploits/main.sh
echo "fi" >> /opt/FExploit/rsc/exploits/main.sh
}
addme_scan () {
read -p "Enter a title >> " addme_scan_title
read -p "Enter a extension (exemple: sh/py)>> " addme_scan_extention
read -p "How to run? (exemple: sh/python) >> " addme_scan_run
read -p "Enter your name >> " addme_scan_name
read -p "Enter the location of your script >> " addme_scan_location
cp $addme_scan_location /opt/FExploit/rsc/scan/$addme_scan_title.$addme_scan_extention
echo "$addme_scan_title" >> /opt/FExploit/rsc/scan/listool.txt
echo "else" >> /opt/FExploit/rsc/scan/main.sh
echo "#Title: $addme_scan_title" >> /opt/FExploit/rsc/scan/main.sh
echo "#Author: $addme_scan_name" >> /opt/FExploit/rsc/scans/main.sh
echo "#Language: $addme_scan_extention" >> /opt/FExploit/rsc/scan/main.sh
echo "if [ \$menu = '$addme_scan_title' ]; then" >> /opt/FExploit/rsc/scan/main.sh
echo "$addme_scan_run /opt/FExploit/rsc/scan/$addme_scan_title.$addme_scan_extention" >> /opt/FExploit/rsc/scan/main.sh
echo "exit" >> /opt/FExploit/rsc/scan/main.sh
echo "fi" >> /opt/FExploit/rsc/scan/main.sh
}
echo "1) Adding Exploit"
echo "2) Adding Scan"
read -p " >>>" mainchoice
if [ $mainchoice = "1" ]
then
addme_exploit
sh /opt/FExploit/rsc/exploits/main.sh
else
if [ $mainchoice = "2" ]
then
addme_scan
sh /opt/FExploit/rsc/scan/main.sh
else
exit
fi
fi