Wine中使用MinGW

原文: http://null-byte.wonderhowto.com/forum/set-up-mingw-kali-using-wine-0159622/
http://blog.gojhonny.com/2014/03/installing-mingw-gcc-g-on-kali-linux-to.html

MinGW是一组window开发工具集,包含GCC和G++。
可以使用Wine和MinGW来编辑windows下的可执行程序。

安装wine
引用

apt-get install wine
dpkg --add-architecture i386
apt-get update
apt-get install wine-bin:i386


安装MinGW:
1. 下载MinGW, http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download
2. 使用./mingw-get-setup.exe或者GUI中双击可执行文件安装
3. 选择mingw32-Base

4. 选择左上角的Installation > Update Catalogue



引用
cd /root/.wine/drive_c/MinGW/bin
wine gcc.exe -o file.exe sourcefile.c
wine gcc.exe -o /root/out/final.exe /usr/share/metasploit-framework/ShellCode/final.c -lwsock32

猜你喜欢

转载自j4s0nh4ck.iteye.com/blog/2192997