Swap Digger – Tool That Automates Swap Extraction And Searches For Linux User Credentials, Web Forms Credentials, Web Forms Emails, Http Basic Authentication, Wifi SSID And Keys, Etc

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.Download and run the toolOn your machineUse the following commands to download and run the script on your machine:alice@1nvuln3r4bl3:~$ git clone https://github.com/sevagas/swap_digger.gitalice@1nvuln3r4bl3:~$ cd swap_diggeralice@1nvuln3r4bl3:~$ chmod +x swap_digger.shalice@1nvuln3r4bl3:~$ sudo ./swap_digger.sh -vxOn a mounted hard driveTo use swap_digger on a mounted hard drive, do the following:First, download the script using the following commands:alice@1nvuln3r4bl3:~$ git clone https://github.com/sevagas/swap_digger.gitalice@1nvuln3r4bl3:~$ cd swap_diggeralice@1nvuln3r4bl3:~$ chmod +x swap_digger.shThen, find the target swap file/partition with:alice@1nvuln3r4bl3:~$ sudo ./swap_digger.sh -SFinally, analyze the target by running:alice@1nvuln3r4bl3:~$ sudo ./swap_digger.sh -vx -r path/to/mounted/target/root/fs -s path/to/target/swap/deviceOn a third party machineUse the following commands to download and run the script on a third party machine (useful for pentests and CTFs):alice@1nvuln3r4bl3:~$ wget https://raw.githubusercontent.com/sevagas/swap_digger/master/swap_digger.shalice@1nvuln3r4bl3:~$ chmod +x swap_digger.shalice@1nvuln3r4bl3:~$ sudo ./swap_digger.sh -vxNote: Use the -c option to automatically remove the directory created by swap_digger (/tmp/swap_dig).Simple runIf you only need to recover clear text Linux user passwords, simply run:alice@1nvuln3r4bl3:~$ sudo ./swap_digger.shAvailable optionsAll options: ./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 //etc/shadow exists. -S, –swap-search Search for all available swap devices (use for forensics).Relevant resourcesBlog posts about swap digging:http://blog.sevagas.com/?Digging-passwords-in-Linux-swapContactFeel free to message on my Twitter account @EmericNasiDownload Swap_Digger

Link: http://feedproxy.google.com/~r/PentestTools/~3/FdfKjJxumdE/swap-digger-tool-that-automates-swap.html