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= install pynput

Convert the python program to windows executable.

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

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

最新文章

  1. iOS之百度导航SDK的坐标转换
  2. XML格式示例 与 XML操作(读取)类封装
  3. c#基础-oop(面向对象理解)
  4. aspose.word使用简单方法
  5. jvm 数据区划分学习
  6. 1、探究java方法参数传递——引用传递?值传递!
  7. vijosP1071 新年趣事之打牌
  8. [转]Delphi执行CMD命令
  9. 推荐两个界面原型设计工具--GUIDesignStudio 和 Mockups For Desktop
  10. Intergate flot with Angular js ——Angular 图形报表
  11. Entity Framework细节追踪
  12. 关于mpu6050的几个很好的帖子
  13. Linux: Bash基本命令
  14. JPA关系映射之one-to-one
  15. WEBLOGIC 11G (10.3.6) windows PSU 升级10.3.6.0.171017(Java 反序列化漏洞升级)
  16. SQL Server 优化
  17. HDU - 3567
  18. HttpClient的POST请求返回302解决
  19. Qsys 设计流程---Qsys System Design Tutorial
  20. Redis学习笔记:windows上redis的安装运行

热门文章

  1. 【Azure SQL】数据库性能分析
  2. PHP丨PHP基础知识之流程控制for循环「理论篇」
  3. springboot 配置本地文件映射路径
  4. 解决 React Native Android:app:validateSigningRelease FAILED 错误
  5. OpenCV开发笔记(六十五):红胖子8分钟带你深入了解ORB特征点(图文并茂+浅显易懂+程序源码)
  6. 【asp.net core 系列】13 Identity 身份验证入门
  7. Elasticsearch、Solr、Lucene、Hermes区别
  8. JavaWeb网上图书商城完整项目--day02-5.ajax校验功能之服务器端三层实现
  9. 入门大数据---通过Flume、Sqoop分析日志
  10. webpack的入门实践,看这篇就够了