-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathkill.php
More file actions
64 lines (55 loc) · 1.7 KB
/
kill.php
File metadata and controls
64 lines (55 loc) · 1.7 KB
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
<?php
// SQLMAP Scan Task Killer
@set_time_limit(0);
@session_start();
$sess = session_id();
if(!$sess) {
header("Location: /sqlmap/index.php");
}
include_once("header.php");
if(isset($_GET['id'])) {
$id = $_GET['id'];
include("./inc/SQLMAPClientAPI.class.php");
$sqlmap = new SQLMAPClientAPI();
if(!$sqlmap->stopScan($id)) {
if(!$sqlmap->killScan($id)) {
// Problem Stopping/Killing Scan Task, bad id maybe?
?>
<div class="epic_fail" align="center">
<p style="font-size:26px">Epic Failure Stopping Scan!</p><br />
<p style="font-size:20px">
Unknown problem encountered trying to kill ScanID#<?php echo htmlentities($id, ENT_QUOTES, 'UTF-8'); ?>!<br />
Please follow up with the admin for further assistance....
<br /><br />
</p>
<p style="font-size:16px">
Redirecting back to form so you can try again....<br />
</p>
</div>
<?php
} else {
// Scan Forcefully Killed
?>
<div class="epic_fail" align="center">
<p style="font-size:26px">Scan Forcefully Killed!</p><br />
<p style="font-size:16px">
Redirecting back to form so you can try again....<br />
</p>
</div>
<?php
}
} else {
// Scan Gracefully Stopped
?>
<div class="epic_fail" align="center">
<p style="font-size:26px">Scan Gracefully Stopped!</p><br />
<p style="font-size:16px">
Redirecting back to form so you can try again....<br />
</p>
</div>
<?php
}
}
echo "<script>setTimeout('redirectHome()', 5000);</script>";
include_once("footer.php");
?>