Kali Linux
  • Blog
  • Downloads
    • Download Kali Linux
    • Kali Linux NetHunter
    • Kali Linux Revealed Book
    • Release Information
  • Training
    • Penetration Testing Training
    • The Open Kali Linux Dojo
    • Kali Linux Revealed
  • Documentation
    • Kali Linux Documentation
    • Special Kali Linux Features
    • Kali Linux Tools Website
  • Community
    • Community Support
    • Kali Linux Forums
    • Kali Git Repository
    • Report Kali Linux Bugs
  • About Us
    • All About Kali Linux
    • Kali Press Release
Passing the Hash with Remote Desktop

Passing the Hash with Remote Desktop

January 14, 2014roninPenetration Testing

Kali Linux contains a large number of very useful tools that are beneficial to information security professionals. One set of such tools belongs to the Pass-the-Hash toolkit, which includes favorites such as pth-winexe among others, already packaged in Kali Linux. An example of easy command line access using pth-winexe is shown below.

pth-winexe

We constantly strive to include new, useful tools to our repositories. Sometimes we feel that some of these tools do not get the attention they deserve and go under-reported. One such recent addition is the version of FreeRDP, which allows a penetration tester to use a password hash instead of a plain text password for authentication to the remote desktop service in Windows 2012 R2 and Windows 8.1.

What’s the big deal, you say? Traditional “Pass-the-Hash” attacks can be very powerful, but they are limited to command line access. Although in most cases that is enough, sometimes GUI access is just a better way to accomplish things.

A few months ago, Mark Lowe from the Portcullis Labs published a blog post on research he conducted against Windows 2012 R2 and Windows 8.1 RDP security improvements. It turns out that Microsoft, in their quest to mitigate “Pass-the-Hash” attacks, introduced something called “Restricted Admin” mode.  You can read more about it here.

Inadvertently however, this new security feature actually enabled the use of a password hash for RDP authentication purposes, thereby giving many pentesters once again a reason to smile. To add to the validity of the research by Mark, the FreeRDP project has added native support for Pass-the-Hash authentication to the FreeRDP package, which is now in Kali repos. To enjoy this new feature, simply install freerdp-x11.

apt-get update
apt-get install freerdp-x11

The new xfreerdp executable supports the “/pth” flag as shown below using our “offsec” domain user and the “password” hash.

pth-rdp

And that’s it! RDP sessions using harvested password hashes. Again, keep in mind that this only works on Windows 2012 R2 and Windows 8.1. To the best of our knowledge, the “Restricted Admin” feature has not been backported yet and considering this, it may never be.

Related Posts

Pass the Hash toolkit, Winexe and more.

July 15, 2013muts

Kali Linux 1.0.4 Summer Update Release

July 25, 2013dookie

Follow us on Twitter

Follow @kalilinux Follow @offsectraining Follow @exploitdb
Facebook
LinkedIn
Vimeo
GitHub
RSS

Ready for the OSCP?

oscp-certs

Join the ever growing group of well trained and highly skilled Offensive Security Certified Professionals. Learn hands-on, real world penetration testing from the creators of Kali Linux.

Kali Linux Twitter Feed

Tweets by @kalilinux

Blog Categories

  • Kali Linux Dojo (7)
  • Kali Linux News (32)
  • Kali Linux Releases (15)
  • Kali Linux Tutorials (7)
  • Penetration Testing (6)

Kali Documentation

  • 01. Introduction to Kali Linux
  • 02. Kali Linux Live
  • 03. Installing Kali Linux
  • 04. Kali Linux on ARM
  • 05. Kali Linux General Use
  • 06. Customizing Kali Linux
  • 07. Kali Community Support
  • 08. Kali Linux Policies
  • 09. Open Kali Linux Dojo

Kali Linux Revealed now available on Amazon!

kali Linux Revealed

Copyright © Kali Linux

  • Privacy Policy
  • Trademark Policy