-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathdb.php
executable file
·90 lines (89 loc) · 2.58 KB
/
db.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
// put db-tools in root-directory of your server (temporary)
include_once( '../wp-load.php' );
if ( ! is_user_logged_in() ) {
?>
<p>You must be logged in to access this tool.</p>
<?php
} else {
?>
<p>
Incsub DB Tools<br/>
====================================================================<br/>
<a href="db.php">DB List</a> | <a href="db_sql.php">DB SQL</a> | <a href="db_servers.php">DB Servers</a> | <a href="db_array.php">DB Array</a> | <a href="md5.php">MD5</a><br/>
====================================================================
</p>
<form name="" id="" action="db.php" method="post">
<input type="hidden" name="process" value="true">
DB Name: <input type="text" name="db_name" value=""/> ex: yoursite_<br/>
<select name="option">
<option value="16">16</option>
<option value="256">256</option>
<option value="4096">4096</option>
</select>
<input type="submit" value="Submit" name="submit"/>
</form>
<?php
if ( $_POST['process'] == true ) {
echo '====================================================================<br />';
$hash_list[0] = '0';
$hash_list[1] = '1';
$hash_list[2] = '2';
$hash_list[3] = '3';
$hash_list[4] = '4';
$hash_list[5] = '5';
$hash_list[6] = '6';
$hash_list[7] = '7';
$hash_list[8] = '8';
$hash_list[9] = '9';
$hash_list[10] = 'a';
$hash_list[11] = 'b';
$hash_list[12] = 'c';
$hash_list[13] = 'd';
$hash_list[14] = 'e';
$hash_list[15] = 'f';
?>
<form>
<textarea cols="73" rows="50">
<?php
//==============================================//
foreach ( $hash_list as $hash_1 ) {
$tmp_hash_value = '';
$tmp_hash_value = $tmp_hash_value . $hash_1;
//========================//
if ( $_POST['option'] == '16' ) {
echo esc_html( $_POST['db_name'] ) . $tmp_hash_value . "\n";
} else {
//========================//
foreach ( $hash_list as $hash_2 ) {
if ( $_POST['option'] == '256' ) {
//========================//
$tmp_hash_value_2 = $tmp_hash_value . $hash_2;
echo esc_html( $_POST['db_name'] ) . $tmp_hash_value_2 . "\n";
//========================//
} else {
//========================//
$tmp_hash_value_2 = $tmp_hash_value . $hash_2;
foreach ( $hash_list as $hash_3 ) {
//========================//
$tmp_hash_value_3 = $tmp_hash_value_2 . $hash_3;
echo esc_html( $_POST['db_name'] ) . $tmp_hash_value_3 . "\n";
//========================//
}
//========================//
}
}
//========================//
}
//========================//
}
//==============================================//
?>
</textarea>
</form>
<?php
}
?>
<?php
}
?>