ida에 python을 연결하면 idapython이라는 다양한 기능들을 사용할 수 있다.
idapython을 사용할 경우 프롬프트에서 다양한 명령어들로 강력한 기능들을 사용할 수 있다.
ida에 python을 연결하려면 ida folder에서 idapyswitch.exe에 python3.dll을 연결 시키면 idapython을 사용할 수 있다.
power shell을 관리자 권한으로 실행한 다음 ida folder에 들어가서 다음과 같이 명령어를 입력하면 된다. 뒤에 python3.dll의 경로를 입력해주고 ida를 다시 실행하면 imp 오류창이 안뜨면서 idapython을 사용할 수 있다.
idapyswitch.exe --force-path "C:\Users\georg\anaconda3\envs\ida\python3.dll"

python을 연결하고 ida를 다시 키면 imp 모듈이 필요한데 없다고 창이 뜬다. imp 파일은 pip로 다운 받아야 한다.
이때 python의 버전이 3.12부터는 imp 모듈 대신 importlib을 사용해야 한다. imp가 익숙하기 때문에 python 3.11로 설치를 하고 3.11버전의 python3.dll을 연결해주면 된다.
https://stackoverflow.com/questions/77274572/multiqc-modulenotfounderror-no-module-named-imp
MultiQC: ModuleNotFoundError: No module named 'imp'
I am running fastqc and multiqc in ubuntu linux terminal. fastqc runs perfectly without any issues but multiqc fails to run, showing the message. No idea how to fix the missing 'imp' module. I trie...
stackoverflow.com
위의 stack overflow에서 이와 관련된 내용을 확인할 수 있다. python버전을 맞추고 pip로 imp를 설치할 경우 아래와 같이 정상적으로 연결된 것을 확인할 수 있다.
