GithubHelp home page GithubHelp logo

soufianely / cloud-penetration-testing-and-red-teaming Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ramikahmed/cloud-penetration-testing-and-red-teaming

0.0 1.0 0.0 9.44 MB

Tools, Resources & Helpful Tips

PowerShell 65.67% Shell 34.33%

cloud-penetration-testing-and-red-teaming's Introduction

Cloud-Penetration-Testing-and-Red-Teaming

Tools, Resources & Helpful Tips

All-in-one

Cloud Assets Discovery

Spidering websites to extract cloud assets

  • using gospider
gospider -d 0 -a -w -r   --js --sitemap --robots -q  -u web -s http://domain.com | sed 's|.*]||' | awk '{print $2}' | egrep -i 'azure|azurewebsites.net|cloudapp.net|core.windows.net|awsapps.com|s3.amazonaws.com|s3|blob|amazonaws.com|digitaloceanspaces|aliyuncs.com|googleapis'
  • using lolruslove.py
python lolruslove.py http://domain.com  2>&1 | grep  -i url | cut -d"]" -f 2 | egrep -i 'azure|azurewebsites.net|cloudapp.net|core.windows.net|awsapps.com|s3.amazonaws.com|s3|blob|amazonaws.com|digitaloceanspaces|aliyuncs.com|googleapis' | awk '{print $2}'
  • using shodan
shodan download out-file 'hostname:<domain>' --limit -1 && sudo gunzip out-file.json.gz && sudo shodan parse --fields ip_str,port,org,hostnames,location.country_name,org,domains out-file.json | egrep -i 'azure|azurewebsites.net|cloudapp.net|core.windows.net|awsapps.com|s3.amazonaws.com|s3|blob|amazonaws.com|digitaloceanspaces|aliyuncs.com|googleapis'

Azure

Searching for keys,secrets and others locally ( on-premise )

  • look for users who use Azure by searching for .Azure dir in their profiles
Get-ChildItem -Path C:\users\* -Recurse -Filter ".azure" | % { write-host $_.fullname -ForegroundColor green }

Content Discovery for cloud Assets

YAML rules to use with Nuclei Scanner

  • Azure-Cloud-Storage-detect.yaml

    cat urls | nuclei -t Azure-Cloud-Storage-detect.yaml 
    
  • Azure-Cloud-Websites-detect.yaml

    cat urls | nuclei -t Azure-Cloud-Websites-detect.yaml
    

AWS

Searching for keys,secrets and others locally ( on-premise )

  • look for users who use AWS by searching for .aws dir in their profiles
Get-ChildItem -Path C:\users\* -Recurse -Filter ".aws" | % { write-host $_.fullname -ForegroundColor green }

YAML rules to use with Nuclei Scanner

  • amazon-s3-detect.yaml

    cat urls | nuclei -t amazon-s3-detect.yaml
    
  • amazon-LB.yaml

    cat urls | nuclei -t amazon-LB.yaml
    

all-in-one

Searching for keys,secrets and others locally ( on-premise )

Get-ChildItem -Path C:\users\* -Recurse -Include ('*.azure','*.aws')  | % { write-host $_.fullname -ForegroundColor green }

Awesome github repos

cloud-penetration-testing-and-red-teaming's People

Contributors

ramikahmed avatar tr0cks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.