-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.php
40 lines (37 loc) · 944 Bytes
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* UltimateBotKiller - PHP Library For Block 99.99% of Malicious Bots.
*
* @author Alemalakra
* @version 1.0
*/
// Load class, and load it.
require('src/ultimatebotkiller.php');
$UBK = new Alemalakra\UltimateBotKiller\UBK();
// Check if post is set.
if ($UBK->validateForm()) {
echo 'Post validated without errors!';
}
// Encrypt JavaScript Code.
for ($i=0; $i < rand(3,10); $i++) {
if (isset($_s)) {
$tmp = new Packer($_s, 'Normal', true, false, true);
$tmp = $tmp->pack();
$_s = $tmp;
unset($tmp);
} else {
$_s = new Packer($UBK->getCode(), 'Normal', true, false, true);
$_s = $_s->pack();
$_s = $_j->ubk($_s);
}
}
?>
<center>
<br><br><br><br><br><br>
<form method="post">
Sample Input: <input type="text" name="someinput" value="Any form input" />
<?php echo $UBK->getInput($_s); ?>
<br>
<button type="submit">Submit Form POST</button>
</form>
</center>