Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 79 guests online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Forensicsarrow Cool tool: GNU split
EH-Net
May 22, 2013, 09:14:21 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Cool tool: GNU split  (Read 5432 times)
0 Members and 1 Guest are viewing this topic.
jimbob
Guest
« on: June 03, 2009, 05:55:08 AM »

Hi,
I know there are plenty of you out there with an interest in forensics and a small budget so I thought I'd share a tip with you. When you are creating an image of a disk using dd it's often useful to split the dump into chunks. If you are dumping to a FAT32 disk for example you cannot create file greater than 4GB in size.

The Unix command split takes an input source, splits it onto chunks of a specified size. You can use this in conjunction with dd to automatically split and name the output files on the fly. The following command will dump the contents of device /dev/sdb to standard out where split will read it, chop it into 2GB chunks and name each file case0001_disk001_image_<suffix>.

Code:
$ dd if=/dev/sdb bs=4k | split -b 2G  -d -a 3 - case0001_disk001_image_

The option '-d' tell split to add a numeric suffix instead of the default alphabetic one and option '-a 3' tell split to use a 3 character, suffix e.g. 001, 002, 003 etc.

Hope you find this useful and I hope it serves as a reminder that learning the basic Unix tools is a skill worth having.

Jimbob
Logged
Andrew Waite
Hero Member
*****
Offline Offline

Posts: 928



View Profile WWW
« Reply #1 on: June 03, 2009, 06:01:31 AM »

Hey Jimbob,

thanks for sharing, I've used split in the past (not disk image related) and find it *really* easy to forget how useful the standard 'nix tools are. Thanks for the reminder

Andrew
Logged

Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #2 on: June 03, 2009, 07:27:46 AM »

Split is definitely a great command to know when you are in a bind.  I had to use it on a Mac Server a while back.  There are a few DD based tools, like DCFLDD that have this function built in.   More importantly, DCFLDD and others will hash on the fly, which is one of the most important aspects in forensics.
Logged

~~~~~~~~~~~~~~
Ketchup
Otter
Newbie
*
Offline Offline

Posts: 41


View Profile
« Reply #3 on: June 03, 2009, 12:26:58 PM »

While we'r etalking about cool tools and GNU,   if you find yourself on the command line of *nix boxes a lot and aren't familiar with Gnu screen (commandline command is just screen), it's the cat's ass. 

multiple virtual command windows,   if you lose your connection of disconnect voluntarily   screen -r   puts you back right where you were.     

How I lived without it, I'll never know.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.068 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.