HackTricks
Searchโ€ฆ
๐Ÿ‘ฝ
Network Services Pentesting
GCP - Network Enumeration
Support HackTricks and get benefits!

Network Enumeration

Compute

# List networks
gcloud compute networks list
gcloud compute networks describe <network>
โ€‹
# List subnetworks
gcloud compute networks subnets list
gcloud compute networks subnets get-iam-policy <name> --region <region>
gcloud compute networks subnets describe <name> --region <region>
โ€‹
# List FW rules in networks
gcloud compute firewall-rules list
You easily find compute instances with open firewall rules with https://gitlab.com/gitlab-com/gl-security/security-operations/gl-redteam/gcp_firewall_enumโ€‹
Support HackTricks and get benefits!