Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory collection fails without explanation #32

Open
mgg1776 opened this issue Dec 14, 2018 · 1 comment
Open

Memory collection fails without explanation #32

mgg1776 opened this issue Dec 14, 2018 · 1 comment

Comments

@mgg1776
Copy link

mgg1776 commented Dec 14, 2018

I've tried installing margaritashotgun on a stock marketplace Ubuntu Server 16.04 EC2 instance in AWS and VM in Azure, both as a regular installation and in a virtual environment.

In both I get the following when executing:

$ margaritashotgun --server <target_host_ip> --username <target_host_username> --key <path_to_private_key> --filename memdump.bin --output-dir . --log-dir . --module lime-4.4.0-1072-aws.ko 
2018-12-14T02:07:23 - margaritashotgun.client - INFO - 1 hosts processed. completed: 0 failed 1
2018-12-14T02:07:23 - margaritashotgun.client - INFO - completed_hosts: []
2018-12-14T02:07:23 - margaritashotgun.client - INFO - failed_hosts: ['<target_host_ip>']

The memory-capture.log file is empty in all occurrences of this error:

$ cat memory-capture.log 
[
]

Are there any other log files that might indicate what the problem is?

@mgg1776
Copy link
Author

mgg1776 commented Dec 14, 2018

So it might be that I was installing margaritashotgun via python3 pip instead of python2 pip.

I did it again with python2 pip via a straight install (no virtual env), and it worked with the exception of the wrong python binary being referenced on the shebang line of

$ which python
/usr/bin/python

$ which margaritashotgun 
/home/ubuntu/.local/bin/margaritashotgun

$ cat /home/ubuntu/.local/bin/margaritashotgun | head -n 1
#!/usr/local/opt/python/bin/python2.7

I changed the shebang to my default system python2 binary and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant