home.social

#pyinstaller — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pyinstaller, aggregated by home.social.

fetched live
  1. Алгоритм реверса Python-вирусов и вредоносных утилит для начинающих аналитиков

    Привет, Хабр! Меня зовут Максим Мотиков, я аналитик киберугроз в «Гарде». Недавно на анализ мне пришел странный экзешник весом 81,54 МБ. Коллега выцепила его из сетевого трафика, но что внутри было, непонятно. Стиллер? Загрузчик? Что-то новое? Оказалось, что передо мной вредоносная утилита на Python. Хотя эти зловреды давно существуют и регулярно эксплуатируются, мне задача отреверсить подобную штуку досталась впервые. До «Гарды» я занимался реверсом firmware — встроенного ПО инициализации ПК (BIOS, UEFI) и прошивок микроконтроллеров. Там всё написано на ассемблере и C/C++, ведь код должен напрямую работать с железом, поэтому никакой Python там не встречается. Готового пошагового гайда по реверсу Python‑вирусов и вредоносных утилит я не нашел. Попадались, конечно, разборы конкретных кейсов, но какой-то универсальной инструкции, не было. Когда я разобрал по косточкам свой зловред, взял еще несколько образцов, прогнал их по тому же сценарию, получился вполне рабочий пайплайн для начинающих аналитиков угроз. Делюсь им под катом.

    habr.com/ru/companies/garda/ar

    #информационная_безопасность #реверс_вирусов #аналитика_угроз #исследование_угроз #pythonвирусы #pyinstaller #инфостиллер #ChromeElevatorexe

  2. Как разобрать .exe всего двумя инструментами: практический разбор с DeNuitkanizator и HxD

    Возможно ли разобрать .exe всего двумя инструментами? В данной статье будет практический разбор программ с помощью двух инструментов: HxD и DeNuitkanizator. Без Ghidra, без IDA, без x64dbg. Посмотрим что получится, а что нет. Вам понравится :)

    habr.com/ru/articles/1051484/

    #nuitka #pyinstaller #reverse_engineering #disassembler #статический_анализ #бинарный_анализ #opensource #python #exeанализатор #hxd

  3. Как заглянуть внутрь.exe, собранного через Nuitka? Новый инструмент с открытым кодом

    Как узнать, что внутри .exe, собранного через Nuitka? DeNuitkanizator — инструмент с открытым кодом для анализа таких файлов. Извлекает строки, модули, хэши, информацию о защите и многое другое за один запуск.

    habr.com/ru/articles/1048908/

    #Nuitka #PyInstaller #reverse_engineering #PEанализ #дизассемблирование #статический_анализ #бинарный_анализ #exeанализатор #opensource #Python

  4. Watch out, hackers are hiding a new version of XWorm malware in #PyInstaller files to bypass Windows security, steal data, and remotely control computers through ads!

    Read: hackread.com/hackers-pyinstall

    #CyberSecurity #XWorm #Windows #Malware #Scam

  5. Watch out, hackers are hiding a new version of XWorm malware in #PyInstaller files to bypass Windows security, steal data, and remotely control computers through ads!

    Read: hackread.com/hackers-pyinstall

    #CyberSecurity #XWorm #Windows #Malware #Scam

  6. Nuitka 4.0: как я разогнал свой Python-скрипт на 335% и почему JIT-будущее уже на пороге

    Представьте себе: вы запускаете свой старый добрый Python-скрипт, он привычно задумывается на пару секунд, а потом начинает работать. А теперь представьте, что тот же самый скрипт без единого изменения в коде — просто после прогона через одну утилиту — стартует почти мгновенно и работает втрое быстрее. Никакой магии, просто вышел Nuitka 4.0. 22 апреля 2026 года проект, который когда-то начинался как нишевый компилятор, дорос до мажорной версии 4.0. И это не просто «пофиксили баги, добавили пару флагов» — это реально меняет правила игры для тех, кто пишет на Python и хочет, чтобы код летал, а не ползал. По данным официальных тестов, скомпилированные скрипты показывают повышение производительности на 335% в pystone-бенчмарке по сравнению с CPython. Можете представить, что ваш веб-парсер или ML-пайплайн ускоряется втрое без переписывания на Rust. Если совсем просто: PyInstaller просто пакует ваш скрипт вместе с интерпретатором в один файл — по сути, это архив с «батарейками». А Nuitka переписывает весь Python-код на чистый C и компилирует его в настоящий исполняемый файл. Никакой интерпретации на лету — только скомпилированный бинарник, который в теории может обогнать даже PyPy. И теперь, с версией 4.0, эта теория стала куда ближе к практике. «Раньше я думал, что ускорение от Nuitka довольно скромное... но с версией 4.0 вижу реальный прогресс», — примерно так звучат комментарии на Hacker News , и я с ними согласен.

    habr.com/ru/articles/1027354/

    #python #cpython #nuitka #nuitka_40 #pyinstaller

  7. I created a desktop application with pyinstaller. When I double-click on the icon, Ubuntu says:

    Can't open the file
    Failed to find default application for content type 'application.x-executable'

    I *can* run it by right-clicking and choosing "Run as a program".

    How can I get double-clicking to launch it?

    (Yes, I already set it to be executable from the command line.)

    #python #pyinstaller #ubuntu

  8. I created a desktop application with pyinstaller. When I double-click on the icon, Ubuntu says:

    Can't open the file
    Failed to find default application for content type 'application.x-executable'

    I *can* run it by right-clicking and choosing "Run as a program".

    How can I get double-clicking to launch it?

    (Yes, I already set it to be executable from the command line.)

    #python #pyinstaller #ubuntu

  9. I created an actual "release" today, for my Xiaolong Dictionary language learning tool [1].

    I wonder however, why the GNU/Linux built is bigger. Maybe 'cause I ran another command making the executable. Makefile target:

    pyinstaller --clean --onefile --noconsole --add-data "$(TCL_LIBRARY):tcl8.6" --add-data "$(TK_LIBRARY):tk8.6" "$(MODULE)")

    While on Windows I have no idea how to do that.

    [1]: codeberg.org/ZelphirKaltstahl/

    #python #tkinter #matplotlib #pillow #pyinstaller #executable

  10. I created an actual "release" today, for my Xiaolong Dictionary language learning tool [1].

    I wonder however, why the GNU/Linux built is bigger. Maybe 'cause I ran another command making the executable. Makefile target:

    pyinstaller --clean --onefile --noconsole --add-data "$(TCL_LIBRARY):tcl8.6" --add-data "$(TK_LIBRARY):tk8.6" "$(MODULE)")

    While on Windows I have no idea how to do that.

    [1]: codeberg.org/ZelphirKaltstahl/

    #python #tkinter #matplotlib #pillow #pyinstaller #executable

  11. If you have #Python installed and want to verify what's going on with #PyInstaller being flagged as malicious, here's all you need to do.

    Create a file with the following content; maybe name it "hello.py":

    print ("Hello world!")

    Then compile it with PyInstaller, doesn't matter if you use the onefile argument or not:

    pyinstaller --onefile hello.py

    If Defender doesn't nuke it on sight, find your .exe in the dist folder and upload it to virustotal(.)com. It'll pop hot for a trojan.

    #Security

  12. If you have #Python installed and want to verify what's going on with #PyInstaller being flagged as malicious, here's all you need to do.

    Create a file with the following content; maybe name it "hello.py":

    print ("Hello world!")

    Then compile it with PyInstaller, doesn't matter if you use the onefile argument or not:

    pyinstaller --onefile hello.py

    If Defender doesn't nuke it on sight, find your .exe in the dist folder and upload it to virustotal(.)com. It'll pop hot for a trojan.

    #Security

  13. Иконки прямо в коде: как мы избавились от assets, портируя приложение на Linux и macOS

    Привет, Хабр! Мы в ChameleonLab разрабатываем тулкит для стеганографии, который уже работает на Windows и macOS . Сейчас мы портируем его на Linux, и, как это часто бывает, именно на этом этапе классические проблемы с ресурсами (иконками, картинками) проявили себя во всей красе. После релиза пользователи увидели наше решение и стали спрашивать, как оно устроено и почему приложение не тащит за собой папку с картинками. Раз уж сообществу это интересно, мы решили дать развёрнутый ответ. Расскажем, как встроили все иконки прямо в код с помощью SVG, и как внутренние итерации и поиски идеального решения привели нас к финальному варианту.

    habr.com/ru/articles/940180/

    #python #PyQt #PySide #Qt #SVG #векторная_графика #ui #PyInstaller #hidpi #кроссплатформенная_разработка

  14. VPN-клиент для Windows своими руками: L2TP, PPTP, маршруты и Telegram-уведомления

    Рабочая задача: развернуть VPN на MikroTik с поддержкой L2TP и PPTP, авторизация — через Radius. В роли серверов — стандартные для нас RouterOS CCR1016-12G. Параллельно возникло требование: подобрать клиент под Windows, чтобы можно было просто передать пользователям исполняемый файл, и они могли подключиться — без инструкций, .bat-файлов и шаманства.

    habr.com/ru/articles/928242/

    #vpnclient #mikrotik #python3 #pyinstaller #gui #l2tp #pptp #powershell

  15. Figured out how to create a Linux, MacOS (ARM) and Windows executable in a GitHub action for our PyGame mini game: github.com/jhutar/CatWars/blob

    Uploaded to jhutar.itch.io/catwars if you would be able to try if Windows and MacOS "builds" work - thank you 🙂

    #pygame #gamedev #pyinstaller

  16. Today I managed to cobble up a #Python script to remove your name from #PDF annotations using #PyMuPDF and #FreeSimpleGUI, then I tried #pyinstaller and I have something that seems to run on Linux... so many steps!!!

    It never ceases to amaze me how hard it its to provide software for other people to run!

    If you think it could be useful to you or someone, I AGPL licensed it here:

    github.com/villares/anonymize-

    UPDATE: @Introscopia built a Windows.exe version for me also using pyinstaller, yay!

  17. Today I managed to cobble up a #Python script to remove your name from #PDF annotations using #PyMuPDF and #FreeSimpleGUI, then I tried #pyinstaller and I have something that seems to run on Linux... so many steps!!!

    It never ceases to amaze me how hard it its to provide software for other people to run!

    If you think it could be useful to you or someone, I AGPL licensed it here:

    github.com/villares/anonymize-

    UPDATE: @Introscopia built a Windows.exe version for me also using pyinstaller, yay!

  18. @sirber though we don’t use ffmpeg, we do use #Python and #qt. We compile with #pyinstaller and the result is a regular standalone binary for our users.

  19. Простая защита скрипта на Python

    Стек : Python 3.11.7, ntplib, subprocess, getpass для времени, системы, пароля, PyArmor 8+ для обфускации. Сценарий: Разработано приложение, которое дает преимущество перед конкурентами, или ваш код содержит конфиденциальные данные. Приложение предстоит установить нескольким сотрудникам (можно увеличить количество немного изменив подход), при этом вы не планируете переносить часть логики на сервер. Возможны и другие сценарии, я описал наиболее на мой взгляд вероятный случай, когда такого рода защита может понадобиться. В данной статье я расскажу несколько способов, которые не дадут запустить приложение, где не следует, и скорее всего отобьют желание лишний раз лезть в ваш код.

    habr.com/ru/articles/851760/

    #PyArmor #PyArmor8+ #pyinstaller #защита #зависимости

  20. @w4ffl35 at work we use #pyinstaller and have been happy with the results.

  21. I want #pixi to build me a vent. I’ll use it in #pycharm to start but later #pyinstaller. Pixi wants to build things. It’s mad about A which can’t be built. It’s mad about my app, down inside B. Doesn’t like that my #pyprojecttoml is not at the top of B. Doesn’t like that my app can’t be built. My virtual environment has all the external packages it needs, but isn’t working in PyCharm because it doesn’t have any of the things I need from A.

    My app _will_ be getting a repo of its own.

  22. eSentire described two incidents today:

    Attack chains, IOC and Yara rules provided.

    #threatintel #IOC #Xworm #phishing #SolarMarker #PyInstaller

  23. eSentire described two incidents today:

    Attack chains, IOC and Yara rules provided.

    #threatintel #IOC #Xworm #phishing #SolarMarker #PyInstaller

  24. Как мы выследили новую APT-группу, которая похищает пароли и передает их телеграм-ботам

    При отслеживании киберугроз мы, специалисты экспертного центра безопасности Positive Technologies , в очередной раз засекли ранее неизвестную APT-группу. Хакеры орудуют в России, Беларуси, Казахстане и Армении, а также в Средней Азии (Узбекистане, Кыргызстане и Таджикистане). По нашим данным, от их атак пострадали организации в государственном и финансовом секторах, в сфере образования и медицины. Всего было скомпрометировано около 870 учетных записей сотрудников . На этот раз нас удивил почерк группировки, который можно описать как «сложно не значит лучше». Киберпреступники выделяются тем, что добиваются успеха, не прибегая к сложному инструментарию, сложным тактикам и техникам. Ознакомиться с полным отчетом, как обычно, можно Подключайтесь к расследованию

    habr.com/ru/companies/pt/artic

    #стилер #telegram #apt #расследование #учетные_данные #pyinstaller #кибергруппировки #cybercrime #государственные_учреждения #впо

  25. Same here: don't do it!

    At #PyInstaller we established a rule to generally not accept reformating code without functional changes. "This means that when looking at patches later, we don’t have to wade through loads of non-functional changes to get to the relevant parts of the patch."

    For more detailed reasoning see github.com/pyinstaller/pyinsta

    We established this rule 6 years ago, and it is still valid, even while maintainers changed since then.

    @steriana @pyOpenSci

  26. So, someone I know has fallen victim to a discord grabber thingy. Unfortunately, it doesn't just grab the discord token, but also all stored browser passwords - !Including bank details!!

    From what I can tell, it seems to be blank grabber, which is no longer under active development but still dangerous.

    Me and @max213 have tried reverse engineering the exe (it was compiled with pyinstaller) but to no luck. The malware runs as a background task and reports back to a webhook whenever a new discord login happens so that it can capture the token, so we aim to try retrieve the webhook URL in order to delete it so that the password can be safely reset.

    We managed to get the pyc files and partially decompile them using uncompyle, but it seems to use AES or whatever to run the code without antivirus noticing.

    If anyone could try and help, that would be amazing.

    The extracted .pyc files: cdn.discordapp.com/attachments

    Original EXE: cdn.discordapp.com/attachments

    #malware #reverseengineering #python #pyinstaller #decompile #grabber

  27. So, someone I know has fallen victim to a discord grabber thingy. Unfortunately, it doesn't just grab the discord token, but also all stored browser passwords - !Including bank details!!

    From what I can tell, it seems to be blank grabber, which is no longer under active development but still dangerous.

    Me and @max213 have tried reverse engineering the exe (it was compiled with pyinstaller) but to no luck. The malware runs as a background task and reports back to a webhook whenever a new discord login happens so that it can capture the token, so we aim to try retrieve the webhook URL in order to delete it so that the password can be safely reset.

    We managed to get the pyc files and partially decompile them using uncompyle, but it seems to use AES or whatever to run the code without antivirus noticing.

    If anyone could try and help, that would be amazing.

    The extracted .pyc files: cdn.discordapp.com/attachments

    Original EXE: cdn.discordapp.com/attachments

    #malware #reverseengineering #python #pyinstaller #decompile #grabber

  28. @nfoert yeah, #pyinstaller is great. I couldn't make it work 100% yet because the framework I use most (py5coding.org) is a bit hard to package, depending on a JDK/JVM.

    (also I hadn't figured fbs needed a license :-S)

  29. CW: distribuir "executáveis" de programação criativa com Python

    Meus amigos que manjam mais de #Python, será que rolaria fazer um #zipapp com o as dependenccias todas do #py5? itsthejoker.github.io/shiv-the

    O meu portable do #Thonny tem um lançador de um "script exemplo" com #pymunk que é bem fofo... dropbox.com/s/3ue4cx3yf372teg/

    Queria muito ser capaz de fazer um #AppImage para Linux e um "DMG Bundle" para Mac de um portable Thonny.

    Tem documentação de como usar o #pyinstaller com py5 mas meus resultados foram erráticos... py5coding.org/how_tos/pyinstal

    Parafraseando o Ramalho, a complexidade incidental me quebra as pernas...

  30. Playing around with packaging #PySide6 #Qt #Python apps for macOS and Windows executables this morning w/ #PyInstaller, and the excellent tutorials by @mfitzp are super helpful. Very clear, with downloadable sample projects for multiple platforms and versions of PySide/PyQt.

    pythonguis.com/tutorials/packa

    Awesome work, Martin.

  31. Been working this morning on making a Windows executable of my #Python #Qt COM Port Monitor tool, using #PyInstaller. Found this tutorial to be quite helpful in working out the kinks in the process:

    pythonguis.com/tutorials/packa