hacktricks/cloud-security/gcp-security/gcp-network-enumeration.md

22 lines
679 B
Markdown
Raw Normal View History

2021-10-24 23:51:22 +00:00
# GCP - Network Enumeration
## Network Enumeration
2021-10-25 14:30:32 +00:00
### Compute
```bash
# 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
```
2021-10-28 10:44:24 +00:00
You easily find compute instances with open firewall rules with [https://gitlab.com/gitlab-com/gl-security/security-operations/gl-redteam/gcp\_firewall\_enum](https://gitlab.com/gitlab-com/gl-security/security-operations/gl-redteam/gcp\_firewall\_enum)