-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
162 lines (140 loc) · 3.51 KB
/
index.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?php
// Init session
session_start();
// Include db config
require_once 'db.php';
if(!isset($_SESSION['email']) || empty($_SESSION['email'])){
header('location: login.php');
exit;
}
?>
<?php
// Get Logs
$query = "SELECT id, ip, country,header,parameter,datex, timex FROM xssrf_logs";
try {
$stmt = $pdo->prepare($query);
$stmt->execute();
}
catch(PDOException $ex) {
die("Fuck Man: " . $ex->getMessage());
}
$rows = $stmt->fetchAll();
?>
<?php
if(isset($_GET['delete_logs'])){
$sql = 'TRUNCATE TABLE xssrf_logs';
$stmt = $pdo->prepare($sql);
if($stmt->execute()){
echo '<script type="text/javascript">';
echo 'window.location.replace("index.php")';
echo '</script>';
} else {
echo '<script type="text/javascript">';
echo 'alert("Not Deleted")';
echo '</script>';
}
}
unset($pdo);
?>
<html>
<head>
<title>B-XSSRF - Swiss Knife</title>
</head>
<body>
<style>
body {
background-color:#FCFCFC; /*#EFEFEF*/
color: #000;
font-family: monospace, courier;
font-size: 12px;
margin: 0px 0px;
}
table, th, td {
border: 1px solid #555;
border-collapse: collapse;
}
th, td {
padding: 5px;
text-align: left;
}
a {color: #001f3f;}
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 7px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 10px;
margin: 0px 0px;
cursor: pointer;
}
.button1 {border-radius: 2px;}
.footer {
background-color: #555;
color:#fff;
margin-top: 10 px;
padding-top: 10px;
padding-bottom: 10px;
position: absolute;
left: 400 ; right: 400; bottom: 0;
height:[footer-height]
}
.avatar {
display: block;
border-radius: 200px;
box-sizing: border-box;
border: 2px solid #111111;
}
</style>
<center>
<br/>
<table width="560px">
<tr>
<td width="160px" bgcolor="#F8F8FF" nowrap>
<div style="margin-bottom: 6px;">
<img class="avatar" src="img/logo.png" width=32>
<div style="margin-top: -25px; padding-left: 40px;color: #000;"><b>B-XSSRF</b></div>
</div>
</td>
<td bgcolor="#F8F8FF" nowrap>
<div style="padding-left:4px; padding-bottom:0px;" >
<a href="index.php">DASHBOARD</a> |
<a href="" onClick="location.href=location.href">REFRESH</a> |
<a href="?delete_logs">DELETE</a> |
<a href="settings.php">SETTINGS</a> |
<a href="javascript:alert('I ♥ Hacking')">ABOUT</a> |
<a href="logout.php">LOGOUT</a> |
</div>
</td>
</tr>
</table>
<h3><p>My Swiss Knife For : Blind XSS, XXE & SSRF</p></h3>
<table width="586px">
<tr>
<th bgcolor="#40E0D0">NO</th>
<th bgcolor="#40E0D0">IP</th>
<th bgcolor="#40E0D0">COUNTRY</th>
<th bgcolor="#40E0D0">HEADER</th>
<th bgcolor="#40E0D0">PARAMETER</th>
<th bgcolor="#40E0D0">DATE</th>
<th bgcolor="#40E0D0">TIME</th>
</tr>
<tr>
<?php foreach($rows as $row): ?>
<td><?php echo $row['id']; ?></td>
<td><?php echo $row['ip']; ?></td>
<td><?php echo $row['country']; ?></td>
<td><?php echo $row['header']; ?></td>
<td><?php echo $row['parameter']; ?></td>
<td><?php echo $row['datex']; ?></td>
<td><?php echo $row['timex']; ?></td>
</tr>
<?php endforeach; ?>
</table>
<br/>
<br/>
</center>
</body>
</html>