Python Ethical Hacking - Malware Packaging(2)
发布时间:2020-12-20 10:22:17 所属栏目:Python 来源:网络整理
导读:PACKAGING FOR WINDOWS FROM LINUX For best results package the program from the same OS as the target. EG if the target is Windows then package the program from a Windows computer with a python interpreter. Install Windows python interprete
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. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |