• Python Ethical Hacking


    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.

    相信未来 - 该面对的绝不逃避,该执著的永不怨悔,该舍弃的不再留念,该珍惜的好好把握。
  • 相关阅读:
    HTTP状态码的详细解释,供参考
    js中实现页面跳转(返回前一页、后一页)
    CRUD工程师——基础容器LinkedList
    CRUD工程师——基础容器ArrayList
    Servlet入门
    Linux
    flex弹性布局
    div布局
    递归函数
    运算符
  • 原文地址:https://www.cnblogs.com/keepmoving1113/p/11638377.html
Copyright © 2020-2023  润新知