-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathall_buckets.php
93 lines (71 loc) · 1.45 KB
/
all_buckets.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
91
92
93
<!DOCTYPE html>
<html>
<title>All Buckets</title>
<style>
a {
color: inherit;
text-decoration: none;
}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 2px solid #0dbce7;
text-align: left;
padding: 8px;
}
.newcls{
background-color:#0dbce7;
border: #2e6da4;
font-family: Arial, Helvetica, sans-serif;
font-size: 15px;
color: #fff;
letter-spacing: 1px;
padding: 8px 12px;
font-size: 14px;
font-weight: normal;
border-radius: 4px;
line-height: 1.5;
text-decoration:none
}
</style>
<div class="newcls">
<h1> All Buckets | <a href=../manual_check.php>Check Manually</a></h1></div>
<br>
<table border=1>
<tr>
<th>SN</th>
<th>Bucket Name</th>
<th>Source URL</th>
<th>IP</th>
<th>POC</th>
<th>VULNERABLE</th>
</tr>
<?php
class MyDB extends SQLite3 {
function __construct() {
$this->open('bucky.db');
}
}
$db = new MyDB();
if(!$db) {
echo $db->lastErrorMsg();
} else {
}
$sql =<<<EOF
SELECT * from BUCKY;
EOF;
$ret = $db->query($sql);
while($row = $ret->fetchArray(SQLITE3_ASSOC) ) {
echo "<tr>";
echo "<td>". $row['ID'] . "</td>";
echo "<td>". $row['BUCKETNAME'] . "</td>";
echo "<td>". $row['URL'] ."</td>";
echo "<td>". $row['IP'] ."</td>";
echo "<td><a>". $row['POC'] ."</a></td>";
echo "<td>".$row['VULNERABLE'] ."</td>";
}
$db->close();
?>