Skip to content

Metasploit install example issues with rvm #13

Description

@fsacer

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions