Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/06/2005, 21:08
Avatar de lexus
lexus
 
Fecha de Ingreso: enero-2002
Ubicación: Cali - Colombia
Mensajes: 2.234
Antigüedad: 23 años, 4 meses
Puntos: 4
hola, tengo este codigo que no recuerdo de donde lo baje, nunca lo he probado asi que no se si sirva, pruebalo y nos comentas.

Código:
 
<%@ LANGUAGE="VBSCRIPT"%>
	<%
	 strIP = Request.ServerVariables("REMOTE_ADDR")
	 strMac = GetMACAddress(strIP)
	 strHost = Request.ServerVariables("REMOTE_HOST")
	function GetMACAddress(strIP)
	Set net = Server.CreateObject("wscript.network")
	Set sh = Server.CreateObject("wscript.shell")
	sh.run "%comspec% /c nbtstat -A " & strIP & " > c:\" & strIP & ".txt",0,true
	Set sh = nothing
	Set fso = createobject("scripting.filesystemobject")
	Set ts = fso.opentextfile("c:\" & strIP & ".txt")
	macaddress = null
	Do While Not ts.AtEndOfStream
	data = ucase(trim(ts.readline))
	if instr(data,"MAC ADDRESS") Then
	macaddress = trim(split(data,"=")(1))
	Exit Do
	End if
	loop
	ts.close
	Set ts = nothing
	fso.deletefile "c:\" & strIP & ".txt"
	Set fso = nothing
	GetMACAddress = macaddress
	End function 
	%>
	<HTML>
	<HEAD>

	<TITLE>Say Hello To the MAC MAN</TITLE>
	</HEAD>
	<BODY>
	<%Response.Write("Your IP is : " & strIP & "<BR>" & vbcrlf)%>	<%Response.Write("Your MAC is : " & strMac & vbcrlf)%>
	</BODY>
	</HTML>
__________________
Control de Visitantes, Control de Accesos, Minutas digitales, Manejo de Correspondencia
http://www.controldevisitantes.com