mhaskar / Octopus

Open source pre-operation C2 server based on python and powershell
GNU General Public License v3.0
733 stars 155 forks source link

modules directory not Available #10

Closed chr0n1k closed 4 years ago

chr0n1k commented 4 years ago

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

image

mhaskar commented 4 years ago

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.

chr0n1k commented 4 years ago

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.

chr0n1k commented 4 years ago

image

mhaskar commented 4 years ago

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:

That should solve the problem.

Please try it and get back to me!

chr0n1k commented 4 years ago

It worked. Thanks for clarifying that out.