{"id":82780,"date":"2026-07-25T12:33:03","date_gmt":"2026-07-25T04:33:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/82780.html"},"modified":"2026-07-25T12:33:03","modified_gmt":"2026-07-25T04:33:03","slug":"dvwa%e9%9d%b6%e5%9c%ba-javascript-attacks%e5%89%8d%e7%ab%af%e6%94%bb%e5%87%bb","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/82780.html","title":{"rendered":"DVWA\u9776\u573a\u2014\u2014JavaScript Attacks(\u524d\u7aef\u653b\u51fb)"},"content":{"rendered":"<p id=\"uc8320bbb\">JavaScript Attacks\u8868\u9762\u4e0a\u662f\u4e00\u4e2a\u4fee\u6539&#034;\u77ed\u8bed&#xff08;phrase&#xff09;<\/p>\n<p id=\"uf9b7dce9\">\u4f60\u8f93\u5165\u4e00\u6bb5\u6587\u5b57&#xff08;\u6bd4\u5982 ChangeMe&#xff09;\u2014\u2014\u70b9\u51fb Submit\u2014\u2014\u9875\u9762\u663e\u793a&#034;\u4f60\u7684\u77ed\u8bed\u5df2\u66f4\u65b0&#034;<\/p>\n<p id=\"u99ebb00c\">\u4f46\u5176\u771f\u6b63\u76ee\u7684\u5728\u4e8e\u544a\u8bc9\u6211\u4eec&#034;\u628a\u6240\u6709\u5b89\u5168\u903b\u8f91\u90fd\u653e\u5728\u524d\u7aef JavaScript \u91cc&#034;\u662f\u591a\u4e48\u5371\u9669\u7684\u4e8b\u60c5<\/p>\n<p id=\"uf7ae8cb4\">\n<p id=\"ude0ceece\">\u4e00\u4e2a\u6b63\u5e38\u7684 Web \u5e94\u7528&#xff0c;\u4fee\u6539\u7528\u6237\u6570\u636e\u65f6&#xff0c;\u5e94\u8be5\u7531\u670d\u52a1\u5668\u7aef\u5b8c\u6210\u9a8c\u8bc1&#xff0c;\u6d4f\u89c8\u5668\u53ea\u8d1f\u8d23\u63d0\u4ea4\u548c\u5c55\u793a<\/p>\n<p id=\"u0dfdfba5\">\n<h3 id=\"IpjRT\">low<\/h3>\n<h4 id=\"uuENL\">\u6e90\u7801\u5206\u6790<\/h4>\n<p>&lt;?php<br \/>\n$page[&#039;body&#039;] .&#061; &lt;&lt;&lt;EOF<br \/>\n&lt;script&gt;<br \/>\n\/*<br \/>\nMD5 code from here<br \/>\nhttps:\/\/github.com\/blueimp\/JavaScript-MD5<br \/>\n*\/<br \/>\n!function(n){&#034;use strict&#034;;function t(n,t){var r&#061;(65535&amp;n)&#043;(65535&amp;t);return(n&gt;&gt;16)&#043;(t&gt;&gt;16)&#043;(r&gt;&gt;16)&lt;&lt;16|65535&amp;r}function r(n,t){return n&lt;&lt;t|n&gt;&gt;&gt;32-t}function e(n,e,o,u,c,f){return t(r(t(t(e,n),t(u,f)),c),o)}function o(n,t,r,o,u,c,f){return e(t&amp;r|~t&amp;o,n,t,u,c,f)}function u(n,t,r,o,u,c,f){return e(t&amp;o|r&amp;~o,n,t,u,c,f)}function c(n,t,r,o,u,c,f){return e(t^r^o,n,t,u,c,f)}function f(n,t,r,o,u,c,f){return e(r^(t|~o),n,t,u,c,f)}function i(n,r){n[r&gt;&gt;5]|&#061;128&lt;&lt;r%32,n[14&#043;(r&#043;64&gt;&gt;&gt;9&lt;&lt;4)]&#061;r;var e,i,a,d,h,l&#061;1732584193,g&#061;-271733879,v&#061;-1732584194,m&#061;271733878;for(e&#061;0;e&lt;n.length;e&#043;&#061;16)i&#061;l,a&#061;g,d&#061;v,h&#061;m,g&#061;f(g&#061;f(g&#061;f(g&#061;f(g&#061;c(g&#061;c(g&#061;c(g&#061;c(g&#061;u(g&#061;u(g&#061;u(g&#061;u(g&#061;o(g&#061;o(g&#061;o(g&#061;o(g,v&#061;o(v,m&#061;o(m,l&#061;o(l,g,v,m,n[e],7,-680876936),g,v,n[e&#043;1],12,-389564586),l,g,n[e&#043;2],17,606105819),m,l,n[e&#043;3],22,-1044525330),v&#061;o(v,m&#061;o(m,l&#061;o(l,g,v,m,n[e&#043;4],7,-176418897),g,v,n[e&#043;5],12,1200080426),l,g,n[e&#043;6],17,-1473231341),m,l,n[e&#043;7],22,-45705983),v&#061;o(v,m&#061;o(m,l&#061;o(l,g,v,m,n[e&#043;8],7,1770035416),g,v,n[e&#043;9],12,-1958414417),l,g,n[e&#043;10],17,-42063),m,l,n[e&#043;11],22,-1990404162),v&#061;o(v,m&#061;o(m,l&#061;o(l,g,v,m,n[e&#043;12],7,1804603682),g,v,n[e&#043;13],12,-40341101),l,g,n[e&#043;14],17,-1502002290),m,l,n[e&#043;15],22,1236535329),v&#061;u(v,m&#061;u(m,l&#061;u(l,g,v,m,n[e&#043;1],5,-165796510),g,v,n[e&#043;6],9,-1069501632),l,g,n[e&#043;11],14,643717713),m,l,n[e],20,-373897302),v&#061;u(v,m&#061;u(m,l&#061;u(l,g,v,m,n[e&#043;5],5,-701558691),g,v,n[e&#043;10],9,38016083),l,g,n[e&#043;15],14,-660478335),m,l,n[e&#043;4],20,-405537848),v&#061;u(v,m&#061;u(m,l&#061;u(l,g,v,m,n[e&#043;9],5,568446438),g,v,n[e&#043;14],9,-1019803690),l,g,n[e&#043;3],14,-187363961),m,l,n[e&#043;8],20,1163531501),v&#061;u(v,m&#061;u(m,l&#061;u(l,g,v,m,n[e&#043;13],5,-1444681467),g,v,n[e&#043;2],9,-51403784),l,g,n[e&#043;7],14,1735328473),m,l,n[e&#043;12],20,-1926607734),v&#061;c(v,m&#061;c(m,l&#061;c(l,g,v,m,n[e&#043;5],4,-378558),g,v,n[e&#043;8],11,-2022574463),l,g,n[e&#043;11],16,1839030562),m,l,n[e&#043;14],23,-35309556),v&#061;c(v,m&#061;c(m,l&#061;c(l,g,v,m,n[e&#043;1],4,-1530992060),g,v,n[e&#043;4],11,1272893353),l,g,n[e&#043;7],16,-155497632),m,l,n[e&#043;10],23,-1094730640),v&#061;c(v,m&#061;c(m,l&#061;c(l,g,v,m,n[e&#043;13],4,681279174),g,v,n[e],11,-358537222),l,g,n[e&#043;3],16,-722521979),m,l,n[e&#043;6],23,76029189),v&#061;c(v,m&#061;c(m,l&#061;c(l,g,v,m,n[e&#043;9],4,-640364487),g,v,n[e&#043;12],11,-421815835),l,g,n[e&#043;15],16,530742520),m,l,n[e&#043;2],23,-995338651),v&#061;f(v,m&#061;f(m,l&#061;f(l,g,v,m,n[e],6,-198630844),g,v,n[e&#043;7],10,1126891415),l,g,n[e&#043;14],15,-1416354905),m,l,n[e&#043;5],21,-57434055),v&#061;f(v,m&#061;f(m,l&#061;f(l,g,v,m,n[e&#043;12],6,1700485571),g,v,n[e&#043;3],10,-1894986606),l,g,n[e&#043;10],15,-1051523),m,l,n[e&#043;1],21,-2054922799),v&#061;f(v,m&#061;f(m,l&#061;f(l,g,v,m,n[e&#043;8],6,1873313359),g,v,n[e&#043;15],10,-30611744),l,g,n[e&#043;6],15,-1560198380),m,l,n[e&#043;13],21,1309151649),v&#061;f(v,m&#061;f(m,l&#061;f(l,g,v,m,n[e&#043;4],6,-145523070),g,v,n[e&#043;11],10,-1120210379),l,g,n[e&#043;2],15,718787259),m,l,n[e&#043;9],21,-343485551),l&#061;t(l,i),g&#061;t(g,a),v&#061;t(v,d),m&#061;t(m,h);return[l,g,v,m]}function a(n){var t,r&#061;&#034;&#034;,e&#061;32*n.length;for(t&#061;0;t&lt;e;t&#043;&#061;8)r&#043;&#061;String.fromCharCode(n[t&gt;&gt;5]&gt;&gt;&gt;t%32&amp;255);return r}function d(n){var t,r&#061;[];for(r[(n.length&gt;&gt;2)-1]&#061;void 0,t&#061;0;t&lt;r.length;t&#043;&#061;1)r[t]&#061;0;var e&#061;8*n.length;for(t&#061;0;t&lt;e;t&#043;&#061;8)r[t&gt;&gt;5]|&#061;(255&amp;n.charCodeAt(t\/8))&lt;&lt;t%32;return r}function h(n){return a(i(d(n),8*n.length))}function l(n,t){var r,e,o&#061;d(n),u&#061;[],c&#061;[];for(u[15]&#061;c[15]&#061;void 0,o.length&gt;16&amp;&amp;(o&#061;i(o,8*n.length)),r&#061;0;r&lt;16;r&#043;&#061;1)u[r]&#061;909522486^o[r],c[r]&#061;1549556828^o[r];return e&#061;i(u.concat(d(t)),512&#043;8*t.length),a(i(c.concat(e),640))}function g(n){var t,r,e&#061;&#034;&#034;;for(r&#061;0;r&lt;n.length;r&#043;&#061;1)t&#061;n.charCodeAt(r),e&#043;&#061;&#034;0123456789abcdef&#034;.charAt(t&gt;&gt;&gt;4&amp;15)&#043;&#034;0123456789abcdef&#034;.charAt(15&amp;t);return e}function v(n){return unescape(encodeURIComponent(n))}function m(n){return h(v(n))}function p(n){return g(m(n))}function s(n,t){return l(v(n),v(t))}function C(n,t){return g(s(n,t))}function A(n,t,r){return t?r?s(t,n):C(t,n):r?m(n):p(n)}&#034;function&#034;&#061;&#061;typeof define&amp;&amp;define.amd?define(function(){return A}):&#034;object&#034;&#061;&#061;typeof module&amp;&amp;module.exports?module.exports&#061;A:n.md5&#061;A}(this);<br \/>\n    function rot13(inp) {<br \/>\n        return inp.replace(\/[a-zA-Z]\/g,function(c){return String.fromCharCode((c&lt;&#061;&#034;Z&#034;?90:122)&gt;&#061;(c&#061;c.charCodeAt(0)&#043;13)?c:c-26);});<br \/>\n    }<br \/>\n    function generate_token() {<br \/>\n        var phrase &#061; document.getElementById(&#034;phrase&#034;).value;<br \/>\n        document.getElementById(&#034;token&#034;).value &#061; md5(rot13(phrase));<br \/>\n    }<br \/>\n    generate_token();<br \/>\n&lt;\/script&gt;<br \/>\nEOF;<\/p>\n<li id=\"u823ea652\">\u4ece\u9875\u9762\u4e2d\u83b7\u53d6 id&#061;&#034;phrase&#034; \u7684\u8f93\u5165\u6846\u7684\u503c&#xff08;\u7528\u6237\u8f93\u5165\u7684\u77ed\u8bed&#xff09;<\/li>\n<li id=\"u757e0586\">\u5bf9\u8be5\u503c\u8fdb\u884c ROT13 \u7f16\u7801<\/li>\n<li id=\"ufabef23c\">\u518d\u5bf9 ROT13 \u7684\u7ed3\u679c\u8fdb\u884c MD5 \u54c8\u5e0c<\/li>\n<li id=\"u4b2ed50d\">\u5c06\u6700\u7ec8\u7ed3\u679c\u8d4b\u503c\u7ed9 id&#061;&#034;token&#034; \u7684\u9690\u85cf\u5b57\u6bb5<\/li>\n<p id=\"u09ebf5c5\">\n<p id=\"u4bce245d\">\u5173\u952e\u70b9<\/p>\n<p id=\"u7421352a\">generate_token() \u5728\u9875\u9762\u52a0\u8f7d\u65f6\u7acb\u5373\u6267\u884c&#xff08;\u6700\u540e\u4e00\u884c&#xff09;&#xff0c;\u8fd9\u610f\u5473\u7740Token\u7684\u503c\u5b8c\u5168\u7531\u7528\u6237\u8f93\u5165\u7684phrase\u51b3\u5b9a<\/p>\n<p id=\"ub8d55924\">\n<p id=\"u78624f0e\">\u5176\u6838\u5fc3\u95ee\u9898\u5c31\u5728\u4e8e<\/p>\n<p id=\"u3ec44b94\">Token\u7684\u751f\u6210\u7b97\u6cd5\u5b8c\u5168\u66b4\u9732\u5728\u5ba2\u6237\u7aeftoken &#061;&#061;&#061; MD5(ROT13(phrase))&#xff0c;\u4e14\u4f9d\u8d56\u4e8e\u7528\u6237\u8f93\u5165\u7684phrase&#xff0c;\u56e0\u6b64\u4efb\u4f55\u7528\u6237\u90fd\u53ef\u4ee5\u4e3a\u81ea\u5df1\u60f3\u8981\u7684\u4efb\u4f55phrase\u751f\u6210\u4e00\u4e2a&#034;\u5408\u6cd5&#034;\u7684Token<\/p>\n<p id=\"ua38e9002\">\n<p id=\"u4946f15e\">\u63d0\u793a\u6211\u4eec\u63d0\u4ea4\u5355\u8bcd &#034;success&#034; \u5373\u53ef\u83b7\u80dc<\/p>\n<p id=\"ucb21b141\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"194\" id=\"uf0e2086c\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725043301-6a643c7d476eb.png\" width=\"866\" \/><\/p>\n<p id=\"ub3b3400a\">\u6839\u636e\u6211\u4eec\u521a\u521a\u7684\u5206\u6790<\/p>\n<li id=\"ub0428f1e\">Token \u662f\u7531 md5(rot13(phrase)) \u8ba1\u7b97\u5f97\u51fa\u7684<\/li>\n<li id=\"ud00a318e\">\u670d\u52a1\u5668\u9a8c\u8bc1\u7684\u5c31\u662f\u8fd9\u4e2a\u516c\u5f0f<\/li>\n<li id=\"uf9bba66a\">\u9700\u8981\u63d0\u4ea4 phrase&#061;success \u548c\u5bf9\u5e94\u7684\u6b63\u786eToken<\/li>\n<p id=\"u812c0d18\">\n<h5 id=\"WqRPW\">\u7b2c\u4e00\u6b65&#xff1a;\u8ba1\u7b97 ROT13<\/h5>\n<p>&#034;success&#034; \u7ecf\u8fc7 ROT13 \u7f16\u7801&#xff1a;<br \/>\ns \u2192 f<br \/>\nu \u2192 h<br \/>\nc \u2192 p<br \/>\nc \u2192 p<br \/>\ne \u2192 r<br \/>\ns \u2192 f<br \/>\ns \u2192 f<\/p>\n<p>\u7ed3\u679c&#xff1a; &#034;fhpprff&#034;<\/p>\n<h5 id=\"fm5vZ\">\u7b2c\u4e8c\u6b65&#xff1a;\u8ba1\u7b97 MD5<\/h5>\n<p id=\"u6d344c67\">\u5bf9 &#034;fhpprff&#034; \u8fdb\u884c MD5 \u54c8\u5e0c\u3002<\/p>\n<p id=\"ubec1f19a\">\u4f7f\u7528\u6d4f\u89c8\u5668\u5f00\u53d1\u8005\u5de5\u5177&#xff08;F12 \u2192 Console&#xff09;&#xff1a;<\/p>\n<p id=\"u9ffc154c\">md5(&#034;fhpprff&#034;)<\/p>\n<p id=\"ua863f708\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"172\" id=\"u29b2eb41\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725043301-6a643c7d5db30.png\" width=\"714\" \/><\/p>\n<h5 id=\"ArjJK\">\u7b2c\u4e09\u6b65&#xff1a;\u6784\u9020\u8bf7\u6c42<\/h5>\n<p id=\"ufc669ce8\">\u5f00\u53d1\u8005\u5de5\u5177\u91cc&#xff0c;\u6539\u53d8token\u548cphrase\u7684\u503c\u5206\u522b\u4e3a value&#061;&#034;38581812b435834ebf84ebcc2c6424d6&#034; &#xff0c;value&#061;&#034;success&#034; \u70b9\u51fbsubmit<\/p>\n<p id=\"u3a7e4d15\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"422\" id=\"ud59da0b3\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725043301-6a643c7d6ab23.png\" width=\"1383\" \/><\/p>\n<p id=\"ub93986d9\">\u63d0\u793a\u6211\u4eec\u6210\u529f\u4e86<\/p>\n<p id=\"u20a829a2\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"442\" id=\"uf3da1746\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725043301-6a643c7d9bddc.png\" width=\"1328\" \/><\/p>\n<p id=\"u9ca7fc03\">\n<p id=\"u9e4f9075\">\n<h3 id=\"3182517549\">Medium<\/h3>\n<h4 id=\"jgKZR\">\u6e90\u7801\u5206\u6790<\/h4>\n<p>function do_something(e)<br \/>\n{<br \/>\n      for(var t &#061; &#034;&#034;, n &#061; e.length &#8211; 1; n &gt;&#061;0; n&#8211;)<br \/>\n            t &#043;&#061; e[n];<br \/>\n      return t<br \/>\n}<\/p>\n<p>setTimeout(function()<br \/>\n{<br \/>\n      do_elsesomething(&#034;XX&#034;)<br \/>\n},300);<\/p>\n<p>function do_elsesomething(e)<br \/>\n{<br \/>\n      document.getElementById(&#034;token&#034;).value &#061; do_something(e &#043; document.getElementById(&#034;phrase&#034;).value &#043; &#034;XX&#034;)<br \/>\n}<\/p>\n<p id=\"u0954c70d\">1. do_something() \u51fd\u6570 &#8211; \u5b57\u7b26\u4e32\u53cd\u8f6c<\/p>\n<ul>\n<li id=\"uf7dae49a\">\u8f93\u5165&#xff1a;&#034;hello&#034;<\/li>\n<li id=\"u3b7a54c7\">\u8f93\u51fa&#xff1a;&#034;olleh&#034;<\/li>\n<\/ul>\n<p id=\"u72dad710\">2.setTimeout() &#8211; \u5ef6\u8fdf\u6267\u884c&#xff0c;\u7b49\u5f85 300\u6beb\u79d2 \u540e&#xff0c;\u8c03\u7528 do_elsesomething(&#034;XX&#034;)<\/p>\n<p id=\"u4ae5272f\">3.do_elsesomething() &#8211; Token\u751f\u6210\u6838\u5fc3&#xff0c;<\/p>\n<ul>\n<li id=\"u7e547217\">\u53c2\u6570 e \u7684\u503c\u662f &#034;XX&#034;<\/li>\n<li id=\"ucffb29a1\">\u83b7\u53d6\u8f93\u5165\u6846 phrase \u7684\u503c<\/li>\n<li id=\"u7204747c\">\u62fc\u63a5\u5b57\u7b26\u4e32&#xff1a;&#034;XX&#034; &#043; phrase &#043; &#034;XX&#034;<\/li>\n<li id=\"ued239e80\">\u8c03\u7528 do_something() \u8fdb\u884c\u53cd\u8f6c<\/li>\n<li id=\"ufdd4abac\">\u5c06\u53cd\u8f6c\u540e\u7684\u7ed3\u679c\u8d4b\u7ed9 token \u5b57\u6bb5<\/li>\n<\/ul>\n<p id=\"ud6f777ec\">\n<p id=\"ua7659308\">\u5f00\u53d1\u8005\u53ef\u80fd\u8ba4\u4e3a\u505a\u4e86\u4ee5\u4e0b&#034;\u52a0\u5f3a&#034;&#xff1a;<\/p>\n<li id=\"u5c952361\">\u589e\u52a0\u4e86\u76d0\u503c&#xff08;Salt&#xff09;&#xff1a;&#034;XX&#034; &#043; phrase &#043; &#034;XX&#034;<\/li>\n<ul>\n<li>\n<ul>\n<li id=\"ua9fab738\">\u770b\u8d77\u6765\u50cf\u662f\u52a0\u4e86\u5bc6\u94a5&#xff0c;\u8ba9Token\u4e0d\u90a3\u4e48\u5bb9\u6613\u88ab\u731c\u4e2d<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<li id=\"u93bbca23\">\u589e\u52a0\u4e86\u5ef6\u8fdf\u6267\u884c&#xff1a;setTimeout() \u8ba9\u4ee3\u7801\u4e0d\u90a3\u4e48\u76f4\u89c2<\/li>\n<ul>\n<li>\n<ul>\n<li id=\"u92611bcd\">\u53ef\u80fd\u8ba4\u4e3a\u8fd9\u6837\u80fd\u963b\u6b62\u81ea\u52a8\u5316\u811a\u672c<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<li id=\"u3a7ac0e5\">\u6539\u53d8\u4e86\u7b97\u6cd5&#xff1a;\u4eceMD5\u6539\u4e3a\u5b57\u7b26\u4e32\u53cd\u8f6c<\/li>\n<ul>\n<li>\n<ul>\n<li id=\"u77a85866\">\u8ba4\u4e3a\u6362\u7b97\u6cd5\u80fd\u8ff7\u60d1\u653b\u51fb\u8005<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p id=\"u313f32ea\">\n<p id=\"uc73010de\">\u5b9e\u9645\u60c5\u51b5\u662f<\/p>\n<ul>\n<li id=\"ua2ccedab\">\u7b97\u6cd5\u4ecd\u7136\u5b8c\u5168\u66b4\u9732\u5728\u5ba2\u6237\u7aef<\/li>\n<li id=\"u5f7f85ed\">\u6240\u8c13\u7684&#034;\u76d0\u503c&#034;\u662f\u786c\u7f16\u7801\u7684<\/li>\n<li id=\"ufa567d7f\">\u53cd\u8f6c\u7b97\u6cd5\u662f\u53ef\u9006\u7684<\/li>\n<li id=\"uba6bd60e\">\u5ef6\u8fdf\u6267\u884c\u53ef\u4ee5\u7528\u8c03\u8bd5\u5668\u8df3\u8fc7<\/li>\n<\/ul>\n<p id=\"u1d54df64\">\n<p id=\"ud14b39dd\">\u6f0f\u6d1e\u5229\u7528<\/p>\n<h5 id=\"nO61Y\">\u7b2c\u4e00\u6b65&#xff1a;\u8ba1\u7b97\u6b63\u786e\u7684Token<\/h5>\n<p>\u5bf9\u4e8e phrase &#061; &#034;success&#034;:<br \/>\ntoken &#061; reverse(&#034;XX&#034; &#043; &#034;success&#034; &#043; &#034;XX&#034;)<br \/>\n     &#061; reverse(&#034;XXsuccessXX&#034;)<br \/>\n     &#061; &#034;XXsseccusXX&#034;<\/p>\n<h5 id=\"PciJU\">\u7b2c\u4e8c\u6b65&#xff1a;\u6784\u9020\u653b\u51fb\u8bf7\u6c42<\/h5>\n<p id=\"ue26e9abf\">\u6211\u4eec\u4f9d\u65e7\u76f4\u63a5\u6539\u53d8\u8868\u5355\u5143\u7d20<\/p>\n<p id=\"u8d5a3c2b\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"970\" id=\"u2389feca\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725043301-6a643c7dccee8.png\" width=\"1383\" \/><\/p>\n<p id=\"u43bcfcff\">\u6ca1\u6bdb&#xff0c;\u6ce8\u5165\u6210\u529f\u4e86<\/p>\n<p id=\"u067f0502\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"206\" id=\"ua8af31ea\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725043302-6a643c7e42ad9.png\" width=\"832\" \/><\/p>\n<p id=\"uaea478a4\">\n<h3 id=\"UdYre\">high<\/h3>\n<h4 id=\"ut6Rf\">\u6e90\u7801\u5206\u6790<\/h4>\n<p>function do_something(e) {<br \/>\n    for (var t &#061; &#034;&#034;, n &#061; e.length &#8211; 1; n &gt;&#061; 0; n&#8211;) t &#043;&#061; e[n];<br \/>\n    return t<br \/>\n}<\/p>\n<p>function token_part_3(t, y &#061; &#034;ZZ&#034;) {<br \/>\n    document.getElementById(&#034;token&#034;).value &#061; sha256(document.getElementById(&#034;token&#034;).value &#043; y)<br \/>\n}<\/p>\n<p>function token_part_2(e &#061; &#034;YY&#034;) {<br \/>\n    document.getElementById(&#034;token&#034;).value &#061; sha256(e &#043; document.getElementById(&#034;token&#034;).value)<br \/>\n}<\/p>\n<p>function token_part_1(a, b) {<br \/>\n    document.getElementById(&#034;token&#034;).value &#061; do_something(document.getElementById(&#034;phrase&#034;).value)<br \/>\n}<\/p>\n<p>document.getElementById(&#034;phrase&#034;).value &#061; &#034;&#034;;<br \/>\nsetTimeout(function() {<br \/>\n    token_part_2(&#034;XX&#034;)<br \/>\n}, 300);<br \/>\ndocument.getElementById(&#034;send&#034;).addEventListener(&#034;click&#034;, token_part_3);<br \/>\ntoken_part_1(&#034;ABCD&#034;, 44);<\/p>\n<p id=\"ucda8da0d\">\u8ddf\u524d\u4e24\u4e2a\u7b49\u7ea7\u5dee\u4e0d\u591a&#xff0c;\u4f9d\u6b21\u6267\u884c<\/p>\n<p id=\"u753f6666\">\u7b2c1\u6b65&#xff1a;token_part_1()<\/p>\n<p>\/\/ \u53cd\u8f6c phrase<br \/>\ntoken &#061; do_something(&#034;success&#034;)<br \/>\n     &#061; &#034;sseccus&#034;<\/p>\n<p id=\"u2ecf484b\">\u7b2c2\u6b65&#xff1a;token_part_2(&#034;XX&#034;)<\/p>\n<p>\/\/ \u62fc\u63a5 &#043; SHA256<br \/>\n\u62fc\u63a5 &#061; &#034;XX&#034; &#043; &#034;sseccus&#034; &#061; &#034;XXsseccus&#034;<br \/>\ntoken &#061; sha256(&#034;XXsseccus&#034;)<\/p>\n<p id=\"uaf5ba01d\">\u7b2c3\u6b65&#xff1a;\u7528\u6237\u70b9\u51fbSubmit \u2192 token_part_3()<\/p>\n<p>\/\/ \u83b7\u53d6\u5f53\u524dtoken&#xff0c;\u62fc\u63a5&#034;ZZ&#034;&#xff0c;\u518dSHA256<br \/>\n\u62fc\u63a5 &#061; token &#043; &#034;ZZ&#034; &#061; sha256(&#034;XXsseccus&#034;) &#043; &#034;ZZ&#034;<br \/>\ntoken &#061; sha256(\u62fc\u63a5)<\/p>\n<p id=\"ud7bb44a2\">\u6700\u7ec8Token&#xff1a;<\/p>\n<p id=\"ue8de559e\">text<\/p>\n<p id=\"u270884f7\">\u6700\u7ec8Token &#061; <span style=\"background-color:#d7d8d9\">sha256( sha256(&#034;XX&#034; &#043; reverse(phrase)) &#043; &#034;ZZ&#034; )<\/span><\/p>\n<p id=\"u1dacef4a\">\n<p id=\"u2fafa777\">\u5176\u95ee\u9898&#xff1a;<\/p>\n<p id=\"ud0b4774a\">\u7b97\u6cd5\u4ecd\u7136\u5b8c\u5168\u5728\u5ba2\u6237\u7aef&#xff0c;\u76d0\u503c\u662f\u786c\u7f16\u7801\u7684&#xff0c;\u53ef\u4ee5\u624b\u52a8\u8c03\u7528\u51fd\u6570&#xff0c;\u53ef\u4ee5\u7ed5\u8fc7\u5ef6\u8fdf<\/p>\n<p id=\"u300960af\">\u6240\u4ee5\u5229\u7528\u6f0f\u6d1e\u4e5f\u662f\u540c\u6837\u7684\u6d41\u7a0b<\/p>\n<h5 id=\"V57Tb\">\u7b2c\u4e00\u6b65&#xff1a;\u8ba1\u7b97token<\/h5>\n<p id=\"u368857f2\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"444\" id=\"ueed2a57d\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725043302-6a643c7e59812.png\" width=\"1383\" \/><\/p>\n<h5 id=\"mIpQD\">\u7b2c\u4e8c\u6b65&#xff1a;\u6784\u9020\u653b\u51fb\u8bf7\u6c42<\/h5>\n<h5 id=\"rQOtG\"><\/h5>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"442\" id=\"ua9b9377d\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725043302-6a643c7e897e8.png\" width=\"1383\" \/><\/p>\n<p id=\"u227b4037\">\n<h3 id=\"QKrbf\">impossible<\/h3>\n<p id=\"u3fe33bd1\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"164\" id=\"u6a0fc807\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725043302-6a643c7ebcf46.png\" width=\"855\" \/><\/p>\n<p id=\"u2c966b4c\">\u4f60\u6c38\u8fdc\u4e0d\u80fd\u4fe1\u4efb\u4efb\u4f55\u6765\u81ea\u7528\u6237\u7684\u4e1c\u897f&#xff0c;\u4e5f\u65e0\u6cd5\u963b\u6b62\u7528\u6237\u7be1\u6539\u5b83&#xff0c;\u56e0\u6b64\u4e0d\u5b58\u5728&#034;\u4e0d\u53ef\u80fd&#034;\u7ea7\u522b<\/p>\n<p id=\"u36e1ddea\">\n<p id=\"u5a79c7d7\">\n<p id=\"uc1f90ac0\">DVWA\u9776\u573a\u7684\u6700\u540e\u4e00\u4e2a\u5173\u5361\u5728\u5c4f\u5e55\u4e0a\u5f39\u51fa&#034;Success&#034;\u63d0\u793a\u7684\u90a3\u4e00\u523b&#xff0c;\u6211\u77e5\u9053\u8fd9\u6bb5\u77ed\u6682\u5374\u5145\u5b9e\u7684Web\u5b89\u5168\u63a2\u7d22\u4e4b\u65c5\u8fce\u6765\u4e86\u5c3e\u58f0\u3002\u56de\u9996\u8fd9\u6bb5\u5b66\u4e60\u7684\u65e5\u65e5\u591c\u591c&#xff0c;\u4ece\u6700\u521d\u9762\u5bf9\u6f0f\u6d1e\u65f6\u7684\u832b\u7136\u65e0\u63aa&#xff0c;\u5230\u5982\u4eca\u80fd\u591f\u4ece\u5bb9\u5206\u6790\u4ee3\u7801\u3001\u6784\u9020\u653b\u51fb\u8f7d\u8377\u5e76\u63d0\u51fa\u9632\u5fa1\u65b9\u6848&#xff0c;\u5176\u4e2d\u7684\u6bcf\u4e00\u6b21\u7a81\u7834\u90fd\u79bb\u4e0d\u5f00\u8bb8\u591a\u4eba\u7684\u5e2e\u52a9\u4e0e\u652f\u6301<\/p>\n<p id=\"ua3c65338\">\u9996\u5148&#xff0c;\u6211\u8981\u7531\u8877\u611f\u8c22DVWA&#xff08;Damn Vulnerable Web Application&#xff09;\u9879\u76ee\u53ca\u5176\u5f00\u53d1\u8005\u56e2\u961f\u3002\u8fd9\u4e2a\u7531Digininja\u53d1\u8d77\u5e76\u6301\u7eed\u7ef4\u62a4\u7684\u5f00\u6e90\u9879\u76ee&#xff0c;\u4ee5\u5176\u7cbe\u5fc3\u8bbe\u8ba1\u7684\u6f0f\u6d1e\u73af\u5883\u548c\u5faa\u5e8f\u6e10\u8fdb\u7684\u56db\u7ea7\u96be\u5ea6\u4f53\u7cfb&#xff0c;\u4e3a\u6211\u8fd9\u6837\u7684Web\u5b89\u5168\u521d\u5b66\u8005\u642d\u5efa\u4e86\u4e00\u5ea7\u4ece\u7406\u8bba\u901a\u5f80\u5b9e\u8df5\u7684\u91d1\u8272\u6865\u6881\u3002\u4eceLow\u7ea7\u522b\u5c06\u5b89\u5168\u903b\u8f91\u8d64\u88f8\u88f8\u5730\u66b4\u9732\u5728\u5ba2\u6237\u7aef&#xff0c;\u5230Impossible\u7ea7\u522b\u5c06\u9a8c\u8bc1\u903b\u8f91\u6df1\u690d\u670d\u52a1\u5668\u7aef&#xff0c;DVWA\u4e0d\u4ec5\u662f\u6f0f\u6d1e\u7684\u9648\u5217\u9986&#xff0c;\u66f4\u662f\u4e00\u90e8\u6d3b\u751f\u751f\u7684\u5b89\u5168\u601d\u60f3\u6f14\u8fdb\u53f2\u3002\u6b63\u662f\u8fd9\u4e2a&#034;\u5728\u5371\u9669\u4e2d\u5b66\u4e60&#034;\u7684\u5e73\u53f0&#xff0c;\u8ba9\u6211\u6df1\u523b\u7406\u89e3\u4e86&#034;\u6c38\u8fdc\u4e0d\u8981\u4fe1\u4efb\u7528\u6237\u8f93\u5165&#034;\u8fd9\u6761Web\u5b89\u5168\u7684\u91d1\u79d1\u7389\u5f8b<\/p>\n<p id=\"ub2ae8058\">\u540c\u65f6&#xff0c;\u6211\u8981\u7279\u522b\u611f\u8c22\u4e92\u8054\u7f51\u4e0a\u65e0\u6570\u5f00\u6e90\u7684\u7f51\u7edc\u5b89\u5168\u793e\u533a\u4e0e\u77e5\u8bc6\u5206\u4eab\u8005\u3002Burp Suite\u7684\u5b98\u65b9\u6587\u6863\u3001\u5404\u5927\u5b89\u5168\u8bba\u575b\u4e2d\u524d\u8f88\u4eec\u7684\u5b9e\u6218\u7ecf\u9a8c\u4e0e\u8e29\u5751\u8bb0\u5f55&#xff0c;\u4ee5\u53caGitHub\u4e0a\u6570\u4e0d\u6e05\u7684Payload\u96c6\u5408\u4e0e\u7ed5\u8fc7\u6280\u5de7\u2014\u2014\u8fd9\u4e9b\u6563\u843d\u5728\u6570\u5b57\u4e16\u754c\u5404\u5904\u7684\u667a\u6167\u788e\u7247&#xff0c;\u5728\u6211\u6700\u9700\u8981\u6307\u5f15\u7684\u65f6\u523b\u70b9\u4eae\u4e86\u524d\u8def\u3002\u611f\u8c22\u90a3\u4e9b\u7d20\u672a\u8c0b\u9762\u5374\u6beb\u4e0d\u541d\u556c\u5206\u4eab\u77e5\u8bc6\u7684\u535a\u4e3b\u4e0e\u5b89\u5168\u4ece\u4e1a\u8005&#xff0c;\u662f\u4f60\u4eec\u7684\u65e0\u79c1\u7b51\u5c31\u4e86\u540e\u6765\u8005\u5b66\u4e60\u7684\u9636\u68af\u3002<\/p>\n<p id=\"u1ee9cf8b\">\u6211\u4e5f\u8981\u611f\u8c22\u8fd9\u6bb5\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u6bcf\u4e00\u4e2a&#034;\u6f0f\u6d1e&#034;\u672c\u8eab\u3002SQL\u6ce8\u5165\u6559\u4f1a\u6211&#xff0c;\u6700\u5371\u9669\u7684\u5f80\u5f80\u4e0d\u662f\u590d\u6742\u7684\u653b\u51fb\u624b\u6cd5&#xff0c;\u800c\u662f\u4e00\u4e2a\u672a\u88ab\u8f6c\u4e49\u7684\u5355\u5f15\u53f7&#xff1b;XSS\u5411\u6211\u8bc1\u660e&#xff0c;\u5b89\u5168\u9632\u5fa1\u4e0d\u80fd\u6b62\u6b65\u4e8e\u8f93\u5165\u8fc7\u6ee4&#xff0c;\u8f93\u51fa\u7f16\u7801\u540c\u6837\u4e0d\u53ef\u6216\u7f3a&#xff1b;\u800cJavaScript Attacks\u6a21\u5757\u5219\u7528\u6700\u7b80\u5355\u7684\u65b9\u5f0f\u5c55\u793a\u4e86\u90a3\u4e2a\u6700\u6df1\u523b\u7684\u9053\u7406\u2014\u2014\u6240\u6709\u6446\u5728\u5ba2\u6237\u7aef\u7684\u5b89\u5168\u63aa\u65bd&#xff0c;\u90fd\u4e0d\u8fc7\u662f\u9632\u541b\u5b50\u4e0d\u9632\u5c0f\u4eba\u7684\u88c5\u9970\u54c1\u3002\u611f\u8c22\u8fd9\u4e9b\u6f0f\u6d1e\u4ee5\u6700\u751f\u52a8\u7684\u65b9\u5f0f\u4e3a\u6211\u4e0a\u4e86\u4e00\u5802\u5802\u5b89\u5168\u4e4b\u8bfe\u3002<\/p>\n<p id=\"u50d698bf\">\u6211\u8981\u611f\u8c22\u672a\u6765\u7684\u81ea\u5df1\u548c\u6240\u6709\u6b63\u5728\u5b66\u4e60\u5b89\u5168\u7684\u670b\u53cb\u4eec\u3002DVWA\u53ea\u662f\u4e07\u91cc\u957f\u5f81\u7684\u7b2c\u4e00\u6b65&#xff0c;\u771f\u6b63\u5b89\u5168\u7684\u7cfb\u7edf\u9700\u8981\u5728\u5b9e\u6218\u4e2d\u5343\u9524\u767e\u70bc&#xff0c;\u771f\u6b63\u7684\u5b89\u5168\u5de5\u7a0b\u5e08\u9700\u8981\u5728\u653b\u9632\u5bf9\u6297\u4e2d\u6301\u7eed\u6210\u957f\u3002\u6211\u5c06\u5e26\u7740\u8fd9\u6bb5\u5b66\u4e60\u7ecf\u5386\u6c89\u6dc0\u4e0b\u7684\u6280\u672f\u3001\u601d\u7ef4\u4e0e\u656c\u754f\u4e4b\u5fc3&#xff0c;\u7ee7\u7eed\u5728\u8fd9\u4e2a\u5145\u6ee1\u6311\u6218\u4e0e\u9b45\u529b\u7684\u9886\u57df\u524d\u884c\u3002<\/p>\n<p id=\"uf376472a\">\u613f\u6211\u4eec\u90fd\u80fd\u7528\u6280\u672f\u8ba9\u8fd9\u4e2a\u4e16\u754c\u53d8\u5f97\u66f4\u52a0\u5b89\u5168<\/p>\n<p id=\"u7c4845a5\"><span style=\"color:#fe2c24\">peace and love<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript Attacks\u8868\u9762\u4e0a\u662f\u4e00\u4e2a\u4fee\u6539\\&#8221;\u77ed\u8bed&#xff08;phrase&#xff09;\u4f60\u8f93\u5165\u4e00\u6bb5\u6587\u5b57&#xff08;\u6bd4\u5982 ChangeMe&#xff09;\u2014\u2014\u70b9\u51fb Submit\u2014\u2014\u9875\u9762\u663e\u793a\\&#8221;\u4f60\u7684\u77ed\u8bed\u5df2\u66f4\u65b0\\&#8221;\u4f46\u5176\u771f\u6b63\u76ee\u7684\u5728\u4e8e\u544a\u8bc9\u6211\u4eec\\&#8221;\u628a\u6240\u6709\u5b89\u5168\u903b\u8f91\u90fd\u653e\u5728\u524d\u7aef JavaScript \u91cc\\&#8221;\u662f\u591a\u4e48\u5371\u9669\u7684\u4e8b\u60c5\u4e00\u4e2a\u6b63\u5e38\u7684 Web \u5e94\u7528&#xff0c;\u4fee\u6539\u7528\u6237\u6570\u636e\u65f6&#xff0c;\u5e94\u8be5\u7531\u670d\u52a1\u5668\u7aef\u5b8c\u6210\u9a8c\u8bc1&#xff0c;\u6d4f\u89c8\u5668\u53ea\u8d1f\u8d23\u63d0\u4ea4\u548c\u5c55\u793alow\u6e90\u7801\u5206\u6790&lt;?php<br \/>\n$pag<\/p>\n","protected":false},"author":2,"featured_media":82771,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[187,275,87,190,122],"topic":[],"class_list":["post-82780","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-javascript","tag-web","tag-87","tag-190","tag-122"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>DVWA\u9776\u573a\u2014\u2014JavaScript Attacks(\u524d\u7aef\u653b\u51fb) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/82780.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DVWA\u9776\u573a\u2014\u2014JavaScript Attacks(\u524d\u7aef\u653b\u51fb) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"JavaScript Attacks\u8868\u9762\u4e0a\u662f\u4e00\u4e2a\u4fee\u6539&quot;\u77ed\u8bed&#xff08;phrase&#xff09;\u4f60\u8f93\u5165\u4e00\u6bb5\u6587\u5b57&#xff08;\u6bd4\u5982 ChangeMe&#xff09;\u2014\u2014\u70b9\u51fb Submit\u2014\u2014\u9875\u9762\u663e\u793a&quot;\u4f60\u7684\u77ed\u8bed\u5df2\u66f4\u65b0&quot;\u4f46\u5176\u771f\u6b63\u76ee\u7684\u5728\u4e8e\u544a\u8bc9\u6211\u4eec&quot;\u628a\u6240\u6709\u5b89\u5168\u903b\u8f91\u90fd\u653e\u5728\u524d\u7aef JavaScript \u91cc&quot;\u662f\u591a\u4e48\u5371\u9669\u7684\u4e8b\u60c5\u4e00\u4e2a\u6b63\u5e38\u7684 Web \u5e94\u7528&#xff0c;\u4fee\u6539\u7528\u6237\u6570\u636e\u65f6&#xff0c;\u5e94\u8be5\u7531\u670d\u52a1\u5668\u7aef\u5b8c\u6210\u9a8c\u8bc1&#xff0c;\u6d4f\u89c8\u5668\u53ea\u8d1f\u8d23\u63d0\u4ea4\u548c\u5c55\u793alow\u6e90\u7801\u5206\u6790&lt;?php $pag\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/82780.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-25T04:33:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725043301-6a643c7d476eb.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/82780.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/82780.html\",\"name\":\"DVWA\u9776\u573a\u2014\u2014JavaScript Attacks(\u524d\u7aef\u653b\u51fb) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-25T04:33:03+00:00\",\"dateModified\":\"2026-07-25T04:33:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/82780.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/82780.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/82780.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DVWA\u9776\u573a\u2014\u2014JavaScript Attacks(\u524d\u7aef\u653b\u51fb)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DVWA\u9776\u573a\u2014\u2014JavaScript Attacks(\u524d\u7aef\u653b\u51fb) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/82780.html","og_locale":"zh_CN","og_type":"article","og_title":"DVWA\u9776\u573a\u2014\u2014JavaScript Attacks(\u524d\u7aef\u653b\u51fb) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"JavaScript Attacks\u8868\u9762\u4e0a\u662f\u4e00\u4e2a\u4fee\u6539\"\u77ed\u8bed&#xff08;phrase&#xff09;\u4f60\u8f93\u5165\u4e00\u6bb5\u6587\u5b57&#xff08;\u6bd4\u5982 ChangeMe&#xff09;\u2014\u2014\u70b9\u51fb Submit\u2014\u2014\u9875\u9762\u663e\u793a\"\u4f60\u7684\u77ed\u8bed\u5df2\u66f4\u65b0\"\u4f46\u5176\u771f\u6b63\u76ee\u7684\u5728\u4e8e\u544a\u8bc9\u6211\u4eec\"\u628a\u6240\u6709\u5b89\u5168\u903b\u8f91\u90fd\u653e\u5728\u524d\u7aef JavaScript \u91cc\"\u662f\u591a\u4e48\u5371\u9669\u7684\u4e8b\u60c5\u4e00\u4e2a\u6b63\u5e38\u7684 Web \u5e94\u7528&#xff0c;\u4fee\u6539\u7528\u6237\u6570\u636e\u65f6&#xff0c;\u5e94\u8be5\u7531\u670d\u52a1\u5668\u7aef\u5b8c\u6210\u9a8c\u8bc1&#xff0c;\u6d4f\u89c8\u5668\u53ea\u8d1f\u8d23\u63d0\u4ea4\u548c\u5c55\u793alow\u6e90\u7801\u5206\u6790&lt;?php $pag","og_url":"https:\/\/www.wsisp.com\/helps\/82780.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-25T04:33:03+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725043301-6a643c7d476eb.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/82780.html","url":"https:\/\/www.wsisp.com\/helps\/82780.html","name":"DVWA\u9776\u573a\u2014\u2014JavaScript Attacks(\u524d\u7aef\u653b\u51fb) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-25T04:33:03+00:00","dateModified":"2026-07-25T04:33:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/82780.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/82780.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/82780.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"DVWA\u9776\u573a\u2014\u2014JavaScript Attacks(\u524d\u7aef\u653b\u51fb)"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/82780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=82780"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/82780\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/82771"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=82780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=82780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=82780"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=82780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}