请问有没有这种软件 请问有没有这种软件.可以把机器通过网络传输的数据里面有关ip和mac的信息任意修改.然后再发送出去 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 自己构造包,可以下载winpcap3.1的代码看看,里面有。 有没有现成的程序?情况是这样,代理服务器ccproxy要验证ip和mac,由于用的是交换机,ip无法修改.我想能否用软件欺骗cproxy? 环境是win2000.我想上网,找到一个代理服务器是ccproxy,要验证ip和mac,由于局域网用的是交换机,ip无法修改.我想能否用软件修改数据包里面的ip和mac,从而欺骗cproxy,达到上网目的 我会更改本机IP地址至于MAC在注册表里更改就行还有可以在网卡属性里直接盖更改IP的代码:BOOL RegSetIP(LPCTSTR lpszAdapterName, int nIndex, LPCTSTR pIPAddress, LPCTSTR pNetMask, LPCTSTR pNetGate){ HKEY hKey; CString strKeyName = "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Interfaces\\"; strKeyName += lpszAdapterName; if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,strKeyName.GetString(), 0, KEY_WRITE, &hKey) != ERROR_SUCCESS) { return FALSE; } char mszIPAddress[100]; char mszNetMask[100]; char mszNetGate[100]; strncpy(mszIPAddress, pIPAddress, 98); strncpy(mszNetMask, pNetMask, 98); strncpy(mszNetGate, pNetGate, 98); int nIP, nMask, nGate; nIP = (int)strlen(mszIPAddress); nMask = (int)strlen(mszNetMask); nGate = (int)strlen(mszNetGate); *(mszIPAddress + nIP + 1) = 0x00; nIP += 2; *(mszNetMask + nMask + 1) = 0x00; nMask += 2; *(mszNetGate + nGate + 1) = 0x00; nGate += 2; RegSetValueEx(hKey, "IPAddress", 0, REG_MULTI_SZ, (unsigned char*)mszIPAddress, nIP); RegSetValueEx(hKey, "SubnetMask", 0, REG_MULTI_SZ, (unsigned char*)mszNetMask, nMask); RegSetValueEx(hKey, "DefaultGateway", 0, REG_MULTI_SZ, (unsigned char*)mszNetGate, nGate); RegCloseKey(hKey); return TRUE;}BOOL NotifyIPChange(LPCTSTR lpszAdapterName, int nIndex, LPCTSTR pIPAddress, LPCTSTR pNetMask){ BOOL bResult = FALSE; HINSTANCE hDhcpDll; DHCPNOTIFYPROC pDhcpNotifyProc; WCHAR wcAdapterName[256]; MultiByteToWideChar(CP_ACP, 0, lpszAdapterName, -1, wcAdapterName,256); if((hDhcpDll = LoadLibrary("dhcpcsvc")) == NULL) { return FALSE; } if((pDhcpNotifyProc = (DHCPNOTIFYPROC)GetProcAddress(hDhcpDll, "DhcpNotifyConfigChange")) != NULL) { if((pDhcpNotifyProc)(NULL, wcAdapterName, TRUE, nIndex, inet_addr(pIPAddress), inet_addr(pNetMask), 0) == ERROR_SUCCESS) { bResult = TRUE; } } FreeLibrary(hDhcpDll); return bResult;}BOOL SetIP(LPCTSTR lpszAdapterName, int nIndex, LPCTSTR pIPAddress, LPCTSTR pNetMask, LPCTSTR pNetGate){ if(!RegSetIP(lpszAdapterName, nIndex, pIPAddress, pNetMask, pNetGate)) { return FALSE; } if(!NotifyIPChange(lpszAdapterName, nIndex, pIPAddress, pNetMask)) { return FALSE; } return TRUE;} 第三个函数是最终调用函数 C++传文件程序问题 线程关闭问题??? csuftliang 请进 关于对采集卡编程 CListCtrl控件查找的问题?? 要写论文了,请给些意见 CWnd 对象怎么和 HWND 窗口句柄相互转化? 在线求肋,高手快来!!!为什么我的model窗口中listbox没法响应NM_CLICK????????? 关于将文件关联到应用程序的问题 请问如何在OnMousedown函数里获得键盘的值? http编程的问题。我很少用,谁介绍一下。急啊 急等解决(50分),关于继承的一个问题,代码贴出,望各位高手赐教!
情况是这样,代理服务器ccproxy要验证ip和mac,由于用的是交换机,ip无法修改.我想能否用软件欺骗cproxy?
至于MAC在注册表里更改就行
还有可以在网卡属性里直接盖
更改IP的代码:
BOOL RegSetIP(LPCTSTR lpszAdapterName, int nIndex, LPCTSTR pIPAddress, LPCTSTR pNetMask, LPCTSTR pNetGate)
{
HKEY hKey;
CString strKeyName = "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Interfaces\\";
strKeyName += lpszAdapterName;
if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,strKeyName.GetString(), 0, KEY_WRITE, &hKey) != ERROR_SUCCESS)
{
return FALSE;
}
char mszIPAddress[100];
char mszNetMask[100];
char mszNetGate[100]; strncpy(mszIPAddress, pIPAddress, 98);
strncpy(mszNetMask, pNetMask, 98);
strncpy(mszNetGate, pNetGate, 98); int nIP, nMask, nGate; nIP = (int)strlen(mszIPAddress);
nMask = (int)strlen(mszNetMask);
nGate = (int)strlen(mszNetGate); *(mszIPAddress + nIP + 1) = 0x00;
nIP += 2; *(mszNetMask + nMask + 1) = 0x00;
nMask += 2; *(mszNetGate + nGate + 1) = 0x00;
nGate += 2;
RegSetValueEx(hKey, "IPAddress", 0, REG_MULTI_SZ, (unsigned char*)mszIPAddress, nIP);
RegSetValueEx(hKey, "SubnetMask", 0, REG_MULTI_SZ, (unsigned char*)mszNetMask, nMask);
RegSetValueEx(hKey, "DefaultGateway", 0, REG_MULTI_SZ, (unsigned char*)mszNetGate, nGate); RegCloseKey(hKey); return TRUE;
}BOOL NotifyIPChange(LPCTSTR lpszAdapterName, int nIndex, LPCTSTR pIPAddress, LPCTSTR pNetMask)
{
BOOL bResult = FALSE;
HINSTANCE hDhcpDll;
DHCPNOTIFYPROC pDhcpNotifyProc;
WCHAR wcAdapterName[256];
MultiByteToWideChar(CP_ACP, 0, lpszAdapterName, -1, wcAdapterName,256); if((hDhcpDll = LoadLibrary("dhcpcsvc")) == NULL)
{
return FALSE;
} if((pDhcpNotifyProc = (DHCPNOTIFYPROC)GetProcAddress(hDhcpDll, "DhcpNotifyConfigChange")) != NULL)
{
if((pDhcpNotifyProc)(NULL, wcAdapterName, TRUE, nIndex, inet_addr(pIPAddress), inet_addr(pNetMask), 0) == ERROR_SUCCESS)
{
bResult = TRUE;
}
} FreeLibrary(hDhcpDll);
return bResult;
}
BOOL SetIP(LPCTSTR lpszAdapterName, int nIndex, LPCTSTR pIPAddress, LPCTSTR pNetMask, LPCTSTR pNetGate)
{
if(!RegSetIP(lpszAdapterName, nIndex, pIPAddress, pNetMask, pNetGate))
{
return FALSE;
}
if(!NotifyIPChange(lpszAdapterName, nIndex, pIPAddress, pNetMask))
{
return FALSE;
} return TRUE;
} 第三个函数是最终调用函数