-
wsl 에서 32bit binary 실행하기ETC/그 외 메모장 2020. 9. 30. 02:00
wsl에서는 기본적으로, 아래과 같이 32bit binary가 실행이 되지 않는다.
e10@ELEFT:~$ ./basic_exploitation_000 -bash: ./basic_exploitation_000: No such file or directory
하지만, 다음과 같이 설정해주면 실행할 수 있다.
sudo dpkg --add-architecture i386 sudo apt-get update sudo apt install build-essential sudo apt install gcc-multilib
정상적으로 실행이 되는 것을 확인할 수 있다.
e10@ELEFT:~$ ./basic_exploitation_000 buf = (0xffbf0228)
참조
https://stackoverflow.com/questions/61300194/does-wsl-2-really-support-32-bit-program
Does WSL 2 really support 32 bit program?
I have googled this problem, some answers declared that WSL 2 now supports ELF 32 program. However, a simple test on wsl2 Debian/Ubuntu distro was not passed. Here is my test: // install run-tim...
stackoverflow.com
'ETC > 그 외 메모장' 카테고리의 다른 글
Command python setup.py egg_info failed with error code 1 (0) 2021.04.28 [WSL] AMD CPU에서 wsl2 import error 발생 시 (0) 2020.11.12 linux man page - korean (0) 2020.02.01 포스팅중에 inline code 넣을때 (0) 2020.01.02 디컴파일러 (0) 2020.01.01