PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Extracting Hidden Files With Foremost On Linux

Go down

Extracting Hidden Files With Foremost On Linux Empty Extracting Hidden Files With Foremost On Linux

Post by jamied_uk 31st July 2016, 11:38




Code:
sudo apt install -y foremost

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 15th March 2024, 11:51; edited 5 times in total
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Extracting Hidden Files With Foremost On Linux Empty Re: Extracting Hidden Files With Foremost On Linux

Post by jamied_uk 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

jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Extracting Hidden Files With Foremost On Linux Empty Re: Extracting Hidden Files With Foremost On Linux

Post by jamied_uk 31st July 2016, 12:40

Digital Forensics



Making an md5 hash of a file

Code:
md5sum file.dd > file.md5


Last edited by jamied_uk on 15th March 2024, 11:56; edited 1 time in total
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Extracting Hidden Files With Foremost On Linux Empty Re: Extracting Hidden Files With Foremost On Linux

Post by jamied_uk 31st July 2016, 20:58

Binwalk





Code:
sudo apt-get install -y binwalk
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Extracting Hidden Files With Foremost On Linux Empty Re: Extracting Hidden Files With Foremost On Linux

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


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