python植入后门backdoor程序的方法?

后门程序

from gevent.backdoor import BackdoorServer
server = BackdoorServer(('127.0.0.1', 5001),
                        banner="Hello from gevent backdoor!",
                        locals={'foo': "From defined scope!"})
server.serve_forever()

使用telnet链接后门,可以使用里面的python编译器查看程序运行情况

$ telnet 127.0.0.1 5001
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Hello from gevent backdoor!
>> print(foo)
From defined scope!

 

 

http://www.gevent.org/api/gevent.backdoor.html

posted @ 2018-12-18 00:46  脚本小娃子  阅读(869)  评论(0编辑  收藏  举报