Created
          February 15, 2022 19:40 
        
      - 
      
- 
        Save ajtrichards/27c5e34ad01901bdaa40b6847934bc14 to your computer and use it in GitHub Desktop. 
    Get a list of the public facing IP's from an AWS region and then, using NMAP, run a port scan.
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | aws ec2 describe-network-interfaces --query NetworkInterfaces\[\].Association.PublicIp | jq -r '.[]' | xargs -I{} nmap -v -A -sV {} | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
For those not using
zshyou may be able to remove the back slashes in the command