Code:
#!/bin/bash echo " [1;32mBienvenido al auto-actualizador para la suite aircrack-ng[0m" echo "" echo " [1;36m[Este script requiere internet para la descarga de aircrack-ng][0m" sleep 5 cd /tmp wget -c http://nightly.aircrack-ng.org/aircrack-ng/trunk/ /tmp latest_version=`grep tar.gz index.html | tail -n1 | cut -d- -f2- | cut -d '"' -f1` echo "[1;33mLa Version mas reciente es[0m... [1;36maircrack-$latest_version[0m" sleep 5 echo "[1;33mDescargando la ultima version de la suite aircrack-ng... [0m" wget -c http://nightly.aircrack-ng.org/aircrack-ng/trunk/aircrack-$latest_version echo "[1;32mDescomprimiendo[0m...." tar -xf aircrack-$latest_version sleep 2 #encontrar directorio de extraccion echo "[1;32mCompilando paquete aircrack-ng[0m...." paquete=$(basename aircrack-$latest_version .tar.gz) cd $paquete sleep 2 make echo "[1;32mInstalando en el sistema[0m...." sleep 2 make install clear #limpiando temporales echo "[1;32mBorrando archivos temporales[0m....." sleep 1 echo "[1;32mEliminando index.html[0m..." sleep 1 rm /tmp/index.html echo "[1;32mEliminando paquete descargado[0m...." sleep 1 rm /tmp/aircrack-$latest_version echo "[1;32mEliminando directorio de compilacion[0m...." sleep 1 rm -r /tmp/$paquete echo " " echo " *******************************" echo " | [1;33mLa instalacion a finalizado[0m | " echo " ******************************* " echo " "