Programing

.dll 파일을 열어 내부 내용을 확인하는 방법은 무엇입니까?

lottogame 2020. 10. 17. 09:00
반응형

.dll 파일을 열어 내부 내용을 확인하는 방법은 무엇입니까?


나는 열 수 클래스 라이브러리의 솔루션을 상실 .dll하여 만든 파일 class-library.


redgates .net reflector 또는 jetbrains resharper decompiler와 같은 디 컴파일러를 사용하는 것이 좋습니다. 다음과 같은 오픈 소스도 있습니다.

http://www.jetbrains.com/decompiler/

http://ilspy.net/


아래 단계를 따르십시오 ..

  1. 시작 메뉴로 이동합니다.
  2. Visual Studio Tool을 입력합니다.
  3. 위의 폴더로 이동하십시오.
  4. VS 2013의 경우 "VS 2013 용 개발자 명령 프롬프트"를 클릭하고 VS 2010의 경우 "Visual Studio 명령 프롬프트"를 클릭합니다.
  5. 명령 프롬프트가 화면에로드되면 ILDASM.EXE를 입력하고 Enter 키를 누릅니다.
  6. ILDASM 창이 열리면 .dll 파일을 폴더에서 창으로 드래그하거나.을 클릭 한 File->New다음 필요한 .dll 파일을 추가합니다.
  7. 위의 단계가 끝나면 Mainfest 및 .dll 파일이 나타납니다. 이 파일을 두 번 클릭하여 포함 된 내용을 확인합니다.

.NET Reflector 및이 FileGenerator 플러그인 http://filegenreflector.codeplex.com/ 을 다운로드했다고 생각합니다 .

  1. Reflector.exe를 엽니 다.

  2. 보기로 이동하여 추가 기능을 클릭합니다.

  3. 추가 기능 창에서 추가 ...를 클릭합니다.

  4. 그런 다음 다운로드 한 dll을 찾습니다.

  5. FileGenerator.dll (마녀는 FileGenerator 플러그인과 함께 왔습니다),

  6. 그런 다음 추가 기능 창을 닫습니다.

  7. 파일로 이동하여 열기를 클릭하고 디 컴파일 할 dll을 선택합니다.

  8. 열면 트리 뷰에 나타나고

  9. 도구로 이동하여 파일 생성 (Crtl + Shift + G)을 클릭합니다.

  10. 출력 디렉토리를 선택하고 원하는대로 적절한 설정을 선택하고 파일 생성을 클릭하십시오.

또는

http://ilspy.net/ 사용


.dllVisual Studio로 파일을 엽니 다 . 또는 리소스 편집기.


정확한 코드는 얻을 수 없지만 디 컴파일 된 버전은 얻을 수 있습니다.

가장 인기있는 (그리고 가장 좋은) 도구는 Reflector 이지만 다른 .Net 디 컴파일러 (예 : Dis # )도 있습니다.

.Net Framework SDK 도구와 함께 제공되는 ILDASM을 사용하여 IL을 디 컴파일 할 수도 있습니다 .


Telerik의 Just Decompile은 제가 사용한 것 중 최고입니다. 이메일로 가입하면 무료입니다.

여기에 링크 설명 입력


* .dll 파일은 winzip / 7zip 등으로 열린 아카이브 파일입니다. 즉, 모든 .dll 파일이 .dll 확장자로 무엇이든 저장할 수있는 아카이브라는 것은 아닙니다. 그러나 대부분의 Windows .dll 파일은 아카이브로 생성됩니다. 아카이브 파일 인> twain_32.dll 그러나 twain.dll은 twain.dll을 보면 컴파일 된 C 파일 / 프로그램 또는 프로그램의 일부를 나타내는 처음 세 개의 메모장 문자로 MZ®가 표시됩니다. MZ는 아카이브 인 것처럼 보입니다.

또한 대부분의 .exe 파일은 대부분 파일에 대한 아이콘 이미지 등을 포함하는 아카이브이며 Windows 설치 프로그램 패키지는 프로그램이 이미지, 영화 등을 실행하는 데 필요한 모든 정보와 설치 정보 및 일반 텍스트 파일을 포함한 디렉토리를 포함합니다.

여기 game.exe 게임이 있으며 여기에는 .bat 파일을 실행하도록 .exe를 지시하는 포인터 이미지와 Java 클래스 파일이 포함되어 있습니다. 분명히 .bat 파일은 아카이브에서 javac 호출을 실행하고 게임을 실행합니다. 또한 Java 클래스 파일을 포함하는 .dll 아카이브도 몇 개 있습니다.

[autorun]
ICON=AUTORUN\MINCRAFTLOGO.ICO

여기서 표준 아이콘 리디렉션 .ico는 .exe 파일 내의 .dll 파일 내의 이미지 파일입니다. 따라서 .exe 파일에 표시된 이미지는 마인 크래프트 로고입니다. 이것은 autorun.inf라는 파일에 있습니다. 두 번째 예

[discstarter]
    startpage=Autostart\Disk1.html
    uselanguagestartpage=1
    windowcaption=Solid Edge
    licensee=Siemens PLM Software
    productguid=05B227DF-DB00-4934-B3C8-40B7D8FAA54A
    singleinstance=1
    hidesplashscreen=1
    noscrollbars=0
    showstatusbar=1
    splashscreentime=0
    windowwidth=750
    windowheight=775
    buttondir=Autostart
    toolbarcolor=16777215
    toolbar=goback,goforward,gohome,print,exit
    [autorun]
    open=autostart.exe
    icon=Autostart\ENGINE.ICO

이것은 solidedge.exe Autostart \에 포함 된 solid edge autorun.inf 파일이며 Autostart.dll 디렉토리입니다. open = autostart.exe는 원본 solidedge.exe 아카이브 내에서 실행할 autostart.exe 파일을 지정합니다. 다음은 .dll (동적 링크 라이브러리) 파일 http://www.flipcode.com/archives/Creating_And_Using_DLLs.shtml을 사용하는 샘플 프로그램 입니다.

It also shows how they are created. As you can see the contents of the dll file is called by an exe file as I previously explained also there is a tutorial here http://msdn.microsoft.com/en-us/library/ms235636.aspx and as i said before 7zip or winzip will open a dynamic link library as an archive as long as you have the .dll file. If the contents of the dynamic link library have been compiled obviously you need a program which can read the file.

However since .dll files are by definition just archive library files the dll itself should be readable and not a compiled C,C# file etc etc Basically .dll files are archives well should be when a .dll file is created in visual studio the dll is created and any information you store in the dll file is encrypted. Mostly this encryption is handled by visual studio itself and generally isn't edited by hand. When you read a .dll file contents as a .exe the contents are automatically decrypted. Now when we talk about compiling a program we are changing the contents into bytecode the machine easily interprets.

This filesize would be smaller than the original file of the same contents. However the filesize is larger suggesting that the file has actually been encrypted. Probably to stop people reading their code. As a result the reading of .dll contents is termed decryption and not decompilation. Decompilation would convert the already compiled txt files to unreadable byte code. The use of standard .dll files is by definition not opensource because it involves the deliberate obfuscation of byte code.

참고URL : https://stackoverflow.com/questions/18050615/how-to-open-dll-files-to-see-what-is-written-inside

반응형