How to build a PWN environment on Mac
Download UTM and install it. You can use command brew install --cask utm Download the image form https://releases.ubuntu.com/22.04/ and install it. Then install gdb server by running the command sudo apt install gdbserver if you wan to debug some executable file for 32 bit, then you must run the command: sudo dpkg --add-architecture i386 sudo apt update sudo apt install libc6:i386 libncurses