Variables reaver and wash path
This commit is contained in:
parent
d579c2e2f0
commit
fdc8db346c
13
boxon.sh
13
boxon.sh
@ -19,6 +19,9 @@ yellow="\033[1;33m"
|
|||||||
white="\033[1;37m"
|
white="\033[1;37m"
|
||||||
purpple="\033[0;35m"
|
purpple="\033[0;35m"
|
||||||
|
|
||||||
|
WASH=/root/reaver-wps-fork-t6x/src/wash
|
||||||
|
REAVER=/root/reaver-wps-fork-t6x/src/reaver
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
Screen()
|
Screen()
|
||||||
@ -43,7 +46,7 @@ exit 0
|
|||||||
## Regular scan (perfect if you want to check quickly and precisly if your PA is vulnerable)
|
## Regular scan (perfect if you want to check quickly and precisly if your PA is vulnerable)
|
||||||
Regularscan()
|
Regularscan()
|
||||||
{
|
{
|
||||||
wash -i $iface -j $ac >> /tmp/scan &
|
$WASH -i $iface -j $ac >> /tmp/scan &
|
||||||
washPID=$!
|
washPID=$!
|
||||||
for (( i=0; ;i+=4 ))
|
for (( i=0; ;i+=4 ))
|
||||||
do
|
do
|
||||||
@ -100,16 +103,16 @@ echo -e "$purpple▐█$white Vérification privilèges$nocolour"
|
|||||||
whoami | grep root || { echo -e "$red▐█ Erreur$nocolour - Absence de privilèges d'administrateur. Veuillez lancer le script en utilisant$yellow sudo$nocolour ou$yellow su$nocolour.
|
whoami | grep root || { echo -e "$red▐█ Erreur$nocolour - Absence de privilèges d'administrateur. Veuillez lancer le script en utilisant$yellow sudo$nocolour ou$yellow su$nocolour.
|
||||||
$red▐█ Exit.$nocolour"; exit 1; }
|
$red▐█ Exit.$nocolour"; exit 1; }
|
||||||
echo -e "$purpple▐█$white Vérification reaver$nocolour"
|
echo -e "$purpple▐█$white Vérification reaver$nocolour"
|
||||||
which reaver || { echo -e "$red▐█ Erreur$nocolour -$yellow Reaver$nocolour n'est pas installé. Installez $yellow Reaver v1.6.1$nocolour (ou version supèrieure) en allant à:$white https://github.com/t6x/reaver-wps-fork-t6x$nocolour
|
which $REAVER || { echo -e "$red▐█ Erreur$nocolour -$yellow Reaver$nocolour n'est pas installé. Installez $yellow Reaver v1.6.1$nocolour (ou version supèrieure) en allant à:$white https://github.com/t6x/reaver-wps-fork-t6x$nocolour
|
||||||
$red▐█ Exit.$nocolour"; exit 1; }
|
$red▐█ Exit.$nocolour"; exit 1; }
|
||||||
reaver &>> /tmp/versionreaver
|
$REAVER &>> /tmp/versionreaver
|
||||||
grep "Reaver v1.6." /tmp/versionreaver || { echo -e "$red▐█ Erreur$nocolour - Vous devez actualiser reaver. Installez $yellow Reaver v1.6.1$nocolour (ou version supèrieure) en allant à:$white https://github.com/t6x/reaver-wps-fork-t6x$nocolour
|
grep "Reaver v1.6." /tmp/versionreaver || { echo -e "$red▐█ Erreur$nocolour - Vous devez actualiser reaver. Installez $yellow Reaver v1.6.1$nocolour (ou version supèrieure) en allant à:$white https://github.com/t6x/reaver-wps-fork-t6x$nocolour
|
||||||
$red▐█ Exit.$nocolour"; exit 1; }
|
$red▐█ Exit.$nocolour"; exit 1; }
|
||||||
rm /tmp/versionreaver
|
rm /tmp/versionreaver
|
||||||
echo -e "$purpple▐█$white Vérification wash$nocolour"
|
echo -e "$purpple▐█$white Vérification wash$nocolour"
|
||||||
which wash || { echo -e "$red▐█ Erreur$nocolour -$yellow Wash$nocolour n'est pas installé. Installez $yellow Reaver v1.6.1$nocolour (ou version supèrieure) en allant à:$white https://github.com/t6x/reaver-wps-fork-t6x$nocolour
|
which $WASH || { echo -e "$red▐█ Erreur$nocolour -$yellow Wash$nocolour n'est pas installé. Installez $yellow Reaver v1.6.1$nocolour (ou version supèrieure) en allant à:$white https://github.com/t6x/reaver-wps-fork-t6x$nocolour
|
||||||
$red▐█ Exit.$nocolour"; exit 1; }
|
$red▐█ Exit.$nocolour"; exit 1; }
|
||||||
wash &>> /tmp/versionwash
|
$WASH &>> /tmp/versionwash
|
||||||
grep "Wash v1.6." /tmp/versionwash || { echo -e "$red▐█ Erreur$nocolour - Vous devez actualiser wash. Installez $yellow Reaver v1.6.1$nocolour (ou version supèrieure) en allant à:$white https://github.com/t6x/reaver-wps-fork-t6x$nocolour
|
grep "Wash v1.6." /tmp/versionwash || { echo -e "$red▐█ Erreur$nocolour - Vous devez actualiser wash. Installez $yellow Reaver v1.6.1$nocolour (ou version supèrieure) en allant à:$white https://github.com/t6x/reaver-wps-fork-t6x$nocolour
|
||||||
$red▐█ Exit.$nocolour"; exit 1; }
|
$red▐█ Exit.$nocolour"; exit 1; }
|
||||||
rm /tmp/versionwash
|
rm /tmp/versionwash
|
||||||
|
Loading…
Reference in New Issue
Block a user