-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwordpot-ip.php
executable file
·142 lines (129 loc) · 6.01 KB
/
wordpot-ip.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<title>Wordpot-Frontend | Fast Visualization for your Wordpot Honeypot Stats</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="imagetoolbar" content="no"/>
<link rel="stylesheet" href="styles/layout.css" type="text/css"/>
<link rel="stylesheet" href="styles/tablesorter.css" type="text/css"/>
<script type="text/javascript" src="scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.tablesorter.js"></script>
<script type="text/javascript" src="scripts/jquery.tablesorter.pager.js"></script>
</head>
<body id="top">
<div class="wrapper">
<div id="header">
<h1><a href="index.php">Wordpot-Frontend</a></h1>
<br/>
<p>Fast Visualization for your Wordpot Honeypot Stats</p>
</div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper">
<div id="topbar">
<div class="fl_left">Version: 1.0 | Website: <a href="https://github.com/GovCERT-CZ/Wordpot-Frontend">github.com/GovCERT-CZ/Wordpot-Frontend</a>
</div>
<br class="clear"/>
</div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper">
<div id="topnav">
<ul class="nav">
<li><a href="index.php">Homepage</a></li>
<li><a href="wordpot-frontend.php">Wordpot-Frontend</a></li>
<li><a href="wordpot-input.php">Wordpot-Input</a></li>
<li class="active"><a href="wordpot-ip.php">Wordpot-Ip</a></li>
<li><a href="wordpot-geo.php">Wordpot-Geo</a></li>
<li class="last"><a href="gallery.php">Graph Gallery</a></li>
</ul>
<div class="clear"></div>
</div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper">
<div class="container">
<div class="whitebox">
<!-- ####################################################################################################### -->
<h2>IP activity gathered from the honeypot system</h2>
<hr/>
<?php
# Author: ikoniaris, s0rtega
# Modifications: standa4
require_once('config.php');
require_once(DIR_ROOT . '/class/WordpotIP.class.php');
$WordpotIP = new WordpotIP();
//-----------------------------------------------------------------------------------------------------------------
//IP Activity
//-----------------------------------------------------------------------------------------------------------------
$WordpotIP->printOverallIpActivity();
//-----------------------------------------------------------------------------------------------------------------
//END
//-----------------------------------------------------------------------------------------------------------------
?>
<!-- ####################################################################################################### -->
<div id="extended-ip-info"></div>
<div class="clear"></div>
</div>
</div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper">
<div id="copyright">
<p class="fl_left">Copyright © 2015 - All Rights Reserved - <a
href="https://github.com/GovCERT-CZ/Wordpot-Frontend">Wordpot-Frontend</a></p>
<p class="fl_right">Thanks to <a href="http://bruteforce.gr/kippo-graph" title="Kippo-Graph">Kippo-Graphs</a> and <a href="http://www.os-templates.com/" title="Free Website Templates">OS Templates</a></p>
<br class="clear"/>
</div>
</div>
<script type="text/javascript" src="scripts/superfish.js"></script>
<script type="text/javascript">
jQuery(function () {
jQuery('ul.nav').superfish();
});
</script>
<script type="text/javascript">
$(document).ready(function () {
$("#Overall-IP-Activity")
.tablesorter({sortList: [
[3, 1]
], widthFixed: true, widgets: ['zebra']})
.tablesorterPager({container: $("#pager1")});
});
</script>
<script type="text/javascript">
function getIPinfo(ip) {
$.ajax({
type: "POST",
url: 'include/wordpot-ip.ajax.php',
data: 'ip=' + ip,
complete: function (response) {
$('#extended-ip-info').html(response.responseText);
$("#IP-attemps")
.tablesorter({widthFixed: true, widgets: ['zebra']})
.tablesorterPager({container: $("#pager2")});
$("#IP-authors")
.tablesorter({widthFixed: true, widgets: ['zebra']})
.tablesorterPager({container: $("#pager3")});
$("#IP-filenames")
.tablesorter({widthFixed: true, widgets: ['zebra']})
.tablesorterPager({container: $("#pager4")});
$("#IP-logins")
.tablesorter({widthFixed: true, widgets: ['zebra']})
.tablesorterPager({container: $("#pager5")});
$("#IP-plugins")
.tablesorter({widthFixed: true, widgets: ['zebra']})
.tablesorterPager({container: $("#pager6")});
$("#IP-themes")
.tablesorter({widthFixed: true, widgets: ['zebra']})
.tablesorterPager({container: $("#pager7")});
},
error: function () {
$('#output').html('Bummer: there was an error!');
}
});
return false;
}
</script>
</body>
</html>