Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathGetdataReport.Plugin.php
More file actions
Latest commit
147 lines (133 loc) · 8.49 KB
/
Copy pathGetdataReport.Plugin.php
File metadata and controls
147 lines (133 loc) · 8.49 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
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
<?php
/*
Author : [f][t][@inbox.ru] \ RedToor
Project: https://github.com/powerscript/GetDataReport
Date : 18/10/2016
Version: 1.0.3
GetDataReport PLUGIN version
*/
error_reporting(0);
error_log(0);
$HTTP_S = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://';
$path = dirname(__FILE__);
$position = basename($path);
$real_path = $HTTP_S.$_SERVER['HTTP_HOST']."/".$position."/".basename(__FILE__);
define("REAL", $real_path);
class GetDataPlugin{
functionos(){
$system="unknow";
$os=array(
'/Windows NT 10.0/i' => 'Windows 10' , '/windows nt 6.4/i' => 'Windows 10' , '/windows nt 6.3/i' => 'Windows 8.1',
'/windows nt 6.2/i' => 'Windows 8' , '/windows nt 6.1/i' => 'Windows 7' , '/windows nt 6.0/i' => 'Windows Vista',
'/windows nt 5.2/i' => 'Windows Server 2003/XP', '/windows nt 5.1/i' => 'Windows XP' , '/windows me/i' => 'Windows ME',
'/windows nt 5.0/i' => 'Windows 2000' , '/win98/i' => 'Windows 98' , '/win95/i' => 'Windows 95',
'/windows nt 4.0/i' => 'Windows NT 4.0' , '/windows nt 3.51/i' => 'Windows NT 3.51', '/windows nt 3.5/i' => 'Windows NT 3.5',
'/windows nt 3.1/i' => 'Windows NT 3.1' , '/windows nt 3.11/i' => 'Windows 3.11' , '/linux/i' => 'Linux',
'/android/i' => 'Android' , '/android 1.6/i' => 'Android 1.6' , '/android 2.0/i' => 'Android 2.0',
'/android 2.0.1/i' => 'Android 2.0.1' , '/android 2.1/i' => 'Android 2.1' , '/android 2.2/i' => 'Android 2.2',
'/android 2.2.1/i' => 'Android 2.2.1' , '/android 2.2.2/i' => 'Android 2.2.2', '/android 2.2.3/i' => 'Android 2.2.3',
'/android 2.2.4/i' => 'Android 2.2.4' , '/android 2.3/i' => 'Android 2.3', '/android 2.3.0/i' => 'Android 2.0.3',
'/android 2.3.1/i' => 'Android 2.3.1' , '/android 2.3.3/i' => 'Android 2.3.3', '/android 2.3.4/i' => 'Android 2.3.4',
'/android 2.3.5/i' => 'Android 2.3.5' , '/android 2.3.6/i' => 'Android 2.3.6', '/android 2.3.7/i' => 'Android 2.3.7',
'/android 3.0/i' => 'Android 3.0' , '/android 3.1/i' => 'Android 3.1', '/android 3.2/i' => 'Android 3.1',
'/android 3.2.1/i' => 'Android 3.2.1' , '/android 3.2.2/i' => 'Android 3.2.2', '/android 3.2.3/i' => 'Android 3.2.3',
'/android 3.2.4/i' => 'Android 3.2.4' , '/android 4.0/i' => 'Android 4.0', '/android 4.0.0/i' => 'Android 4.0.0',
'/android 4.0.1/i' => 'Android 4.0.1' , '/android 4.0.2/i' => 'Android 4.0.2', '/android 4.0.3/i' => 'Android 4.0.3',
'/android 4.0.4/i' => 'Android 4.0.4' , '/android 4.2.1/i' => 'Android 4.2.1', '/android 4.2.2/i' => 'Android 4.2.2',
'/android 4.3/i' => 'Android 4.3' , '/android 4.4/i' => 'Android 4.4', '/android 4.4.1/i' => 'Android 4.4.1',
'/android 4.4.2/i' => 'Android 4.4.2' , '/android 4.4.3/i' => 'Android 4.4.3', '/android 4.4.4/i' => 'Android 4.4.4',
'/android 5.0/i' => 'Android 5.0' , '/macintosh|mac os x/i' => 'Mac OS X', '/mac_powerpc/i' => 'Mac OS 9',
'/ubuntu/i' => 'Ubuntu' , '/SymbianOS/i' => 'SymbianOS', '/iphone/i' => 'iPhone',
'/ipod/i' => 'iPod' , '/ipad/i' => 'iPad', '/tablet os/i' => 'Table OS',
'/blackberry/i' => 'BlackBerry' , '/bb/i' => 'BlackBerry', '/webos/i' => 'Mobile');
foreach($osas$regex => $value){if(preg_match($regex, $_SERVER['HTTP_USER_AGENT'])){$system=$value;}}return$system;}
functionbrowser(){
$navegator="unknow";
$browser=array(
'/msie/i' => 'Internet Explorer','/firefox/i' => 'Firefox' , '/safari/i' => 'Safari',
'/chrome/i' => 'Chrome' ,'/opera/i' => 'Opera' , '/netscape/i' => 'Netscape',
'/maxthon/i' => 'Maxthon' ,'/BrowserNG/i' => 'BrowserNG', '/konqueror/i' => 'Konqueror',
'/ie/i' => 'Internet Explorer','/mobile/i' => 'Handheld Browser');
foreach($browseras$regex => $value){if(preg_match($regex, $_SERVER['HTTP_USER_AGENT'])){$navegator=$value;}}return$navegator;}
functionarchitecture(){
$arqui="32Bits";
$architecture=array(
'/x86_64/i' => '64Bits', '/amd64/i' => '64Bits',
'/x86-64/i' => '64Bits', '/x64_64/i' => '64Bits',
'/x64/i' => '64Bits', '/WOW64/i' => '64Bits');
foreach($architectureas$regex => $value){if(preg_match($regex, $_SERVER['HTTP_USER_AGENT'])){$arqui=$value;}}return$arqui;}
functiondevice($unix){
$device="Computer";
$unix=strtoupper($unix);
if(strstr($unix, 'ANDROID')==true) {$device="Phone";}
elseif(strstr($unix, 'IPHONE')==true) {$device="Phone";}
elseif(strstr($unix, 'BLACKBERRY')==true) {$device="Phone";}
elseif(strstr($unix, 'WEBOS')==true) {$device="Phone";}
elseif(strstr($unix, 'SYMBIAOS')==true) {$device="Phone";}
elseif(strstr($unix, 'TABLET')==true) {$device="Tablet";}
elseif(strstr($unix, 'IPAD')==true) {$device="Tablet";}
elseif(strstr($unix, 'IPOD')==true) {$device="Portable media players ";}return$device;}
functiongeo($what){
$g=unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$_SERVER['REMOTE_ADDR'].''));
switch ($what) {
case'country':
return$g['geoplugin_countryName'];
break;
case'region':
return$g['geoplugin_region'];
break;
case'city':
return$g['geoplugin_city'];
break;
case'logitude':
return$g['geoplugin_longitude'];
break;
case'latitude':
return$g['geoplugin_latitude'];
break;
case'continent':
return$g['geoplugin_continentCode'];
break;
case'currency':
return$g['geoplugin_currencyCode'];
break;
}
}
functionjava($get){
$data='<script type="text/javascript">';
switch ($get) {
case'height':
$data.='document.write(window.screen.height);</script>';
break;
case'width':
$data.='document.write(window.screen.width);</script>';
break;
case'javaenabled':
$data.='if(navigator.javaEnabled()==true){document.write("true")}else{document.write("false")}</script>';
break;
case'cookieenabled':
$data.='if(navigator.cookieEnabled==true){document.write("true")}else{document.write("false")}</script>';
break;
}
return$data;
}
functionheight(){returnfile_get_contents(REAL."?execute=height");}
functionwidth(){returnfile_get_contents(REAL."?execute=width");}
functionjavaenabled(){returnfile_get_contents(REAL."?execute=javaenabled");}
functioncookieenabled(){returnfile_get_contents(REAL."?execute=cookieenabled");}
functionip(){
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ipAddresses = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
returntrim(end($ipAddresses));
}else {
return$_SERVER['REMOTE_ADDR'];
}
}
functionlanguage(){return$_SERVER['HTTP_ACCEPT_LANGUAGE'];}
functionprovetor(){returngethostbyaddr($_SERVER['REMOTE_ADDR']);}
functionagent(){return$_SERVER['HTTP_USER_AGENT'];}
functionreferer(){ return$_SERVER['HTTP_REFERER'];}
functiongetdate(){returndate("Y/m/d g:ia");}
}
if($_GET['execute']!=""){$getjava = newGetDataPlugin();print$getjava->java($_GET['execute']);}
?>