
swap_digger è uno strumento utilizzato per automatizzare l'analisi dello swap Linux durante la post-esplorazione o la forensica. Automatizza l'estrazione dello swap e cerca credenziali utente Linux, credenziali di moduli web, email da moduli web, autenticazione HTTP di base, SSID e chiavi WiFi, ecc.
swap_digger è uno script bash utilizzato per automatizzare l'analisi dello swap di Linux a fini di post-exploitation o forense. Automatizza l'estrazione dello swap e cerca credenziali utente Linux, credenziali di moduli web, email di moduli web, autenticazione HTTP di base, SSID e chiavi WiFi, ecc.

Usa i seguenti comandi per scaricare ed eseguire lo script sul tuo computer:
git clone https://github.com/sevagas/swap_digger.git
cd swap_digger
chmod +x swap_digger.sh
sudo ./swap_digger.sh -vx

Per usare swap_digger su un disco rigido montato, segui la procedura seguente:
Prima, scarica lo script usando i seguenti comandi:
git clone https://github.com/sevagas/swap_digger.git
cd swap_digger
chmod +x swap_digger.sh
Poi, trova il file/partizione di swap di destinazione con:
sudo ./swap_digger.sh -S
Infine, analizza il target eseguendo:
sudo ./swap_digger.sh -vx -r path/to/mounted/target/root/fs -s path/to/target/swap/device
Usa i seguenti comandi per scaricare ed eseguire lo script su una macchina di terze parti (utile per pentest e CTF):
wget https://raw.githubusercontent.com/sevagas/swap_digger/master/swap_digger.sh
chmod +x swap_digger.sh
sudo ./swap_digger.sh -vx -c
Nota: Usa l'opzione -c per rimuovere automaticamente la directory creata da swap_digger (/tmp/swap_dig).
Se hai solo bisogno di recuperare le password degli utenti Linux in chiaro, esegui semplicemente:
sudo ./swap_digger.sh
Tutte le opzioni:
./swap_digger.sh [ OPTIONS ]
Options :
-x, --extended Run Extended tests on the target swap to retrieve other interesting data
(web passwords, emails, wifi creds, most accessed urls, etc)
-g, --guessing Try to guess potential passwords based on observations and stats
Warning: This option is not reliable, it may dig more passwords as well as hundreds false positives.
-h, --help Display this help.
-v, --verbose Verbose mode.
-l, --log Log all outputs in a log file (protected inside the generated working directory).
-c, --clean Automatically erase the generated working directory at end of script (will also remove log file)
-r PATH, --root-path=PATH Location of the target file-system root (default value is /)
Change this value for forensic analysis when target is a mounted file system.
This option has to be used along the -s option to indicate path to swap device.
-s PATH, --swap-path=PATH Location of swap device or swap dump to analyse
Use this option for forensic/remote analysis of a swap dump or a mounted external swap partition.
This option should be used with the -r option where at least /<root-path>/etc/shadow exists.
-S, --swap-search Search for all available swap devices (use for forensics).
Articoli di blog sul swap digging:
Sentiti libero di contattarmi sul mio account Twitter @EmericNasi
The GNU General Public License version 3
Copyright 2017-2021 Emeric “Sio” Nasi (blog)