######################################################################################################################### 
# arirang 1.6 scan rule for IIS .ida buffer overflow and check CodeRed II infected server.
# codered.uxe
# by pilot 2001/08/10
# thanks RYMUS,NORBERT (Non-HP-Germany,ex1)
#
#http://www.eeye.com/html/Research/Advisories/AD20010618.html
#http://www.microsoft.com/technet/security/bulletin/MS01-033.asp

# Korean people please visit  http://www.hauri.co.kr
#                             http://www.ahnlab.co.kr
#
# usage)
# C Class) arirang -G -s 192.168.1.1 -e 192.168.1.255 -r codered2.uxe
# B Class) arirang -G -s 192.168.0.1 -e 192.168.255.255 -r codered2.uxe
# specfic ip address example) arirang -G -s 192.168.1.10 -e 192.168.1.20 -r codered2.uxe
# one host scan) arirang -G -h 192.168.1.1 -r codered2.uxe
#
# Q)how do i check IIS server in our network?
# example C CLASS)./arirang -G -s 192.168.1.1 -e 192.168.1.255|grep IIS
ALL IDQ-> GET :/a.ida?aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa^IIS .idq buffer overflow found, Vulnerable;http://www.microsoft.com/technet/security/bulletin/MS01-033.asp;
200 OK-> GET :/c/inetpub/scripts/root.exe?/c+dir^Code Red II Worm Infected check1;remove root.exe,c:\explorer.exe then reboot server,patch http://www.microsoft.com/technet/security/bulletin/MS01-033.asp;
200 OK-> GET :/c/winnt/system32/cmd.exe?/c+dir^Code Red II Worm Infected check2; remove c:\explorer.exe ,modify cmd.exe permission only administrator then reboot server, patch http://www.microsoft.com/technet/security/bulletin/MS01-033.asp;
200 OK-> GET :/d/inetpub/scripts/root.exe?/c+dir^Code Red II Worm Infected check3;remove d:\explorer.exe,root.exe, then reboot server,patch http://www.microsoft.com/technet/security/bulletin/MS01-033.asp;
200 OK-> GET :/d/winnt/system32/cmd.exe?/c+dir^Code Red II Worm Infected check4; remove d:\explorer.exe ,modify cmd.exe permission only administrator then reboot server, patch http://www.microsoft.com/technet/security/bulletin/MS01-033.asp;
200 OK-> GET :/scripts/root.exe?/c+dir^Code Red II Worm Infected check5;remove /scripts/root.exe,c:\explorer.exe then reboot server,patch http://www.microsoft.com/technet/security/bulletin/MS01-033.asp;
200 OK-> GET :/msadc/root.exe?/c+dir^Code Red II Worm Infected check6;remove /msadc/root.exe,c:\explorer.exe then reboot server\npatch http://www.microsoft.com/technet/security/bulletin/MS01-033.asp;
