barq icon indicating copy to clipboard operation
barq copied to clipboard

Export/Import ec2 Instances, Handle Exception, and Update Dependencies

Open Humoud opened this issue 2 years ago • 0 comments

Thanks for releasing this tool.

Below is a list of changes made, note that in the screenshots, I redacted some IPs, domains, and IDs. This is why they might look a bit weird.

Implemented the following:

  1. Export ec2 instance details to a csv file:

    • image
  2. Import ec2 instance details from csv file:

    • Mainly to avoid re-running attacksurface for certain cases
    • Launched an attack after importing a csv file and it was successful, this made testing easier:
    • image
  3. Handling InvalidInstanceId exception which is thrown when attempting to run a command on a target instance which does not have AWS Systems Manager configured. Also displaying a descriptive message when the exception is caught:

    • image
  4. Updated everything in requirements.txt except clint.

I would like to apologies for the following:

  1. I did not implement support or test the code on Python 2.
  2. I did not run a test against an ec2 instance running Windows.

Humoud avatar Mar 18 '22 22:03 Humoud