User-Details auslesen - Website X5 Hilfe - Die Helpsite

Direkt zum Seiteninhalt

Hauptmenü:

User-Details auslesen

Scripte > Attachment

Auslesen der wichtigsten User-Details mittels JavaScript

Mit diesem Script werden diverse Browser-Details, Computer- und Bildschirm-Informationen, Informationen über JavaScript, ActiveX und Cookies ausgelesen.
Es kann zwischen 30-60 Sekunden dauern, je nach Systemgeschwindigkeit. Das Script prüft fast alles, was mit Javascript realisierbar ist.
Sehr hilfreich für User, die z. B. in Foren Fragen zu Details erhalten und schnell beantworten müssen.


Navigator
AppCodeName:
AppName:
AppVersion:
UserPlatform:
Language:
UserAgent:
 
Window
Location - Hostname:
Location - Host:
Location - Href:
Location - Pathname:
Location - Port:
Location - Protocol:
 
Screen
Width:
Height:
avail Height:
avail Width:
Pixel Depth:
Colour Depth:
 
JavaScript / ActiveX / Cookies
JavaScript:
JScript:
VBScript:
ActiveX:
Cookies:
 
Weitere Details
 
Computer Info
href:
domain:
referrer:
title:
linkColor:
vlinkColor:
alinkColor:
bgColor:
cookie:
fgColor:
lastModified:
images:
links:
forms:
history:
frames:

Code für den HEAD-Bereich:

[Vor dem /HEAD|Bereich CSS]

<style type="text/css">
.gross { font-family: Tahoma; font-size: 14px; font-weight: bold; text-decoration: underline; color: #7C6031; }
table
{ font-family: Tahoma; font-size: 12px; color: #7C6031; font-weight: normal; line-height: 150%; }
</style>

Code für das HTML-Objekt:

[Objekt HTML]

<script language="JavaScript">
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
 if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr)); }
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;

while (i < clen) {
var j = i + alen;
 if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
 if (i == 0) break; }
 return null; }
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;

