-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdeveloper.sh
34 lines (22 loc) · 934 Bytes
/
developer.sh
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
#!/usr/bin/env bash
### Variables d'environnement du projet...
ENVVIRTUEL_NOM="env-virtuel"
ENVVIRTUEL_CHEMIN="./$ENVVIRTUEL_NOM"
ENVVIRTUEL_PAQUETS="requests beautifulsoup4"
### Fonctions support
function searchcve () {
python3 searchcve.py --url $1
}
### Installation de l'environnement virtuel...
sudo apt update &>/dev/null && sudo apt install -y python3 python3-virtualenv &>/dev/null
[ -d $ENVVIRTUEL_CHEMIN ] || virtualenv $ENVVIRTUEL_NOM
source "./$ENVVIRTUEL_NOM/bin/activate"
for paquet in $ENVVIRTUEL_PAQUETS
do
[ -z "$( pip3 list | grep $paquet )" ] && pip3 install $paquet
done
### Tests locaux...
searchcve https://us-cert.cisa.gov/ncas/alerts/aa21-209a
# searchcve https://www.kennasecurity.com/blog/top-vulnerabilities-of-the-decade/
# searchcve https://arstechnica.com/gadgets/2021/07/feds-list-the-top-30-most-exploited-vulnerabilities-many-are-years-old/
# searchcve https://nvd.nist.gov/