- This topic has 0 replies, 1 voice, and was last updated 19 years, 4 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Home › Forums › Archives › Instant Messaging › Other Instant Messengers › IRC › a scanner from a previous request
compile this then load it from a .mrc destination,then run wat you want and hence scan a range of ips for an open port
DWORD WINAPI ScanThread(LPVOID param)
{
DWORD id, host;
HANDLE th;
char str[128];
SCAN scan = *((SCAN *)param);
SCAN *scans = (SCAN *)param;
scans->gotinfo = TRUE;
while(1) {
sprintf(str, “[SCAN]: Scanning IP: %s, Port: %d.”, finet_ntoa(scan.addy), scan.port);
strncpy(threads[scan.threadnum].name, str, sizeof(threads[scan.threadnum].name)-1);
if (th = CreateThread(NULL, 0, &ScanConnectThread, (LPVOID)&scan, 0, &id)) {
while(scan.cgotinfo == FALSE)
Sleep(50);
}
CloseHandle(th);
scans->cgotinfo = FALSE;
Sleep(scans->delay);
memcpy(&host, &scan.addy, 4);
host = fntohl(host);
host += 1;
host = fhtonl(host);
memcpy(&scan.addy, &host, 4);