Extracting Hidden Files With Foremost On Linux

View previous topic View next topic Go down

Extracting Hidden Files With Foremost On Linux

Post by jamied_uk on 31st July 2016, 11:38



Extract Script


Code:
#!/bin/bash
#(c) J~Net 2016
# Usage ./Ext6ract.sh "filename.png"
#
myvar="$1"
myvar2="$2"
sudo apt-get install -y foremost
mkdir output
# steghide extract -sf "$myvar" -p "$myvar2"
foremost -t all -i "$myvar" -o output

A useful function for your .bashrc


Code:
sudo gedit .bashrc



Code:
function unhide() {
myvar="$1"
myvar2="$2"
mkdir output
foremost -t all -i "$myvar" -o output
}

Usage:

Code:
unhide image.png



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Using windows to make a file to test for Extraction!


Code:
putting data into an image

copy /b pic.jpg+txt.rar final.jpg

Or

copy /b "file.jpg"+"file.zip" "newfile.jpg"
 
where pic.jpg is the original picture file, the .rar is the compressed data and final is the output file containing the original image plus compressed data!


now to extract open pic with winrar


Last edited by jamied_uk on 31st July 2016, 13:08; edited 4 times in total
avatar
jamied_uk
Admin

Posts : 2260
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Extracting Hidden Files With Foremost On Linux

Post by jamied_uk on 31st July 2016, 12:08

Also try out the file extraction using scalpel

Code:
sudo apt-get install -y scalpel


Code:
sudo gedit /etc/scapel/scalpel.conf

Code:
slalpel -c scalpel.conf -o output infile.img



More about it

avatar
jamied_uk
Admin

Posts : 2260
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Extracting Hidden Files With Foremost On Linux

Post by jamied_uk on 31st July 2016, 12:40

Digital Forensics




Making an md5 hash of a file

Code:
md5sum file.dd > file.md5
avatar
jamied_uk
Admin

Posts : 2260
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Extracting Hidden Files With Foremost On Linux

Post by jamied_uk on 31st July 2016, 20:58

Binwalk

avatar
jamied_uk
Admin

Posts : 2260
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Extracting Hidden Files With Foremost On Linux

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum