byt3bl33d3r / Red-Baron

Automate creating resilient, disposable, secure and agile infrastructure for Red Teams
GNU General Public License v3.0
373 stars 73 forks source link

Metasploit install rvm issues #9

Open fsacer opened 5 years ago

fsacer commented 5 years ago

Metasploit install script not working with example as user is not root which makes this a single user install according to https://rvm.io/rvm/install this would mean you need to add echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile for it to source properly and re-source the bash profile or run the bash script as root.

This fails the install with

module.http_c2.azurerm_virtual_machine.http-c2 (remote-exec): /tmp/terraform_1736744011.sh: line 9: rvm: command not found
module.http_c2.azurerm_virtual_machine.http-c2 (remote-exec): /tmp/terraform_1736744011.sh: line 10: gem: command not found
module.http_c2.azurerm_virtual_machine.http-c2 (remote-exec): /tmp/terraform_1736744011.sh: line 11: bundle: command not found

Error: Error applying plan:

1 error(s) occurred:

* module.http_c2.azurerm_virtual_machine.http-c2: error executing "/tmp/terraform_1736744011.sh": Process exited with status 127

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.