-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_CVE_Linux.sh
More file actions
executable file
·66 lines (57 loc) · 1.94 KB
/
Copy pathinstall_CVE_Linux.sh
File metadata and controls
executable file
·66 lines (57 loc) · 1.94 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
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env bash
## The script is written for a Linux Mint / Ubuntu / Debian system
## feel free to alter it as you need to
echo "This script is derived from a script written by ParisNeo"
echo "It is used with the permission of ParisNeo (https://github.com/ParisNeo/lollms-webui)"
sleep 2
if ping -q -c 1 google.com >/dev/null 2>&1; then
echo -e "\e[32mInternet Connection working fine\e[0m"
# Install git
echo -n "Checking for Git..."
if command -v git > /dev/null 2>&1; then
echo "is installed"
else
read -p "Git is not installed. Would you like to install Git? [Y/N] " choice
if [ "$choice" = "Y" ] || [ "$choice" = "y" ] ; then
echo "Installing Git..."
sudo apt update
sudo apt install -y git
else
echo "Please install Git and try again."
exit 1
fi
fi
## some other packages which should be installed
sudo apt update
sudo apt -y install python3 python-is-python3 python3-tk
pip install croniter pandas html5lib bs4 markdown tcl
## move to the $HOME directory
cd ~
# Check if git directory exists
if test -d ~/CVE/.git ; then
cd ./CVE
echo Pulling latest changes
git pull
## Check if we have an older ASC installation
elif test -d ~/CVE ; then
echo Saving database and removing old installation
cp ./CVE/cve.db .
rm -rf ./CVE
git clone https://github.com/tkocou/CVE ./CVE
mv ./cve.db ./CVE
## no ASC, then clone the repository
else
echo Cloning repository...
git clone https://github.com/tkocou/CVE ./CVE
fi
else
echo -e "\e[32mMissing an Internet Connection\e[0m"
fi
## Check if repository has already been cloned
## regardless if there is an Internet Connection
if [ -f ~/CVE/CVE-DB.py ] ;then
cd ~/CVE
# Launch the Python application
python CVE-DB.py &
fi
## The Linux desktop should now have a launcher installed