Cross compiling on 64bit vm to 32bit centos machine
I’m working on the VulnHub Kioptrix Level 2 room, but I don’t have GCC installed on the target CentOS machine. I need to cross-compile the exploit 9545.c
on my 64-bit VM and transfer it to the 32-bit CentOS machine using an HTTP server. After transferring, I’ll set the appropriate permissions and execute it. However, I’m encountering errors such as segmentation faults and floating-point issues. I’ve tried using the -m32
flag and other options on my 64-bit Linux system. What could I be missing?