{"id":193,"date":"2014-01-11T16:32:25","date_gmt":"2014-01-11T16:32:25","guid":{"rendered":"http:\/\/www.hackwhackandsmack.com\/?p=193"},"modified":"2014-01-11T16:33:17","modified_gmt":"2014-01-11T16:33:17","slug":"pass-the-hash-rdp-windows-2012-r2","status":"publish","type":"post","link":"https:\/\/www.hackwhackandsmack.com\/?p=193","title":{"rendered":"Pass The Hash RDP (Windows 2012 R2)"},"content":{"rendered":"<p>Having read a few articles about the restricted-admin mode on RDP I decided to give this ago to make sure I had all the tools in order to use this attack.<\/p>\n<p>I installed a machine with windows server 2012 R2 edition and enabled RDP.<\/p>\n<p>Then I dumped the hashes from the box as shown here is metasploit using the smart_hashdump module.<\/p>\n<p><a href=\"http:\/\/www.hackwhackandsmack.com\/wp-content\/uploads\/2014\/01\/pth1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-196\" title=\"pth1\" src=\"http:\/\/www.hackwhackandsmack.com\/wp-content\/uploads\/2014\/01\/pth1.png\" alt=\"\" width=\"1056\" height=\"368\" \/><\/a><\/p>\n<p>Once I had got the hashes I installed xfreerdp which by default comes with the PassTheHash (PTH)option. This is the correct syntax for doing this:<\/p>\n<p><a href=\"http:\/\/www.hackwhackandsmack.com\/wp-content\/uploads\/2014\/01\/pth2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-197\" title=\"pth2\" src=\"http:\/\/www.hackwhackandsmack.com\/wp-content\/uploads\/2014\/01\/pth2.png\" alt=\"\" width=\"953\" height=\"56\" \/><\/a><\/p>\n<p>And \u00a0voila, we have an RDP session by using the hash not the users password. Brilliant!!!!<\/p>\n<p><a href=\"http:\/\/www.hackwhackandsmack.com\/wp-content\/uploads\/2014\/01\/rdp.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-198\" title=\"rdp\" src=\"http:\/\/www.hackwhackandsmack.com\/wp-content\/uploads\/2014\/01\/rdp.png\" alt=\"\" width=\"1032\" height=\"797\" \/><\/a><\/p>\n<p>Thanks all, hope you find this useful \ud83d\ude09<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having read a few articles about the restricted-admin mode on RDP I decided to give this ago to make sure I had all the tools in order to use this attack. I installed a machine with windows server 2012 R2 edition and enabled RDP. Then I dumped the hashes from the box as shown here&hellip; <a class=\"more-link\" href=\"https:\/\/www.hackwhackandsmack.com\/?p=193\">Continue reading <span class=\"screen-reader-text\">Pass The Hash RDP (Windows 2012 R2)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/posts\/193"}],"collection":[{"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=193"}],"version-history":[{"count":5,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/posts\/193\/revisions"}],"predecessor-version":[{"id":201,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/posts\/193\/revisions\/201"}],"wp:attachment":[{"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}