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 36 guests online
You are here:
Home
Resources
Tutorials
Pass-the-hash attack with Metasploit
EH-Net
May 25, 2013, 03:45:25 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
>
Resources
>
Tutorials
(Moderator:
don
) >
Pass-the-hash attack with Metasploit
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Pass-the-hash attack with Metasploit (Read 14999 times)
0 Members and 1 Guest are viewing this topic.
Orhan
Newbie
Offline
Posts: 14
If at first you don't succeed, cheat!
Pass-the-hash attack with Metasploit
«
on:
May 20, 2009, 04:05:37 PM »
I recently attended the very excellent SANS 560 course and there was a section on the "pass-the-hash" attack. The course covers both the pass-the-hash toolkit by Core Security and the patch for samba by JoMo-kun of FooFus. Both of which work very well. But there is an easier way!
If you're pen testing, you must be using Metasploit and there is a fantastic (and somewhat overlooked) exploit called:
windows/smb/psexec
This module allows you to run a command on a remote machine. A feature of this module is that it gives you the option to add a password or a hash value to the credentials being used. So if you have just exploited a machine and gained a hash dump, simply set your username (defaults is administrator) and put your password hash straight into the SMBPass field:
set SMBPass {insert in the LANMAN & NT hash only}
You can setup your payloads in the normal way:
set PAYLOAD windows/meterpreter/reverse_tcp
Setup your other variables and go exploit!
The art of password cracking without password cracking.....
Logged
GPEN OSCP OSWP CCSE CCSA CHFI..etc
Bronze Swimming certificate..
Ketchup
Hero Member
Offline
Posts: 1021
Re: Pass-the-hash attack with Metasploit
«
Reply #1 on:
May 20, 2009, 10:49:20 PM »
I am always surprised how many workstations are running with the local Administrator account having a blank password.
Logged
~~~~~~~~~~~~~~
Ketchup
timmedin
Sr. Member
Offline
Posts: 469
Re: Pass-the-hash attack with Metasploit
«
Reply #2 on:
May 20, 2009, 10:52:49 PM »
Windows does not allow remote Admin access if the local admin (or similar priveledged account) has a blank password.
"Beginning with Windows XP Home edition and later non-server editions of Windows, Windows implements the "ForceGuest" feature when the local Administrator account has a blank password. When a remote user authenticates to Windows XP (and later) as Administrator with a blank password (e.g. by mapping to one of the administrative shares), Windows will assign to their session a Guest access token, not an Administrator access token thereby preventing access to the entire C drive"
http://en.wikipedia.org/wiki/Administrative_share
I blogged about this recently too.
http://blog.securitywhole.com/2009/05/16/make-windows-more-secure-and-use-a-blank-password.aspx
«
Last Edit: May 20, 2009, 10:54:37 PM by timmedin
»
Logged
twitter.com/timmedin |
http://blog.securitywhole.com
Ketchup
Hero Member
Offline
Posts: 1021
Re: Pass-the-hash attack with Metasploit
«
Reply #3 on:
May 21, 2009, 12:42:17 AM »
I wasn't sure if that applied to psexec, but now that I think about it, psexec probably uploads an exe to one of the admin shares.
I am wondering if the story is different in a Domain environment though. The reason I wonder is because I recently encountered yet another XP box that had a blank Administrator password. I was able to psexec a meterpreter shell on this box, using the local Administrator account with a blank password. I can't imagine anyone in the right mind would change group policy settings to disable this feature purposely. I can't imagine the the workstation user changed it either. I don't remember, but I will go back and check the GPO dumps from that job. I am going to do some testing on a couple of domain PCs as well.
Logged
~~~~~~~~~~~~~~
Ketchup
timmedin
Sr. Member
Offline
Posts: 469
Re: Pass-the-hash attack with Metasploit
«
Reply #4 on:
May 22, 2009, 08:58:42 AM »
Quote from: Ketchup on May 21, 2009, 12:42:17 AM
I wasn't sure if that applied to psexec, but now that I think about it, psexec probably uploads an exe to one of the admin shares.
I am wondering if the story is different in a Domain environment though. The reason I wonder is because I recently encountered yet another XP box that had a blank Administrator password. I was able to psexec a meterpreter shell on this box, using the local Administrator account with a blank password. I can't imagine anyone in the right mind would change group policy settings to disable this feature purposely. I can't imagine the the workstation user changed it either. I don't remember, but I will go back and check the GPO dumps from that job. I am going to do some testing on a couple of domain PCs as well.
i guess I stand corrected then. My understanding was RPC would not allow you to connect since the token would be restricted due to the blank password.
Logged
twitter.com/timmedin |
http://blog.securitywhole.com
Ketchup
Hero Member
Offline
Posts: 1021
Re: Pass-the-hash attack with Metasploit
«
Reply #5 on:
May 22, 2009, 09:58:43 AM »
I think that you are correct actually, timmedin. I haven't been able to reproduce this on my domain. Still, I think that the workstation I hacked last week had some weird GPO settings on it, although I don't have that data. I know I connected with a blank Administrator password, even Nessus identified it. I know it was XP Pro, SP2. Weird, I wish I still had access to that machine.
Logged
~~~~~~~~~~~~~~
Ketchup
timmedin
Sr. Member
Offline
Posts: 469
Re: Pass-the-hash attack with Metasploit
«
Reply #6 on:
May 22, 2009, 10:20:39 AM »
Quote from: Ketchup on May 22, 2009, 09:58:43 AM
I think that you are correct actually, timmedin. I haven't been able to reproduce this on my domain. Still, I think that the workstation I hacked last week had some weird GPO settings on it, although I don't have that data. I know I connected with a blank Administrator password, even Nessus identified it. I know it was XP Pro, SP2. Weird, I wish I still had access to that machine.
I just tested it again and I had the same result. Blank password is more secure than no password.
Logged
twitter.com/timmedin |
http://blog.securitywhole.com
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
News Items and General Discussion About EH-Net
: Fashion Advice To Assist You Boost Your Style
(0) by
exeldinooxilk
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
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.