
05.10.2009, 10:04
|
|
Новичок
Регистрация: 27.04.2008
Сообщений: 15
Провел на форуме: 154305
Репутация:
6
|
|
Скрипт сбора информации о пользователе.
Код:
<script type="text/javascript">
var browserId = '', b_id1 = '', b_id2 = '', userInf = '';
</script>
<script type="text/javascript">
var jsversion = '';
for (var i = 1; i < 10; i++) document.write('<' + 'script language="javascript1.' + i + '">jsversion = "' + i + '";<' + '/script>');
b_id1 += jsversion + ''; var b_chk = 'A';
</script>
<script type="text/vbscript">b_chk = "B"</script>
<script type="text/javascript">
b_id1 += b_chk; b_chk = 'B';
try {delete this} catch (E) {b_chk = 'A'}
b_id1 += b_chk; b_chk = 'B';
try {delete navigator} catch (E) {b_chk = 'A'}
b_id1 += b_chk; b_chk = '0';
if (typeof Window == 'function') {if (window instanceof Window) {b_chk = '1';}}
b_id1 += b_chk; b_chk = '0';
if (typeof Document == 'function') {if (document instanceof Document) {b_chk = '1'}}
b_id1 += b_chk; b_chk = '0';
if (typeof Navigator == 'function') {if (navigator instanceof Navigator) {b_chk = '1'}}
b_id1 += b_chk; b_chk = 'B';
try {var docwrite = document.write; docwrite('')} catch (E) {b_chk = 'A'}
b_id1 += b_chk;
b_chk = 'A';
try {eval('cons'+'t acons=true');} catch(e) {b_chk = 'B'}
b_id1 += b_chk;
</script>
<script type="text/javascript">
if (window.crypto) {if (window.crypto.alert) {b_id1 = b_id1 + '1'}} else {b_id1 = b_id1 + '0'}
</script>
<script type="text/javascript">
if (typeof window.onload == "function") {
var chkonload = window.onload.toString();
var isonloadanonymous = (chkonload.search('anonymous') != -1);
if (isonloadanonymous) {b_id1 += '2'} else {b_id1 += '1'}
} else {b_id1 += '0'}
var actxobj = (typeof ActiveXObject == "function") ? 'B' : 'A';
var gactxobj = (typeof GeckoActiveXObject == "function") ? 'A' : 'B';
b_id1 += actxobj + gactxobj;
</script>
<script type="text/javascript">
var dopBrowserInfo = new function (ie) {
var d = document, w = window;
this.ff = !!w.Iterator && !!d.addEventListener && /a/[-1] == 'a';
this.ff2 = this.ff && (function x(){})[-6] == 'x';
this.ff3 = !!d.getElementsByClassName && this.ff && (function x(){})[-5] == 'x';
this.ie = (ie && '\v' == 'v');
this.ie5 = this.ie && ie == 5;
this.ie6 = this.ie && (ie == 6 || (d.compatMode && d.all && !!d.readyState));
this.ie7 = this.ie && (ie == 7 && d.documentElement && typeof d.documentElement.style.maxHeight != "undefined");
this.ie8 = this.ie && (ie == 8 && !!d.querySelectorAll);
this.safari = /a/.__proto__ == '//';
this.chrome = /source/.test((/a/.toString + ''));
this.opera = (!ie && !!w.opera && w.opera.toString() === "[object Opera]" && /^function \(/.test([].sort));
var div = d.createElement('div'),
body = d.body;
div.innerHTML = '<' + 'style' + '>' + '#_t{display:none;}#_t[rel^="D"]{display:block;}' + '<' + '/style' + '>';
div.innerHTML += '<span id="_t" rel="Detect"></span>';
div.style.display = 'none';
body.appendChild(div);
var obj = d.getElementById('_t'),
stat = w.getComputedStyle ? w.getComputedStyle(obj, null).getPropertyValue("display") : obj.currentStyle ? obj.currentStyle.display : null;
this.css3 = (stat == "block");
body.removeChild(div);
this.result = new String();
this.result += (this.ff ? '1' : '0') + (this.ff2 ? '1' : '0') + (this.ff3 ? '1' : '0') + '.';
this.result += (this.ie ? '1' : '0') + (this.ie5 ? '1' : '0') + (this.ie6 ? '1' : '0') + (this.ie7 ? '1' : '0') + (this.ie8 ? '1' : '0') + '.';
this.result += (this.safari ? '1' : '0') + (this.chrome ? '1' : '0') + (this.opera ? '1' : '0') + (this.css3 ? '1' : '0');
}(0 /*@cc_on + (@_jscript_version * 10 % 10) @*/);
b_id2 = dopBrowserInfo.result;
delete dopBrowserInfo;
</script>
<script type="text/javascript">
if (window.screen.width && window.screen.height) {
userInf += window.screen.width + '*' + window.screen.height;
if (window.screen.colorDepth) userInf += '@' + window.screen.colorDepth;
} else userInf += 'undefined';
if (navigator.systemLanguage) userInf += ' ' + navigator.systemLanguage; else userInf += ' no';
if (navigator.browserLanguage) userInf += ' ' + navigator.browserLanguage; else userInf += ' no';
if (navigator.userLanguage) userInf += ' ' + navigator.userLanguage; else userInf += ' no';
if (navigator.javaEnabled()) userInf += ' yes'; else userInf += ' no';
</script>
<script type="text/javascript">
browserId = b_id1 + ' ' + b_id2 + ' ' + userInf;
document.write(browserId);
</script>
|
|
|