swap_digger 10-16-2017, 03:19 PM
#1
swap_digger is a bash script used to automate Linux swap analysis for post-exploitation or forensics purpose. It automates swap extraction and searches for Linux user credentials, Web form credentials, Web form emails, HTTP basic authentication, WiFi SSID and keys, etc.
![[Image: swap_digger.png?raw=true]](https://github.com/sevagas/swap_digger/raw/master/assets/swap_digger.png?raw=true)
![[Image: swap_digger_extended.png?raw=true]](https://github.com/sevagas/swap_digger/raw/master/assets/swap_digger_extended.png?raw=true)
Code:
./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).
(This post was last modified: 10-16-2017, 03:20 PM by ZanGetsu.)
![[Image: Vs4P58c.png]](https://i.imgur.com/Vs4P58c.png)




![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)