Python Ethical Hacking - Malware Packaging(2)

时间:2019-10-08 22:50:46   收藏:0   阅读:114

PACKAGING FOR WINDOWS FROM LINUX

 

Install wine tool on Kali Linux:

dpkg --add-architecture i386 && apt-get update &&
apt-get install wine32

 

Install Python 3.7.4 using wine.

技术分享图片

 

 技术分享图片

 

 Install PyInstaller on Kali Linux.

wine python.exe -m pip install /root/Downloads/PyInstaller-3.5.tar.gz

技术分享图片

 

 To package the keylogger program, we need to install the pynput module first.

wine python.exe -m pip --default-time=1000 install pynput

Convert the python program to windows executable.

wine ~/.wine/drive_c/Program Files (x86)/Python37-32/Scripts/pyinstaller.exe zkeylogger.py --onefile --noconsole

技术分享图片

 

 技术分享图片

 Test the zkeylogger.exe file on the Windows 10 PC. It works perfectly.

技术分享图片

 

原文:https://www.cnblogs.com/keepmoving1113/p/11638377.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!