Voltron是macOS下lldb的一个插件,在使用的时候会遇到诸多的问题。
在lldb filename文件时,其中之一的log:
➜ lldb cmdshellcode
An error occurred while loading Voltron:
Traceback (most recent call last):
File "/Users/username/Library/Python/2.7/lib/python/site-packages/voltron/entry.py", line 106, in <module>
voltron.server.start()
File "/Users/username/Library/Python/2.7/lib/python/site-packages/voltron/core.py", line 162, in start
run_listener('tcp', ThreadedVoltronWSGIServer, list(voltron.config.server.listen.tcp) + [self.app])
File "/Users/username/Library/Python/2.7/lib/python/site-packages/voltron/core.py", line 154, in run_listener
s = cls(*arg)
File "/Users/username/Library/Python/2.7/lib/python/site-packages/werkzeug/serving.py", line 577, in __init__
self.address_family), handler)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 420, in __init__
self.server_bind()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 434, in server_bind
self.socket.bind(self.server_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
error: [Errno 48] Address already in use
Please ensure Voltron is installed correctly per the documentation: https://github.com/snare/voltron/wiki/Installation
(lldb) target create "cmdshellcode"
Current executable set to 'cmdshellcode' (x86_64).
Voltron默认配置使用5555端口进行RPC通讯,找到相应的port,kill即可。
➜ lsof -i:5555
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
lldb 2739 username 5u IPv4 0xc79083f2b460cbbd 0t0 TCP localhost:personal-agent (LISTEN)
➜ kill 2739
[1] + 2739 terminated lldb filename