<!DOCTYPE html PUBLIC
<html xmlns=
<head runat=
<title>無標題頁</title>
</head>
<body>
<form id=
<div>
</div>
</form>
</body>
</html>
後台代碼
using System;
using System
using System
using System
using System
using System
using System
using System
using System
using System
using System
using System
using System
public partial class MAC : System
{
[DllImport(
private static extern int SendARP(Int
[DllImport(
private static extern Int
protected void Page_Load(object sender
{
// 在此處放置用戶代碼以初始化頁面
try
{
string userip = Request
string strClientIP = Request
Int
Int
Int
Int
int res = SendARP(ldest
string mac_src = macinfo
if (mac_src ==
{
if (userip ==
Response
else
Response
return;
}
while (mac_src
{
mac_src = mac_src
}
string mac_dest =
for (int i =
{
if (
{
if (i ==
{
mac_dest = mac_dest
}
else
{
mac_dest =
}
}
}
Response
+
}
catch (Exception err)
{
Response
}
}
}
From:http://tw.wingwit.com/Article/program/net/201311/12020.html