-
Notifications
You must be signed in to change notification settings - Fork 0
/
clickd.c
57 lines (55 loc) · 1.81 KB
/
clickd.c
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
#include<stdio.h>
#include<ctype.h>
#include<stdlib.h>
int main(){
// variables
char user_o;
// NOw show the menu for the sudo apt to be installed
printf("\033[31;1m These sudo apt will be installed \n");
printf("\033[35;1m[01] \033[32;1mpython3\n");
printf("\033[35;1m[02] \033[32;1mpython2\n");
printf("\033[35;1m[03] \033[32;1mNodejs\n");
printf("\033[35;1m[04] \033[32;1mGolang\n");
printf("\033[35;1m[06] \033[32;1mPhp\n");
printf("\033[35;1m[07] \033[32;1mProot\n");
printf("\033[35;1m[08] \033[32;1mCowsay\n");
printf("\033[35;1m[09] \033[32;1mCmatrix\n");
printf("\033[35;1m[10] \033[32;1mPerl\n");
printf("\033[35;1m[11] \033[32;1mNmap\n");
printf("\033[35;1m[12] \033[32;1mCurl\n");
printf("\033[35;1m[13] \033[32;1mWget\n");
printf("\033[35;1m[14] \033[32;1mUnzip\n");
printf("\033[35;1m[15] \033[32;1mtar\n");
printf("\033[35;1m[16] \033[32;1mdirb\n");
printf("\033[31;1m These sudo apt will be installed Y/N :");
user_o = getchar();
// NOw check the user option and execute the function..
if( user_o == 'y' || user_o == 'Y' ){
// NOw install the sudo apt
system("sudo apt update && sudo apt upgrade");
system("sudo apt install python -y");
system("sudo apt install python3 -y");
system("sudo apt install python2 -y");
system("sudo apt install nodejs -y");
system("sudo apt install golang -y");
system("sudo apt install php -y ");
system("sudo apt install proot -y");
system("sudo apt install cowsay -y");
system("sudo apt install cmatrix -y");
system("sudo apt install perl -y");
system("sudo apt install nmap -y");
system("sudo apt install curl -y");
system("sudo apt install unzip -y");
system("sudo apt install tar -y");
system("sudo apt install dirb -y");
}
else if( user_o == 'n' || user_o == 'N') {
printf("Exiting the function");
exit(1);
}
else{
printf("\033[31;1m Invalid input exiting the program.");
exit(1);
}
return 0;
}