April 2019
Intermediate to advanced
508 pages
11h 57m
English
The run and exec commands do the same thing, in that they run modules. Let's say we want to run the ec2__enum module. We could first run help ec2__enum to get some information about it, including what arguments are supported. Then, we could run the module with run or exec and pass any arguments in with that command.
If we wanted to enumerate EC2 instances in the us-east-1 region, we could run the following command:
run ec2__enum --instances --regions us-east-1

As you can see, we specified the --instances argument to only enumerate EC2 instances, ...
Read now
Unlock full access