mhaskar / Octopus

Open source pre-operation C2 server based on python and powershell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

modules directory not Available

chr0n1k opened this issue · comments

I get the error [-] modules directory not Available when interacting with agent and trying to load other PS scripts

image

commented

Thanks for reporting,

Can you please give me the results of the command ls.

Also, Can you please share with me how you started Octopus and from any directory?

Regards.

I have Octopus installed in /opt/Octopus and started it using python3 /opt/Octopus/octopus.py

image

ls command is executed but executes on target as expected

Used powershell and hta payloads on the target which both gave the same error.

commented

Ok, I think I got the problem, when you execute python3 /opt/Octopus/octopus.py from outside /opt/Octopus, Python will serve modules directory from the main directory you executed python3 /opt/Octopus/octopus.py from.

To solve this issue, you need to do the following:

  • Change the current directory to /opt/Octopus using the following command cd /opt/Octopus
  • Run python3 Octopus.py

That should solve the problem.

Please try it and get back to me!

It worked. Thanks for clarifying that out.