When a database is connected, the payload/generic/shell_bind_aws_ssm fails to establish a session.
Steps to reproduce
- Disconnect the database
- Setup an SSM target (reach out to me and I'll share my test environment to speed things up)
- Set the
ACCESS_KEY_ID, EC2_ID, REGION and SECRET_ACCESS_KEY datastore options
- Run the module and see that you get a session
- Connect a database and run the module, see that you get no session
Expected behavior
You should get a session regardless of the database state.