기본 콘텐츠로 건너뛰기

CLSID를 이용한 ActiveX 메서드 확인

HTML에서는 ActiveX를 부를 때 CLSID를 사용합니다.웹 페이지상에서 소스 보기를 이용해서 CLSID를 볼 수 있기 때문에, 구해진 CLSID로 Powershell을 통해 메소드를 확인할 수 있습니다. ActiveX뿐만 아니라 COM 객체는 모두 확인할 수 있습니다.
$type = [Type]::GetTypeFromCLSID("8E974B5A-A286-37DA-94F8-5872C500EB0E")$obj = [Activator]::CreateInstance($type)$obj | get-member
PC 내 설치된 임의의 CLSID를 이용해 메소드를 확인한 결과

댓글

이 블로그의 인기 게시물

프로그래머스 - 시저 암호

public class Caesar { String caesar ( String s , int n ) { n %= 26 ; String result = "" ; char [] temp = s . toCharArray (); for ( int i = 0 ; i < temp . length ; i ++) { if ( temp [ i ]>= 'a' && temp [ i ]<= 'z' ) temp [ i ] = ( char ) (( temp [ i ]+ n )> 'z' ? ( temp [ i ]+ n - 1 )% 'z' + 'a' : ( temp [ i ]+ n )); else if ( temp [ i ]>= 'A' && temp [ i ]<= 'Z' ) temp [ i ] = ( char ) (( temp [ i ]+ n )> 'Z' ? ( temp [ i ]+ n - 1 )% 'Z' + 'A' : ( temp [ i ]+ n )); result += temp [ i ]; } return result ; } public static void main ( String [] args ) { Caesar c = new Caesar (); System . out . println ( "s는 'a B z', n은 4인 경우: " + c . caesar ( ...