Programming/JAVA

Eclipse On JAD ( Java Decompiler )

Edward. K 2008. 6. 20. 08:56
반응형
Java Decompiler ... 
코드 보안 측면에서 봐선 있으면 안되는 넘인데.(물론 Obfuscatr 가 있으니..다행이다만..)
한편으로는 원 소스를 잃어버렸거나.. 혹은 API를 분석하는데 큰 도움이 되는 녀석이다.

지금은 원소스가 없는 쪽이다...헐..인수인계도 없고..-_-;
내 개발자 인생인 왜 이리 재미있는 게냐..앙?

뭐..여튼..재미있는 인생 자랑은 그만하고..
Eclipse Plugin을 이용해 Java Decompiler를 사용해 보자.
[통합 파일 - 2008-07기준-]


7.1 JAD 설정시
         Default로 해도 된다..   <- 3.3 에서의 기본 사항인듯함..확인 필요.

★. jre 혹은 확장 jar 내의  class 들이 decompiler 가안되는 경우가 있는데..
     무슨 원인인지는 모르겠으나...-_-
     이전 파일도 함께 설치해 주면 잘 된다.
jadclipse_3.2.0.jar 54 KB JadClipse for Eclipse 3.2M3 and M4
jadclipse_3.1.0.jar 54 KB JadClipse for Eclipse 3.1 (including milestone builds starting from 3.1M6 up to 3.2M2)




Eclipse On JAD ( Java Decompiler )   - Eclipse 3.3 기준-

1. Eclipse Download
      [다운로드] eclipse-SDK-3.3.2-win32.zip

2. JAD  Download ( jadnt158.zip-Jad.exe- )
    : http://www.kpdus.com/jad.html
       >Jad 1.5.8g for Windows 9x/NT/2000 on Intel platform  (238600 bytes).  페이지 중간정도에 있다

3. Eclipse Plugin Download  ( net.sf.jadclipse_3.3.0.jar )
    : http://jadclipse.sourceforge.net/wiki/index.php/Main_Page#Download
        JadClipse 3.3
        This release stream is appropriate for Eclipse 3.3.
Filename Size Description
net.sf.jadclipse_3.3.0.jar 45 KB JadClipse for Eclipse >= 3.3M6


4. Eclipse  설치

5. Eclipse Jad Plugin(net.sf.jadclipse_3.3.0.jar) 을 Eclipse/plugins 폴더에 저장.

6. Jad (Jad.exe) 파일을 적당한 위치에 저장.

7. 이클립스 실행
    7.1 JAD 설정
        Window > Preferences... > Java > JadClipse
            |_ Path to Decompiler  : C:\_utils\jad.exe
            |_ directory for temporary files : C:\_decompiler     > 역컴파일 폴더
            |_  Reuse code buffer  : 역컴파일된 코드를 Buffer에 기록하도록

    7.2 설정 확인
        Window > Preferences... > General > Editors > File Associations
            : "*.class"의 설정값이 "JadClipse Class File Viewer"로 설정되었는지 확인.



    ※. 한글이 깨지는 경우
            : Window > Preferences... > Java > JadClipse > Misc
                |_ Convert Unicode strings into ANSI strings 체크


8. 사용.



반응형