document.cookie = name + "=
" + escape (value) +
 ((expires == null) ? "
" : ("; expires=" + expires.toGMTString())) +
 ((path == null) ? "
" : ("; path=" + path)) +
 ((domain == null) ? "
" : ("; domain=" + domain)) +
 ((secure == true) ? "
; secure" : ""); }
var enabled="";
var exp = new Date();
exp.setTime(exp.getTime() + (60*1000));
SetCookie ('wannasomecookie', 1, exp);
enabled = GetCookie('wannasomecookie');
</script>

<script language="JavaScript">
function ppc()    
{return(navigator.appVersion.lastIndexOf('PPC') != -1 );}
function intel()
{return((navigator.appVersion.lastIndexOf('Intel') != -1) || (navigator.appVersion.lastIndexOf('; I') != -1));}
function mac()   
{return(navigator.appVersion.lastIndexOf('Mac') != -1 );}
function rhapsody()
{return(navigator.appVersion.lastIndexOf('Rhapsody') != -1 );}
function openstep()
{return(navigator.appVersion.lastIndexOf('OpenStep') != -1 );}
function nextos()
{return(navigator.appVersion.lastIndexOf('Next') != -1 );}
function linux()
{return(navigator.appVersion.lastIndexOf('Linux') != -1 );}
function os2()   
{return((navigator.appVersion.lastIndexOf('OS/2') != -1) || (navigator.appVersion.lastIndexOf('OS2') != -1));}
function win()   
{return(navigator.appVersion.lastIndexOf('Win') != -1 );}
function win95()
{return((navigator.appVersion.lastIndexOf('Windows 95') != -1) || (navigator.appVersion.lastIndexOf('Win95') != -1));}
function win98()
{return((navigator.appVersion.lastIndexOf('Windows 98') != -1) || (navigator.appVersion.lastIndexOf('Win98') != -1));}
function winNT()
{return((navigator.appVersion.lastIndexOf('Windows NT') != -1) || (navigator.appVersion.lastIndexOf('Windows NT') != -1));}
function irix()  
{return(navigator.appVersion.lastIndexOf('IRIX') != -1 );}
function aix()   
{return(navigator.appVersion.lastIndexOf('AIX') != -1 );}
function sunos()
{return(navigator.appVersion.lastIndexOf('SUNOS') != -1 );}
function solaris()
{return(navigator.appVersion.lastIndexOf('Solaris') != -1 ); }
</script>

<div align="center">
<table width="700">
<tr><td style="width: 150px;"></td><td style="width: 550px;"></td></tr>

<tr><td
class="gross">Navigator<br></td></tr>
<tr><td>AppCodeName:</td><td><script>document.writeln (navigator.appCodeName);</script></td></tr>
<tr><td>AppName:</td><td><script>document.writeln (navigator.appName);</script></td></tr>
<tr><td>AppVersion:</td><td><script>document.write (navigator.appVersion);</script></td></tr>
<tr><td>UserPlatform:</td><td><script language="javascript">
  dataBrowser: [ {
  prop: window.opera,
  identity: "Opera",
  versionSearch: "Version" },{
// note: no comma
  string: navigator.userAgent,
  subString: "MSIE",
  identity: "Explorer",
  versionSearch: "MSIE" } ];   
// note: no comma
system = navigator.appVersion;
 if (system.indexOf ("Win95") >= 0) {  document.write("Windows 95 Computer"); }
  else if (system.indexOf ("Win16") >= 0) { document.write("Windows 3.1 Computer"); }
  else if (system.indexOf ("WinNT") >= 0) { document.write("Windows NT Computer"); }
  else if (system.indexOf ("Windows NT 6.2") >= 0) { document.write("Windows NT 6.2 Computer"); }
  else if (system.indexOf ("Macintosh") >= 0) { document.write("Apple Macintosh"); }
  else if (system.indexOf ("(X") >= 0) { document.write("X-Windows Computer"); }
  else document.write("Unbekannter Computer (bekannter Fehler bei MSIE4.0)");
</script></td>
</tr>
<tr><td>Language:</td><td><script>document.writeln (navigator.language);</script></td></tr>
<tr><td>UserAgent:</td><td><script>document.writeln (navigator.userAgent);</script></td></tr>
<tr><td>&nbsp;</td></tr>

<tr><td class="gross">Window<br></td></tr>
<tr><td>Location - Hostname:</td><td><script>document.writeln (window.location.hostname);</script></td></tr>
<tr><td>Location - Host:</td><td><script>document.writeln (window.location.host);</script></td></tr>
<tr><td>Location - Href:</td><td><script>document.writeln (window.location.href);</script></td></tr>
<tr><td>Location - Pathname:</td><td><script>document.writeln (window.location.pathname);</script></td></tr>
<tr><td>Location - Port:</td><td><script>document.writeln (window.location.port);</script></td></tr>
<tr><td>Location - Protocol:</td><td><script>document.writeln (window.location.protocol);</script></td></tr>
<tr><td>&nbsp;</td></tr>

<tr><td class="gross">Screen<br></td></tr>
<tr><td>Width:</td><td><script>document.writeln (screen.width);</script></td></tr>
<tr><td>Height:</td><td><script>document.writeln (screen.height);</script></td></tr>
<tr><td>avail Height:</td><td><script>document.writeln (screen.availHeight);</script></td></tr>
<tr><td>avail Width:</td><td><script>document.writeln (screen.availWidth);</script></td></tr>
<tr><td>Pixel Depth:</td><td><script>document.writeln (screen.pixelDepth);</script></td></tr>
<tr><td>Colour Depth:</td><td><script>document.writeln (screen.colorDepth);</script></td></tr>
<tr><td>&nbsp;</td></tr>

<tr><td class="gross" colspan="2">JavaScript / ActiveX / Cookies<br></td></tr>
<tr><td>JavaScript:</td><td><script>document.write ("ja");</script></td></tr>
<tr><td>JScript:</td><td><script language="JScript">document.write ("Ja");</script></td></tr>
<tr><td>VBScript:</td><td><script language="VBScript">document.write ("Ja");</script></td></tr>
<tr><td><script language="JavaScript">
 Netsc=(navigator.appName=="Netscape" && navigator.appVersion.substring(0,1)>=3);
 Language=1;
</script></td>
</tr>
<tr>
<td>ActiveX:</td>
<form name="form">
<object id="Label1" width=96 height=24 classid="CLSID:978C9E23-D4B0-11CE-BF2D-00AA003F40D0">
<param name="Caption" value="ActiveX">
</object>
<script language="JavaScript">
  if (document.form.Label1) {    
// ActiveX Object is there
document.write("
<td>Ihr Browser unterstützt ActiveX!</td>") }
  if (!(document.form.Label1)) {
// ActiveX is not there
document.write("
<td>Ihr Browser unterstützt kein ActiveX!</td>") }
</script>
</form>
</tr>
<tr>
<td>Cookies:</td>
<script language="JavaScript">
  if (enabled==null) document.write("
<td>Cookies nicht erlaubt></td>");
  else document.write("
<td>Cookies erlaubt</td>");
</script>
</tr>
<tr><td>&nbsp;</td></tr>

<tr><td class="gross">Weitere Details</td></tr>
<tr><br></tr>
<script language="JavaScript">
 if (navigator.appName==
"Netscape") {
document.write("
<td>Browser innerwidth:<td>  "+innerWidth);
document.write("
<tr><td>Browser innerheight:<td> "+innerHeight);
document.write("
<tr><td>Doc height:<td> "+document.height);
document.write("
<tr><td>Doc width:<td> "+document.width);
document.write("
<tr><td>Platform:<td> "+navigator.platform);
document.write("
<tr><td>Language:<td> "+navigator.language);
document.write("
<tr><td>Security:<td> "+window.secure); }
 else {
document.write("
<td>Browser innerwidth:<td> "+document.body.offsetWidth);
document.write("
<tr><td>Browser innerheight:<td>  "+document.body.offsetHeight);
document.write("
<tr><td>Online?:<td> "+navigator.onLine);
document.write("
<tr><td>Cookie enabled?:<td> "+navigator.cookieEnabled);
document.write("
<tr><td>CPU-Class:<td> "+navigator.cpuClass);
document.write("
<tr><td>Language (system):<td>  "+navigator.systemLanguage);
document.write("
<tr><td>Language (user):<td>  "+navigator.userLanguage);
document.write("
<tr><td>Security:<td> "+document.security);
document.write("
<tr><td>file size:<td> "+document.fileSize);
document.write("
<tr><td>Creation date:<td> "+document.fileCreatedDate); }
</script></td>
</tr>
<tr><td>&nbsp;</td></tr>

<tr>
<td class="gross">Computer Info</td>
<td><script language="JavaScript">
  if (win98())    document.write("Sie benutzen Windows 98");
  if (win95())    document.write("Sie benutzen Windows 95");
  if (winNT())    document.write("Sie benutzen Windows NT");
  if (mac())      document.write("Sie benutzen a Macintosh");
  if (linux())    document.write("Sie benutzen Linux");
  if (nextos())   document.write("Sie benutzen NeXTStep");
  if (os2())      document.write("Sie benutzen OS/2");
  if (rhapsody()) document.write("Sie benutzen Rhapsody");
  if (openstep()) document.write("Sie benutzen OpenStep");
  if (irix())     document.write("Sie benutzen IRIX");
  if (sunos())    document.write("Sie benutzen SunOS");
  if (aix())      document.write("Sie benutzen AIX");
  if (ppc())      document.write(" mit einem PowerPC-Prozessor");
  if (intel())    document.write(" mit einem Intel Prozessor");
</script></td>
</tr>
<tr><td>href:</td><td><script>document.write(parent.location.href);</script></td></tr>
<tr><td>domain:</td><td><script>document.write(parent.document.domain);</script></td></tr>
<tr><td>referrer:</td><td><script>document.write(parent.document.referrer);</script></td></tr>
<tr><td>title:</td><td><script>document.write(parent.document.title);</script></td></tr>
<tr><td>linkColor:</td><td><script>document.write(parent.document.linkColor);</script></td></tr>
<tr><td>vlinkColor:</td><td><script>document.write(parent.document.vlinkColor);</script></td></tr>
<tr><td>alinkColor:</td><td><script>document.write(parent.document.alinkColor);</script></td></tr>
<tr><td>bgColor:</td><td><script>document.write(parent.document.bgColor);</script></td></tr>
<tr><td>cookie:</td><td><script>document.write(parent.document.cookie);</script></td></tr>
<tr><td>fgColor:</td><td><script>document.write(parent.document.fgColor);</script></td></tr>
<tr><td>lastModified:</td><td><script>document.write(parent.document.lastModified);</script></td>
</tr><tr><td>images:</td><td><script>document.write(parent.document.images.length);</script></td>
</tr><tr><td>links:</td><td><script>document.write(parent.document.links.length);</script></td>
</tr><tr><td>forms:</td><td><script>document.write(parent.document.forms.length);</script></td>
</tr><tr><td>history:</td><td><script>document.write(parent.window.history.length);</script></td>
</tr><tr><td>frames:</td><td><script>document.write(parent.window.frames.length);</script></td>
</tr>
</table>

</div>

Feedbacks zu ""

es gibt insgesamt 0 Kommentar(e)



Name*
Vorname
Kommentar*
Email *
Homepage
Telefon
Sicherheitscode *
 
Logo HTML5
Button Spenden

© 2009 - 2017




  Besucher Statistik
 » 16 Online
 » 78 Heute
 » 303 Woche
 » 2461 Monat
 » 66451 Jahr
 » 242751 Gesamt
Rekord: 1420 (10.04.2014)
Zurück zum Seiteninhalt | Zurück zum Hauptmenü