Just finished posting a wiki article on a script I’ve done up to help identify private network (lan) users infected with variants of the conficker virus.
Implementation of the script will give you a way to get the IP addresses of users on your network attempting to access sites that conficker ‘phones home’ to periodically.
If anyone has any questions, bugs or suggestions on the script feel free to voice them here.
oh bugger. Just found out that the :resolve command failing causes a script to halt in 3.X
Workaround for me was to use OpenDNS as the name servers, so that all requests would resolve, then just catch the users heading to non opendns IP’s.
i use this script in x3.17 its not working for me i just modified the script to check they resolve the ips . i created the file name conf.txt and put the all domain which listed on site. i used opendns for nameserver
Yes, as noted in my post above, I only found out after finishing the scrip that the mikrotik :resolve command is currently broken, any failed resolution simple forces the script to quit, hence using opendns is the only way I see to get it to complete at this time.. too bad we’ve got no other solution for the 1st April
However, if you’re still getting an error in the script even thou all addresses are resolving, run it from terminal instead and let me know what line it errors on and I’ll have a look.
I managed to get it working and it’s popping up hits on several of my access points.
I copied the address list and firewall rule to the access points to isolate the customer.
I checked some of the ip address against arin.
208.69.36.132 opendns
72.167.202.5 godaddy
72.14.205.102 google
Does that seem right??
Also, could one just block the ip addresses from the list daily-conficker?
Yes you can block the addresses, I’ve done so on my sites and haven’t had any users call with issues accessing google :-/ (Roughly 3000 users its running across at the moment)
as for the ARIN listings, try the following addition. Change the line
This should give you a listing of the domain that each address was resolved from so you can see exactly which domain is which.
I’ve updated the script to include this.
the whole reason the script goes through and resolves each of the IP’s is because conficker uses a new set of domains each day, if I were to resolve all of them now and just provide an IP list, this list could easily change within a few days time given that a) new domains that weren’t resolving previously may have now been purchased. b) old domains that were pointing elsewhere before could have records updated to point to new sites.
When I say run it from terminal I mean goto terminal and type in
Hmm it would seem that your mikrotik is unable to download the files from my webserver.
Does the box you’re using have a default route (0.0.0.0/0) out to the internet?
The script as noted above does work fine on 3.17 which means there is an issue with your mikrotik being able to connect to my server somehow.
#download current days domain list
/tool fetch address=192.168.0.1 host=192.168.0.1 mode=http src-path=“conficker/www.epicwinrar.com/conficker/$month-$day-$year.txt”
:log info “Download Complete”
:delay 2
#check to ensure todays file exists before deleting yesterdays list
:log info “Begining Address List Modification”
:if ( [/file get [/file find name=“$month-$day-$year.txt”] size] > 0 ) do={
If it gets the failure message it means the :resolve has failed and stops the script from continuing (the bug mentioned in my second post)
If you’re using opendns servers (208.67.222.222 208.67.220.220) as your dns servers this should not happen as any invalid requests will instead be returned an opendns address (normally in the 208.67.X.X range)
Now its working but i think something wrong. The script add duplicate ips . its fine or something missing in script .
Dude can you do one more thing can you make simple this script. i have also linux box and make script to fatch and export list to the file with crontab just confuse with MT scripting here is my simple script to fatch file from local machine this local machine fatch data from site. conf.txt is located on my server
#download current days domain list
/tool fetch address=192.168.0.1 host=192.168.0.1 mode=http src-path=“conficker/www.epicwinrar.com/conficker/conf.txt”
:log info “Download Complete”
:delay 2
#check to ensure todays file exists before deleting yesterdays list
:log info “Begining Address List Modification”
:if ( [/file get [/file find name=conf.txt] size] > 0 ) do={