Python Ethical Hacking - Malware Packaging(2),Packaging,PACKAGING
Python Ethical Hacking - Malware Packaging(2),Packaging,PACKAGING
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 interpreter on Linux.Use it to convert python programs to Windows executables.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.
Python Ethical Hacking - Malware Packaging(2)
相关内容
- Python基础入门—字典dict,dict字典, 目录
- 关于Python中的lambda,java中lambda,lambda是Pyt
- Python基础五--shutil模块,shutil模块,高级文件处理模块:
- python3.x 安装命令,python安装包命令,在root下执行下面
- python笔记--数据类型,python的数据类型,http://www
- python基础知识,python必背内容,一、python的基
- python之字典方法,python字典的方法,通过名称来访问各个
- Python3 实例(一),Python实例,Python Hel
- Python:Django框架开发数据可视化网站,数据可视化框架
- python----------文件操作,python文件, py
评论关闭