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] Unhandled exception in event loop #156

Open punchdrunktux opened 4 years ago

punchdrunktux commented 4 years ago

Attempting to use ST teamserver and client on Kali rolling 2020. The client connects to the teamserver successfully, but as soon as I type "use" + spacebar i get the error below. Note, the error happens once i press space.

Using Kali Rolling 2020, installed ST 0

Expected Behavior

To either get the context help or be able to finish the command (e.g. use listener)

Current Behavior

Receive an "unhandled exception in event loop" error.

Failure Information

Unhandled exception in event loop:
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/root/.shiv/st_c074f787e9c2d63263caee22a902443d1770bab9b3f6f6dcc4d695e5c2a40684/site-packages/prompt_toolkit/eventloop/async_generator.py", line 43, in runner
    for item in get_iterable():
  File "/root/.shiv/st_c074f787e9c2d63263caee22a902443d1770bab9b3f6f6dcc4d695e5c2a40684/site-packages/silenttrinity/core/client/cmdloop.py", line 60, in get_completions
    for loadable in self.cli_menu.current_context.available:

Exception 'STShell' object has no attribute 'available'

Please help provide information about the failure if this is a bug.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Start teamserver
  2. Start client
  3. in client, type "use "

Failure Logs

Same as above.

d-sec-net commented 4 years ago

Use doesnt work in that context. I think this will be down to the auto completion/prompt implementation that is throwing that error. The use function/option is only available when interacting with modules. So run modules first then you can use, use.

useuseuse