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 25 guests online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Network Pen Testing
Recreating files from packet capture
EH-Net
May 26, 2013, 02:33:39 AM
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
>
Network Pen Testing
(Moderator:
don
) >
Recreating files from packet capture
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Recreating files from packet capture (Read 10785 times)
0 Members and 1 Guest are viewing this topic.
Vedder
Newbie
Offline
Posts: 26
Recreating files from packet capture
«
on:
July 28, 2009, 10:26:12 AM »
Hi
Can anyone help me recreate files from a packet capture.
I have found a good page on hex headers (
http://www.garykessler.net/library/file_sigs.html
), and I know that there are at least two bmp images and one zip file.
I have tried copying them all to notepad, then loading them up in a hex editor, and saving them as the required file type, but if I try opening them up in paint, or winzip, I just get a "file is corrupt" message.
Is there a step I am missing?
Logged
C|EH, MCSE, MCSA: Security, Security+, Network+, A+
don
Editor-In-Chief
Administrator
Hero Member
Offline
Posts: 4169
Editor-In-Chief
Re: Recreating files from packet capture
«
Reply #1 on:
July 28, 2009, 10:44:41 AM »
Try
NetWitness Investigator
.
Don
Logged
CISSP, MCSE, CSTA, Security+ SME
Ketchup
Hero Member
Offline
Posts: 1021
Re: Recreating files from packet capture
«
Reply #2 on:
July 28, 2009, 10:50:35 AM »
NetWitness is great, like Don indicated. I've used it and it really makes viewing HTML, Email, and other types of documents amazingly easy as they travel across the wire.
Wireshark can also do this, depending on the protocol. Files transmitted through HTTP can be exported using the File, Export, Objects menu. For other protocols, you would have to isolate the packets that belong to your file, and then export the packets. Wireshark will put the fragments of the transmission back together for you. You can use the Follow TCP Stream feature for this.
Logged
~~~~~~~~~~~~~~
Ketchup
Vedder
Newbie
Offline
Posts: 26
Re: Recreating files from packet capture
«
Reply #3 on:
July 28, 2009, 11:31:17 AM »
Thanks Don and Ketchup
It's SSL traffic, I've decrypted it in Wireshark using the key, and can see them in hex code in the outputted file. Wireshark just shows the encrypted data still.
I'll carry on with NetWitness, as it does look like a very nice tool.
*EDIT*
NetWitness has come up trumps, and given me the files.
Thanks again Don and Ketchup
«
Last Edit: July 28, 2009, 11:37:06 AM by Vedder
»
Logged
C|EH, MCSE, MCSA: Security, Security+, Network+, A+
UNIX
Hero Member
Offline
Posts: 1235
Re: Recreating files from packet capture
«
Reply #4 on:
July 29, 2009, 12:18:01 AM »
Thanks for the hint about NetWitness, haven't heard about it before. Definitely sounds interesting and useful.
Logged
dalepearson
Sr. Member
Offline
Posts: 357
Re: Recreating files from packet capture
«
Reply #5 on:
July 29, 2009, 04:47:11 AM »
Late to the party on this one.
As previously said, Netwitness is a cracking product, I used it when they charged for it in the Corporate environment.
Now they have the free one, I have it on my personal machine, and its good stuff.
Deffo worth a download.
Logged
:: Subliminal Hacking ::
/
:: Security Active Blog ::
305mia
Newbie
Offline
Posts: 2
Re: Recreating files from packet capture
«
Reply #6 on:
August 21, 2009, 09:53:09 AM »
So I have an AIM conversation in which a document was exchanged via AIM's file sharing function.
NetWitness recreated the conversation from my pcap file and shows the document name.
I am having trouble reconstructing the attachment document. I know it is a word doc but how can I actually reconstruct the document?
Thanks in advance
Logged
nebu10uz
Sr. Member
Offline
Posts: 368
Re: Recreating files from packet capture
«
Reply #7 on:
August 25, 2009, 11:20:04 AM »
Available tools on the Internet for the purpose of extracting files from packet dumps:
NetworkMiner
Xplico
TcpXtract
And to do it manually using WireShark and a Hex editor check out the following blog:
Pulling binaries from pcaps
Enjoy!
Logged
Security+, OSCP, CEH
g00d_4sh
Sr. Member
Offline
Posts: 394
Re: Recreating files from packet capture
«
Reply #8 on:
August 25, 2009, 05:19:23 PM »
Nice. I've not worked with the Netwitness Investigator program before. My first interaction with Netwitness was out at an afterparty with some of the folks in Vegas this year. And watching my girlfriend verbally emasculate one of their VPs as he drunkenly tried to impress/pick her up. It was one of those times where I was reminded on why I want to marry her hehehe.
Logged
"Bad.. Good? I'm the guy with the gun"
UNIX
Hero Member
Offline
Posts: 1235
Re: Recreating files from packet capture
«
Reply #9 on:
August 26, 2009, 12:32:02 AM »
Quote from: blackazarro on August 25, 2009, 11:20:04 AM
[...]
And to do it manually using WireShark and a Hex editor check out the following blog:
Pulling binaries from pcaps
Enjoy!
Thanks for this one, especially for the blog itself. Read once an article there but couldn't find the address anymore.
Logged
chrisj
Hero Member
Offline
Posts: 1163
Re: Recreating files from packet capture
«
Reply #10 on:
August 26, 2009, 12:29:14 PM »
I used the site too (about pulling hex from pcap). It allowed me to finish the ISC.SANS.Org puzzle. Which I actually had a lot of fun doing. While TCPXtract was close at pulling the file out, and it worked on my nix box with Open Office, it didnt' work on my office window's box with office 2k3 (with 2k7 plugin).
Logged
OSWP, Sec+
nebu10uz
Sr. Member
Offline
Posts: 368
Re: Recreating files from packet capture
«
Reply #11 on:
August 26, 2009, 04:54:20 PM »
Hey chrisj, check this perl script out for extracting Office 2007 Metadata:
read_open_xml.pl
The script works, I tried against the docx file from the evidence pcap and it gave me some info such as the name of the file creator, creation and modify timestamp. Thats some cool info that you can include in your network forensic report.
You don't need the script to get this info but its quicker.
Logged
Security+, OSCP, CEH
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
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(95) by
zeebee
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(30) by
don
Tools
: Symbolic Exploit Assistant project is looking for collaborators
(0) by
galapag0
Greetings
: Hi from the UK
(5) by
prats84
GCIH - GIAC Certified Incident Handler
: Passed my GCIH
(9) by
prats84
Network Pen Testing
: Want a challenge? Want a GXPN practice exam?
(0) by
ajohnson
GCIH - GIAC Certified Incident Handler
: GCIH Free Practice test attempt
(1) by
prats84
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
Free Business and Tech Magazines and eBooks
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.