GCP Region issue
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with attack_range.py and follow the simulate path into modules/gcp_controller.py, modules/art_simulation_controller.py, and modules/gcp_service.py. Reproduce the attack using the reported region and zone settings, then inspect get_single_instance_public_ip around the failing network interface lookup. Done means the configured GCP region and zone no longer lead to this AttributeError during an attack.
由索引模型根据 Issue 内容生成。
描述
I have set up the attack range on my Mac and connected to GCP. However, when I run the attack command, it gives the below error.
Traceback (most recent call last):
File "/Users/a/Desktop/s/attack_range/attack_range.py", line 349, in
main(sys.argv[1:])
~~~~^^^^^^^^^^^^^^
File "/Users/a/Desktop/s/attack_range/attack_range.py", line 345, in main
return args.func(args)
~~~~~~~~~^^^^^^
File "/Users/a/Desktop/s/attack_range/attack_range.py", line 73, in simulate
controller.simulate(args.engine, args.target, args.technique, args.playbook)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/a/Desktop/s/attack_range/modules/gcp_controller.py", line 143, in simulate
simulation_controller.simulate(target, technique)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/Users/a/Desktop/s/attack_range/modules/art_simulation_controller.py", line 62, in simulate
target_public_ip = gcp_service.get_single_instance_public_ip(
target,
self.config["general"]["key_name"],
self.config["gcp"]["region"],
)
File "/Users/a/Desktop/s/attack_range/modules/gcp_service.py", line 102, in get_single_instance_public_ip
.network_interfaces[0]
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'network_interfaces'
even though I have this config in the YML
region: europe-west3
zone: europe-west3-a
- 主要语言
- Python
- 星标
- 2.6k
- 派生
- 418
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
splunk/attack_range 的其他 Issue
-
难度 5/5 一周以上 新手友好度 30/100
splunk/attack_range#1428 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
splunk/attack_range#1415 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
splunk/attack_range#1368 · 2 条评论 ·
维护者通常 2 天内回复
-
[BUG] Terrafrom error content not detected in API可能已有人在做 @cray44 于 152 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
splunk/attack_range#1367 ·
维护者通常 2 天内回复
-
[BUG] Terminal colors encodings visible in app logs可能已有人在做 @cray44 于 152 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 48/100
splunk/attack_range#1366 · 2 条评论 ·
维护者通常 2 天内回复
查看 splunk/attack_range 的全部 Issue
相似的 Issue
-
area/install reliability
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
FluidNumerics/fluid-walk-blocker#191 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
TransformerLensOrg/TransformerLens#1868 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
climate-analytics-lab/jax-gcm#1057 ·
维护者通常 1 天内回复