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 43 guests online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Network Pen Testing
help with hashdump
EH-Net
May 19, 2013, 12:01:28 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
) >
help with hashdump
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: help with hashdump (Read 8492 times)
0 Members and 1 Guest are viewing this topic.
yatz
Full Member
Offline
Posts: 222
help with hashdump
«
on:
June 19, 2011, 08:50:51 PM »
I've been preparing a simple demonstration and wanted to show pass the hash. After getting a meterpreter session, I run hashdump to get the hashes, but it only seems to display the local SAM database. Is there a way to get the SAM hash for domain users as well? I am exploiting a Windows XP box that is on an Active Directory domain with a domain user currently logged in.
Thanks!
Logged
"Live as though you would die tomorrow, learn as though you would live forever."
CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
lorddicranius
Sr. Member
Offline
Posts: 447
Re: help with hashdump
«
Reply #1 on:
June 20, 2011, 02:11:33 AM »
I believe you'd need to exploit a domain controller for that.
Logged
GSEC, eCPPT, Sec+
j0rDy
Hero Member
Offline
Posts: 590
Re: help with hashdump
«
Reply #2 on:
June 20, 2011, 03:24:35 AM »
true, the credentials are stored on the domain controller. Hack that and you will be king of the network!
Logged
ISC2 Associate, CEH, ECSA, OSCP, OSWP
earning my stripes appears to be a road i must travel alone...with a little help of EH.net
Data_Raid
Full Member
Offline
Posts: 165
Re: help with hashdump
«
Reply #3 on:
June 20, 2011, 03:35:28 AM »
This should be of interest if the DC is Win2k8:
http://www.room362.com/blog/2011/5/15/dumping-hashes-on-win2k8-r2-x64-with-metasploit.html
and check out smart_hashdump:
http://www.darkoperator.com/blog/2011/5/19/metasploit-post-module-smart_hashdump.html
Logged
All men by nature desire knowledge.
Aristotle
yatz
Full Member
Offline
Posts: 222
Re: help with hashdump
«
Reply #4 on:
June 20, 2011, 08:55:45 AM »
Thanks everyone. I did come across those links but they don't really help in my case since this is just a standard XP box. Good to know that what I came across - need domain controller to get these - is what you came up with as well.
However, I thought I was able to do this using the pass the hash toolkit from CORE, but it doesn't look like that is part of meterpreter (can anyone confirm?).
I think even if I don't get this fully functional I can still show the local hashes and get my point across (i.e. HEREZ THE ADMINISTRATOR GUYZZ!!!), so no worries.
I was mainly asking for my own learning purposes.
Logged
"Live as though you would die tomorrow, learn as though you would live forever."
CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
cd1zz
Hero Member
Offline
Posts: 561
Re: help with hashdump
«
Reply #5 on:
June 20, 2011, 09:07:55 AM »
There is a module in metasploit to do it, but it's separate from meterpretery. Mubix displayed it here
http://www.room362.com/blog/2009/8/26/pass-the-hash-metasploit-demo.html
Logged
OSCE | OSCP | GXPN | OSWP | CISSP
http://www.pwnag3.com
http://www.networkadminsecrets.com
cd1zz
Hero Member
Offline
Posts: 561
Re: help with hashdump
«
Reply #6 on:
June 20, 2011, 09:08:11 AM »
There is a module in metasploit to do it, but it's separate from meterpreter. Mubix displayed it here
http://www.room362.com/blog/2009/8/26/pass-the-hash-metasploit-demo.html
Logged
OSCE | OSCP | GXPN | OSWP | CISSP
http://www.pwnag3.com
http://www.networkadminsecrets.com
lorddicranius
Sr. Member
Offline
Posts: 447
Re: help with hashdump
«
Reply #7 on:
June 20, 2011, 09:12:25 AM »
cd1zz beat me to it hehe. Here's a section in Metasploit Unleashed that explains "pass the hash" as well:
http://www.offensive-security.com/metasploit-unleashed/PSexec_Pass_The_Hash
Logged
GSEC, eCPPT, Sec+
yatz
Full Member
Offline
Posts: 222
Re: help with hashdump
«
Reply #8 on:
June 20, 2011, 09:21:56 AM »
Thanks, I did come across the Metasploit Unleased link, which I was successful doing, and the video is helpful as well.
This still relies on having a local account (the video uses "andrew") that has the same username and password as a domain user. I want to assume there are no local accounts on the XP box.
One would think that somewhere the domain credentials have to be cached for offline login...
Logged
"Live as though you would die tomorrow, learn as though you would live forever."
CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
cd1zz
Hero Member
Offline
Posts: 561
Re: help with hashdump
«
Reply #9 on:
June 20, 2011, 09:27:37 AM »
Mubix to the rescue
http://www.room362.com/blog/2011/2/14/cachedump-for-meterpreter-in-action.html
http://lab.mediaservice.net/code/cachedump.rb
Logged
OSCE | OSCP | GXPN | OSWP | CISSP
http://www.pwnag3.com
http://www.networkadminsecrets.com
yatz
Full Member
Offline
Posts: 222
Re: help with hashdump
«
Reply #10 on:
June 20, 2011, 10:39:13 AM »
Cachedump, yep that worked. I came across references to this script but didn't investigate. Thanks!!!
Logged
"Live as though you would die tomorrow, learn as though you would live forever."
CCNA, MCSA, MCTS, Sec+, Net+, Linux+, CEH
hernano
Newbie
Offline
Posts: 3
Re: help with hashdump
«
Reply #11 on:
June 21, 2011, 08:59:24 AM »
Hi!,
I'm the author of the defunct pass-the-hash toolkit, and also of the Windows Credentials Editor (WCE).
I wrote the pass-the-hash toolkit and I can tell you it does not longer work. It only works on xp/2003, without current patches, and it does not work on windows 7/2008, etc etc. So you should not expect it to work anymore.
I did write a new tool called Windows Credentials Editor, it's a much improved version of the pass-the-hash toolkit and it supports windows 7/2008. It also supports Pass-the-ticket for Kerberos which is something new I implemented..
You can download it here:
http://www.ampliasecurity.com/research/wce_v1_2.tgz
A presentation about how it works, features, etc:
http://www.ampliasecurity.com/research/WCE_Internals_RootedCon2011_ampliasecurity.pdf
Also, I'd like to point out a few things:
1-With WCE you don't need to own a Domain Controller to obtain the hashes. That's one of the good things about these tools I wrote. You can compromise a regular machine, like a backup server, and if at some point a domain administrator (or any other domain user) remotely accessed that machine using RDP for example, those hashes can remain in memory (even after the session is terminated, because of a bug in windows), and WCE will steal those hashes from memory. WCE (and previously pth toolkit) does not touch the SAM database, it steals everything from memory.
hashes are stored in memory not just by RDP sessions, but also by the runas command, services that login using an specific windows account, etc etc
2-cachedump is not the same as WCE. With cachedump you are obtaining hashes
cached. This functionality can be disabled. WCE 'steals' hashes from memory.. you can have the cache disabled, and WCE will still give you hashes..
The tools are stealing credentials from different places..
3-WCE provides 'native' pass-the-hash. You are not dependant on a third-party SMB implementation, like a modified smbclient or a SMB stack written in ruby or python which have limited functionality (can be enough for some things, but it is limited), which WCE, besides 'stealing' hashes, you can also use those hashes and do pass-the-hash directly from windows, and access remote shares using thoses hashes, etc etc
4-with WCE you can also steal kerberos tickets and reuse them on another windows box or a unix box.. but that's another story..
I hope it helps.
Thank you!
Logged
cd1zz
Hero Member
Offline
Posts: 561
Re: help with hashdump
«
Reply #12 on:
June 21, 2011, 09:04:32 AM »
Kick ass. Thank you.
Logged
OSCE | OSCP | GXPN | OSWP | CISSP
http://www.pwnag3.com
http://www.networkadminsecrets.com
Ignatius
Jr. Member
Offline
Posts: 91
Re: help with hashdump
«
Reply #13 on:
June 21, 2011, 12:57:06 PM »
That's interesting, hernano. Thank you for the update about the successor of your well-known Pass-the-Hash toolkit.
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.