能力值:
( LV5,RANK:68 )
|
-
-
2 楼
host劫持
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
int NewConnect(SOCKET sock, const char * lpszProxyAddress, const int nProxyPort) { OutputDebugStringA(ProxyIP); SOCKADDR_IN saProxy; saProxy.sin_family = AF_INET; saProxy.sin_port = htons(nProxyPort); saProxy.sin_addr.s_addr = inet_addr(lpszProxyAddress); if (saProxy.sin_addr.S_un.S_addr == INADDR_NONE) { LPHOSTENT lphost; lphost = gethostbyname(lpszProxyAddress); if (lphost != NULL) saProxy.sin_addr.S_un.S_addr = ((LPIN_ADDR)lphost->h_addr)->s_addr; else { return -1; } }
return OldConnect(sock, (sockaddr*)&saProxy, sizeof(sockaddr)); }
int WINAPI HookConnect(SOCKET s, const struct sockaddr FAR *name, int namelen) { OutputDebugStringA(ProxyIP); return NewConnect(s, ProxyIP, ProxyPort); }
|
能力值:
( LV2,RANK:10 )
|
-
-
4 楼
laosanls
int NewConnect(SOCKET sock, const char * lpszProxyAddress, const int nProxyPort)
{
OutputDebugStr ...
感谢
|
|
|