Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 59 guests and 1 member online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Forensics
Using dd cmd to copy drive.
EH-Net
May 18, 2013, 10:37:33 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Forensics
(Moderator:
don
) >
Using dd cmd to copy drive.
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Using dd cmd to copy drive. (Read 8525 times)
0 Members and 1 Guest are viewing this topic.
Ash Chole
Newbie
Offline
Posts: 21
Using dd cmd to copy drive.
«
on:
May 20, 2010, 10:17:15 AM »
K so this is going to be a bit off cause is special situation. I am trying to fix labs for my Forensics class. Here is the situation.
We are using a VMware LabManager with a Linux box and a XP box.
The lab is suppose to use a external drive but we are not able to do that.
There is a Z: drive that has sharing set up on it. I have used Prodiscover Basic to save the data on the Z:.
On the linux box I have mapped the /share dir to the Z:.
This is where it gets a little off. I am not able to copy the entire Z: with the dd cmd.
dd if=/share | split -b 20m - test
I have to go in and specify the individual file.
dd if=/share/Greek/test | split -b 20m - test
As you can imagine this would be hectic if we need to copy an entire drive.
I think I provided all the pertinent info. If not, feel free to ask!
Any ideas?
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: Using dd cmd to copy drive.
«
Reply #1 on:
May 20, 2010, 10:41:29 AM »
Ash,
First, I would use DCFLDD. It supports many features that DD doesn't.
Why are you trying to DD a mapped drive? You are not getting any slack space or deleted data this way. Why not just DD the physical drive in either Windows or Linux. (DCFLDD has been ported to Windows).
If you are doing a DD image of a directory, you would have to write a script to recreate the directory structure and to DD every file.
Logged
~~~~~~~~~~~~~~
Ketchup
bamed
Newbie
Offline
Posts: 48
Re: Using dd cmd to copy drive.
«
Reply #2 on:
May 20, 2010, 11:27:35 AM »
The dd command is not what you need in this instance. dd is used for making exact images of drives or partitions. The if= switch takes a FILE as its argument. This is typically the file Linux associates with a partition or drive, such as /dev/hda1. It sounds like you're trying to copy data over a network. If you just want to copy data, why not use cp? If you need to keep files synchronized over a network share, lookup rsync.
If you are trying to make an image of a drive to use for forensic purposes, your current setup simply won't work for this purpose. Simply by mounting a drive you could make change to it which makes your image invalid. If the drive is in Windows, then shared, then mounted in Linux, then copied... this isn't how you do forensics, so I'm going to assume that's not what you're trying to do.
Logged
chown -R bamed ./base
Ketchup
Hero Member
Offline
Posts: 1021
Re: Using dd cmd to copy drive.
«
Reply #3 on:
May 20, 2010, 01:03:12 PM »
There are situations where using DCFLDD to copy individual files over the network may not be a bad idea. Here is why.
1. You can specify a block size and it is possible to achieve a faster copy performance with larger files.
2. You can have a log file of each files source and destination hash value. This is of course is huge in forensics.
3. You can preserve MAC times.
Sometimes you do not have an option to do a proper image of a physical device. This can be the case when you are working with large NAS appliances, busy network servers that cannot be taken down, etc. You best option may be to do a logical image or a live image. Live images have their own issues, like bit-shifting. A live image may not work for a large NAS.
Having said this, there are much better tools that will let you accomplish the same thing. EnCase in acquisition mode, can create L01 images (Logical Images of a folder). FTK Imager is free and can also create folder images (ad1).
Logged
~~~~~~~~~~~~~~
Ketchup
Ash Chole
Newbie
Offline
Posts: 21
Re: Using dd cmd to copy drive.
«
Reply #4 on:
May 25, 2010, 07:52:16 AM »
We are using Vcenter Lab Manager and are limited to what we have on it. The lab itself calls for the students to use the dd cmd. It discusses DCFLDD but is to in use for this lab.
We finally decided to just go with adding another drive on the same machine to simply allow us to transfer the file and do a md5 ckecksum to make sure they were not "touched" by the move.
I finished the step by step instructions last night.
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
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:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
General Certification
: CPT Practical Submission
(0) by
z28power4u
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(5) by
MrTuxracer
Career Central
: Starter cert?
(0) by
Alert
Web Applications
: Nessus and Nikto
(4) by
Seen
Tutorials
: Need guidance
(7) by
impelse
Malware
: EICAR?
(2) by
SephStorm
Network Pen Testing
: Cracking salted MD5 hash
(4) by
n37sh@rk
CEH - Certified Ethical Hacker
: Passed my C|EH
(3) by
n37sh@rk
Mass Media
: EC-council hacked, irony at his best?
(0) by
j0rDy
Web Applications
: SQL Injection into an INSERT statement.
(6) by
eyenit0
Network Pen Testing
: Solution for sipXtapi INVITE Message CSeq Field Header Remote Overflow
(1) by
m0wgli
Web Applications
: dns
(2) by
H1t M0nk3y
Other
: BSides Boston
(0) by
3xban
Career Central
: InfoSec in Central, FL
(2) by
tturner
Web Applications
: Web vulnerability scanner
(4) by
H1t M0nk3y
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.