原文:[url]http://null-byte.wonderhowto.com/forum/set-up-mingw-kali-using-wine-0159622/[/url]
[url]http://blog.gojhonny.com/2014/03/installing-mingw-gcc-g-on-kali-linux-to.html[/url]
MinGW是一组window开发工具集,包含GCC和G++。
可以使用Wine和MinGW来编辑windows下的可执行程序。
安装wine
[quote]
apt-get install wine
dpkg --add-architecture i386
apt-get update
apt-get install wine-bin:i386
[/quote]
安装MinGW:
1. 下载MinGW,[url]http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download[/url]
2. 使用./mingw-get-setup.exe或者GUI中双击可执行文件安装
3. 选择mingw32-Base
[img]http://dl2.iteye.com/upload/attachment/0106/7094/f8035684-ffbc-39c1-9f0e-f56173d9cdd7.jpg[/img]
4. 选择左上角的Installation > Update Catalogue
[img]http://dl2.iteye.com/upload/attachment/0106/7096/f71798ed-e185-3f19-a6dc-9b11a81d4962.png[/img]
[b][color=blue][quote]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[/quote][/color][/b]
[url]http://blog.gojhonny.com/2014/03/installing-mingw-gcc-g-on-kali-linux-to.html[/url]
MinGW是一组window开发工具集,包含GCC和G++。
可以使用Wine和MinGW来编辑windows下的可执行程序。
安装wine
[quote]
apt-get install wine
dpkg --add-architecture i386
apt-get update
apt-get install wine-bin:i386
[/quote]
安装MinGW:
1. 下载MinGW,[url]http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download[/url]
2. 使用./mingw-get-setup.exe或者GUI中双击可执行文件安装
3. 选择mingw32-Base
[img]http://dl2.iteye.com/upload/attachment/0106/7094/f8035684-ffbc-39c1-9f0e-f56173d9cdd7.jpg[/img]
4. 选择左上角的Installation > Update Catalogue
[img]http://dl2.iteye.com/upload/attachment/0106/7096/f71798ed-e185-3f19-a6dc-9b11a81d4962.png[/img]
[b][color=blue][quote]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[/quote][/color][/b]