码迷,mamicode.com
首页 > 编程语言 > 详细

Python Ethical Hacking - Malware Packaging(2)

时间:2019-10-08 23:58:00      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:using   res   ica   img   pytho   ram   convert   pkg   arc   

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)

标签:using   res   ica   img   pytho   ram   convert   pkg   arc   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!