what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

user.htm

user.htm
Posted Sep 30, 1999
Authored by init0

Snippet of javascript which profiles environment variables/machine information.

tags | javascript
SHA-256 | d12aabfc3e94998a784ef367dda18d415cdd962ca055b4b7601e8f3a4470ec99

user.htm

Change Mirror Download
<html>
<head>
<title></title>
<script language="JavaScript">
<!--
// by init0@gmx.net
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">
//<!--
/* Netscape reports the processor type, Internet Explorer doesn't */
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>
</head>
<link rel="stylesheet" href="hp_mm.css" type="text/css">
<body background="" bgcolor="Black" text="Green" link="#003194" vlink="#003194"
bgproperties="FIXED">

<div align="center"><font size="+2"><b>your computer:</b></font></div>

<ol>
<table cellspacing="2" cellpadding="2">

<font size="-1">
<tr>
<td><font face="" size="-1"><b>Navigator</b><br></font></td>
<td><font face="" size="-1"></font></td>
</tr>
<tr>
<td><font face="" size="-1">AppCodeName : </font></td>
<td><font face="" size="-1"><script>document.writeln (navigator.appCodeName);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">AppName : </font></td>
<td><font face="" size="-1"><script>document.writeln (navigator.appName);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">AppVersion : </font></td>
<td><font face="" size="-1"><script>document.writeln (navigator.appVersion);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">UserPlatform : </font></td>
<td><font face="" size="-1">
<script language="javascript">
<!--
system = navigator.appVersion;
if (system.indexOf ("Win95") >= 0) {
document.write("<font face='' size='-1'>Windows 95 Computer</font>");
}
else if (system.indexOf ("Win16") >= 0) {
document.write("<font face='' size='-1'>Windows 3.1 Computer</font>");
}
else if (system.indexOf ("WinNT") >= 0) {
document.write("<font face='' size='-1'>Windows NT Computer</font>");
}
else if (system.indexOf ("Macintosh") >= 0) {
document.write("<font face='' size='-1'>Apple Macintosh</font>");
}
else if (system.indexOf ("(X") >= 0) {
document.write("<font face='' size='-1'>X-Windows Computer</font>");
}
else document.write("<font face='' size='-1'>unknown computer or MSIE
failure</font>");
//-->
</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">Language : </font></td>
<td><font face="" size="-1"><script>document.writeln (navigator.language);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">UserAgent : </font></td>
<td><font face="" size="-1"><script>document.writeln (navigator.userAgent);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">&nbsp;</font></td>
<td><font face="" size="-1"></font></td>
</tr>
<tr>
<td><font face="" size="-1"><b>Window</b><br></font></td>
<td><font face="" size="-1"></font></td>
</tr>
<tr>
<td><font face="" size="-1">Location - Hostname : </font></td>
<td><font face="" size="-1"><script>document.writeln (window.location.hostname);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">Location - Host : </font></td>
<td><font face="" size="-1"><script>document.writeln (window.location.host);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">Location - Href : </font></td>
<td><font face="" size="-1"><script>document.writeln (window.location.href);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">Location - Pathname : </font></td>
<td><font face="" size="-1"><script>document.writeln (window.location.pathname);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">Location - Port : </font></td>
<td><font face="" size="-1"><script>document.writeln (window.location.port);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">Location - Protocol : </font></td>
<td><font face="" size="-1"><script>document.writeln (window.location.protocol);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">&nbsp;</font></td>
<td><font face="" size="-1"></font></td>
</tr>
<tr>
<td><font face="" size="-1"><b>Screen</b><br></font></td>
<td><font face="" size="-1"></font></td>
</tr>
<tr>
<td><font face="" size="-1">Width : </font></td>
<td><font face="" size="-1"><script>document.writeln (screen.width);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">Height : </font></td>
<td><font face="" size="-1"><script>document.writeln (screen.height);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">avail Height : </font></td>
<td><font face="" size="-1"><script>document.writeln (screen.availHeight);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">avail Width : </font></td>
<td><font face="" size="-1"><script>document.writeln (screen.availWidth);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">Pixel Depth : </font></td>
<td><font face="" size="-1"><script>document.writeln (screen.pixelDepth);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">Colour Depth : </font></td>
<td><font face="" size="-1"><script>document.writeln (screen.colorDepth);</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">&nbsp;</font></td>
<td><font face="" size="-1"></font></td>
</tr>
<tr>
<td><font face="" size="-1"><b>JavaScript / ActiveX / Cookies</b><br></font></td>
<td><font face="" size="-1"></font></td>
</tr>
<tr>
<td><font face="" size="-1">JavaScript : </font></td>
<td><font face="" size="-1"><script>document.writeln ("1.0");</script></font></td></tr></font>

<tr>
<td><font face="" size="-1">JavaScript : </font></td>
<td><font face="" size="-1"><script>document.writeln ("1.1");</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">JavaScript : </font></td>
<td><font face="" size="-1"><script>document.writeln ("1.2");</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">JScript : </font></td>
<td><font face="" size="-1"><script language="JScript">document.write ("Ja");</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">VBScript : </font></td>
<td><font face="" size="-1"><script language="VBScript">document.write "Ja"</script></font></td>
</tr>
<tr>
<td><font face="" size="-1">&nbsp;</font></td>
<td><font face="" size="-1">
<script language="JavaScript">
<!--
Netsc=(navigator.appName=="Netscape" && navigator.appVersion.substring(0,1)>=3);
Language=1;
//-->
</script>

<script language="JavaScript1.1">
<!--
Language=1.1;
//-->
</script>

<script language="JavaScript1.2">
<!--
if(Netsc) Language=1.2; // fucking MSIE simulates understanding of JavaScript1.2, but doesn't!!!!!!!
else document.write("your browser does not support JavaScript 1.2")
//-->
</script>

<script language="JavaScript1.3">
<!--
Language=1.3;
//-->
</script>
</font></td>
</tr>
<tr>
<td><font face="" size="-1">ActiveX: </font></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><font face='' size='-1'>ohoh,
your browser supports ActiveX!</font></td>")}
if
(!(document.form.Label1)) //ActiveX is not there

{document.write("<td><font face='' size='-1'>
ActiveX not availble!</font></td>")}
//-->
</script>
</form>

</tr>
<tr>
<td><font face="" size="-1">Cookies: </font></td>
<script language="JavaScript">
<!--
if (enabled==null) document.write("<td><font face='' size='-1'>Cookies
disabled</font></td>");
else document.write("<td><font face=''
size='-1'>Cookies enabled</font></td>");
//-->
</script>
<tr>
<td valign="top"><font face="" size="-1">more details: </font></td>
<td><font face="" size="-1">
<script language="JavaScript">
<!--
if (navigator.appName=="Netscape") {
document.write("<br>Browser innerwidth: "+innerWidth);
document.write("<br>Browser innerheight: "+innerHeight);
document.write("<br>Doc height: "+document.height);
document.write("<br>Doc width: "+document.width);
document.write("<br>Platform: "+navigator.platform);
document.write("<br>Language: "+navigator.language);
document.write("<br>Security: "+window.secure);
}
else {
document.write("<br>Browser innerwidth: "+document.body.offsetWidth);
document.write("<br>Browser innerheight: "+document.body.offsetHeight);
document.write("<br>Online?: "+navigator.onLine);
document.write("<br>Cookie enabled?: "+navigator.cookieEnabled);
document.write("<br>CPU-Class: "+navigator.cpuClass);
document.write("<br>Language (system): "+navigator.systemLanguage);
document.write("<br>Language (user): "+navigator.userLanguage);
document.write("<br>Security: "+document.security);
document.write("<br>file size: "+document.fileSize);
document.write("<br>Creation date: "+document.fileCreatedDate);
}
//-->
</script>
</font>
</td>
</tr>
<tr>
<td valign="top"><font face="" size="-1">Computer Info: </font></td>
<td><font face="" size="-1">
<script language="JavaScript">
<!--
if (win98()) document.write("you use Windows 98");
if (win95()) document.write("you use Windows 95");
if (winNT()) document.write("you use Windows NT");
if (mac()) document.write("you use Macintosh");
if (linux()) document.write("you use Linux");
if (nextos()) document.write("you use NeXTStep");
if (os2()) document.write("you use OS/2");
if (rhapsody()) document.write("you use Rhapsody");
if (openstep()) document.write("you use OpenStep");
if (irix()) document.write("you use IRIX");
if (sunos()) document.write("you use SunOS");
if (aix()) document.write("you use AIX");
if (ppc()) document.write(" with a PowerPC-Prozessor");
if (intel()) document.write(" with a Intel Prozessor");
//-->
</script>
</font>
</td>
</tr>
<font face="" size="-1">
<tr><td><font face="" size="-1">href </font></td><td><font face="" size="-1"><script>document.write(parent.location.href);</script></font></td></tr>
<tr><td><font face="" size="-1">domain </font></td><td><font face="" size="-1"><script>document.write(parent.document.domain);</script></font></td></tr>
<tr><td><font face="" size="-1">referrer </font></td><td><font face="" size="-1"><script>document.write(parent.document.referrer);</script></font></td></tr>
<tr><td><font face="" size="-1">title </font></td><td><font face="" size="-1"><script>document.write(parent.document.title);</script></font></td></tr>
<tr><td><font face="" size="-1">linkColor </font></td><td><font face="" size="-1"><script>document.write(parent.document.linkColor);</script></font></td></tr>
<tr><td><font face="" size="-1">vlinkColor </font></td><td><font face="" size="-1"><script>document.write(parent.document.vlinkColor);</script></font></td></tr>
<tr><td><font face="" size="-1">alinkColor </font></td><td><font face="" size="-1"><script>document.write(parent.document.alinkColor);</script></font></td></tr>
<tr><td><font face="" size="-1">bgColor </font></td><td><font face="" size="-1"><script>document.write(parent.document.bgColor);</script></font></td></tr>
<tr><td><font face="" size="-1">cookie </font></td><td><font face="" size="-1"><script>document.write(parent.document.cookie);</script></font></td></tr>
<tr><td><font face="" size="-1">fgColor </font></td><td><font face="" size="-1"><script>document.write(parent.document.fgColor);</script></font></td></tr>
<tr><td><font face="" size="-1">lastModified</font></td><td><font face="" size="-1"><script>document.write(parent.document.lastModified);</script></font></td></tr>
<tr><td><font face="" size="-1">images </font></td><td><font face="" size="-1"><script>document.write(parent.document.images.length);</script></font></td></tr>
<tr><td><font face="" size="-1">links </font></td><td><font face="" size="-1"><script>document.write(parent.document.links.length);</script></font></td></tr>
<tr><td><font face="" size="-1">forms </font></td><td><font face="" size="-1"><script>document.write(parent.document.forms.length);</script></font></td></tr>
<tr><td><font face="" size="-1">history </font></td><td><font face="" size="-1"><script>document.write(parent.window.history.length);</script></font></td></tr>
<tr><td><font face="" size="-1">frames </font></td><td><font face="" size="-1"><script>document.write(parent.window.frames.length);</script></font></td></tr>
</font></table>


</ol></body></html>
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close