推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
alex8224
V2EX  ›  Python

将任意 Bytecode 注入运行中的 Python 进程

  •  
  •   alex8224 ·
    alex8224 · May 21, 2015 · 4545 views
    This topic created in 4020 days ago, the information mentioned may be changed or developed.

    今天我从 Btrace 这个项目得到灵感, 结合 Pyasite (https://kenai.com/projects/btrace)
    Byteplay ( https://github.com/serprex/bytepla) ,实现了一个简陋版本的例子,实现对正在运行的Python进程进行在线调试.
    因为内容太长, 需要到 http://segmentfault.com/a/1190000002783940 看原文.

    3 replies    2015-05-22 11:39:01 +08:00
    ratazzi
        1
    ratazzi  
       May 21, 2015
    gevent 自带的 backdoor 也可以做到类似的效果
    Keyes
        2
    Keyes  
       May 21, 2015
    不知道能不能注入到EVE(没错CCP那个沙盒游戏)中来做点坏事/:坏笑
    alex8224
        3
    alex8224  
    OP
       May 22, 2015
    @Keyes EVE如果对库进行过一些裁剪,就不行了 :)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1056 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 23:36 · PVG 07:36 · LAX 16:36 · JFK 19:36
    ♥ Do have faith in what you're doing.