byt3bl33d3r / SILENTTRINITY

An asynchronous, collaborative post-exploitation agent powered by Python and .NET's DLR
GNU General Public License v3.0
2.18k stars 403 forks source link

[BUG] Not able to run st.py #158

Open fried213 opened 3 years ago

fried213 commented 3 years ago

Context

This is my first time running silent trinity

Expected Behavior

should be able to run st.py teamserver

Current Behavior

it fails and doesn't run with error message below

Failure Information

Note that I've never gotten it to work. This is my first time running the tool

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. run "sudo python3 st.py teamserver 127.0.0.1 cpassword" ...

Failure Logs

~/SILENTTRINITY$ sudo python3 st.py teamserver 127.0.0.1 password 2020-10-14 14:00:47,131 8896 IPCServer - [DEBUG] ipcserver.py: run - Started IPC server on 127.0.0.1:60026 2020-10-14 14:00:47,229 8896 MainThread - [DEBUG] selector_events.py: init - Using selector: EpollSelector Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "st.py/main.py", line 3, in File "st.py/_bootstrap/init.py", line 233, in bootstrap File "st.py/_bootstrap/init.py", line 36, in run File "/home/azureuser/.shiv/st_e08a189f912c98d510f2295214eb69376b58a5fda84586b27d39aae149f46a38/site-packages/silenttrinity/main.py", line 22, in run teamserver.start(docopt(teamserver.doc, argv=args[""])) File "/home/azureuser/.shiv/st_e08a189f912c98d510f2295214eb69376b58a5fda84586b27d39aae149f46a38/site-packages/silenttrinity/core/teamserver/main.py", line 201, in start loop.run_until_complete(server(stop, args, teamserver_digest)) File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete return future.result() File "/home/azureuser/.shiv/st_e08a189f912c98d510f2295214eb69376b58a5fda84586b27d39aae149f46a38/site-packages/silenttrinity/core/teamserver/main.py", line 148, in server ts = TeamServer() File "/home/azureuser/.shiv/st_e08a189f912c98d510f2295214eb69376b58a5fda84586b27d39aae149f46a38/site-packages/silenttrinity/core/teamserver/main.py", line 40, in init self.loop = asyncio.get_running_loop() AttributeError: module 'asyncio' has no attribute 'get_running_loop'

byt3bl33d3r commented 3 years ago

@fried213 You're either running an old Python version or your Python install is broken.