Codes modified in UploadClient.cpp
void CUpDownClient::SendHashsetPacket(const uchar* pData, uint32 nSize, bool bFileIdentifiers) { ...... packet = new Packet(&fileResponse, OP_EMULEPROT, OP_HASHSETANSWER2); } else { if (nSize != 16) { ASSERT( false ); return; } //Enig123::Prevent clients from probing Hashset without ask a file if (isnulmd4(requpfileid)) { DebugLogWarning(_T("Client %s tried to probe Hashset without asking for a file."), DbgGetClientInfo()); Ban(_T("Hashset Prober")); return; } else if (md4cmp(requpfileid, pData)) { DebugLogWarning(_T("Client %s tried to request Hashset of file different from asked file."), DbgGetClientInfo()); }
Any normal client would have requpfileid filled with the hash of the requested file to this extend.