zww_dtcloud

This commit is contained in:
李超 2025-03-04 18:59:59 +08:00
parent 2ba4a122d8
commit 38c3a94dd6
28 changed files with 16 additions and 16 deletions

View File

@ -1,4 +1,4 @@
cookie: vindex==3c=1b=0AB00=0R;supportLang=cn%2Cen;lang=cn;sessionid=2000013666a3120a259d2168127d3effcc7f;loginid=5019bf444a0cef5efea2b72e1bfc0e46;2000013666a3120a259d2168127d3effcc7f=true;abcd1234=true;login=false; cookie: vindex==3d=12=0AB00=0R;supportLang=cn%2Cen;lang=cn;sessionid=200001f37df07e070a16626f789e077d30b6;loginid=76b6606cf249627932735f8f0aac3324;200001f37df07e070a16626f789e077d30b6=true;abcd1234=true;login=false;
mysql: mysql:
port: 3306 port: 3306
url: 127.0.0.1 url: 127.0.0.1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 KiB

After

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 KiB

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 269 KiB

After

Width:  |  Height:  |  Size: 269 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 KiB

After

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 259 KiB

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 225 KiB

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 290 KiB

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 382 KiB

After

Width:  |  Height:  |  Size: 386 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 233 KiB

After

Width:  |  Height:  |  Size: 247 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 259 KiB

After

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 KiB

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 KiB

After

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 KiB

After

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 KiB

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 KiB

After

Width:  |  Height:  |  Size: 654 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 KiB

After

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 KiB

After

Width:  |  Height:  |  Size: 155 KiB

12
main.go
View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"dt_automate/attackevent"
"dt_automate/tool" "dt_automate/tool"
"dt_automate/wps"
"flag" "flag"
"fmt" "fmt"
"log" "log"
@ -73,19 +73,19 @@ func main() {
// method.HW_DTCLOUD() //截取运维中心的图片 // method.HW_DTCLOUD() //截取运维中心的图片
// method.HW_BAOLJ() //截取堡垒机的图片 // method.HW_BAOLJ() //截取堡垒机的图片
// //政务网区截图 // // //政务网区截图
// method.ZWW_FW1() //截取防火墙的图片 // method.ZWW_FW1() //截取防火墙的图片
// method.ZWW_TSGZ() //截取态势感知的图片 // method.ZWW_TSGZ() //截取态势感知的图片
// method.ZWW_DTCLOUD() //截取运维中心的图片 // method.ZWW_DTCLOUD() //截取运维中心的图片
// method.ZWWW_BAOLJ() //截取堡垒机的图片 // method.ZWWW_BAOLJ() //截取堡垒机的图片
//互联网区运维巡检文档生成 //互联网区运维巡检文档生成
// wps.HW_SYS_Word() //运维平台word文档生成 wps.HW_SYS_Word() //运维平台word文档生成
// //政务网区运维巡检文档生成 // //政务网区运维巡检文档生成
// wps.ZWW_SYS_Word() //运维平台word文档生成 wps.ZWW_SYS_Word() //运维平台word文档生成
// //安全巡检文档生成 // //安全巡检文档生成
// wps.SAFET_Word() //安全巡检文档生成 wps.SAFET_Word() //安全巡检文档生成
//安全事件表格生成(需要先执行互联网区防火墙截图) //安全事件表格生成(需要先执行互联网区防火墙截图)
attackevent.Fw_event(attackevent.HW_fw1_cookie()) //将防火墙安全事件存放到xlsx文件中 // attackevent.Fw_event(attackevent.HW_fw1_cookie()) //将防火墙安全事件存放到xlsx文件中
} }
} else { } else {
log.Println("没有授权") log.Println("没有授权")

View File

@ -64,7 +64,7 @@ func ZWW_DTCLOUD() {
if err := page.Locator(".el-button.login-form-item.login-btn.el-button--primary").Click(); err != nil { if err := page.Locator(".el-button.login-form-item.login-btn.el-button--primary").Click(); err != nil {
log.Fatalf("could not click button: %v", err) log.Fatalf("could not click button: %v", err)
} }
page.WaitForTimeout(7000) page.WaitForTimeout(10000)
//运维中心主页 //运维中心主页
page.Screenshot(playwright.PageScreenshotOptions{ page.Screenshot(playwright.PageScreenshotOptions{
Path: playwright.String("img/zww_dtcloud_man.png"), Path: playwright.String("img/zww_dtcloud_man.png"),
@ -73,7 +73,7 @@ func ZWW_DTCLOUD() {
// tool.Jietu("img/hw_dtcloud_man.png") // tool.Jietu("img/hw_dtcloud_man.png")
page.Goto("https://ops.zww.dtcloud.com/console/om/capacity/overview?regionId=-1", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //跳转到运维中心概览 page.Goto("https://ops.zww.dtcloud.com/console/om/capacity/overview?regionId=-1", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //跳转到运维中心概览
page.WaitForTimeout(6000) page.WaitForTimeout(10000)
page.Screenshot(playwright.PageScreenshotOptions{ page.Screenshot(playwright.PageScreenshotOptions{
Path: playwright.String("img/zww_dtcloud_01.png"), Path: playwright.String("img/zww_dtcloud_01.png"),
FullPage: playwright.Bool(false), FullPage: playwright.Bool(false),
@ -81,7 +81,7 @@ func ZWW_DTCLOUD() {
// tool.Jietu("img/hw_dtcloud_01.png") // tool.Jietu("img/hw_dtcloud_01.png")
page.Goto("https://ops.zww.dtcloud.com/console/om/capacity/resource?regionId=-1", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //运维-资源容量 page.Goto("https://ops.zww.dtcloud.com/console/om/capacity/resource?regionId=-1", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //运维-资源容量
page.WaitForTimeout(6000) page.WaitForTimeout(10000)
page.Screenshot(playwright.PageScreenshotOptions{ page.Screenshot(playwright.PageScreenshotOptions{
Path: playwright.String("img/zww_dtcloud_02.png"), Path: playwright.String("img/zww_dtcloud_02.png"),
FullPage: playwright.Bool(false), FullPage: playwright.Bool(false),
@ -89,7 +89,7 @@ func ZWW_DTCLOUD() {
// tool.Jietu("img/hw_dtcloud_02.png") // tool.Jietu("img/hw_dtcloud_02.png")
page.Goto("https://ops.zww.dtcloud.com/region/dtcloud2/console/om/monitor/overview", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //监控-概览 page.Goto("https://ops.zww.dtcloud.com/region/dtcloud2/console/om/monitor/overview", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //监控-概览
page.WaitForTimeout(6000) page.WaitForTimeout(10000)
page.Screenshot(playwright.PageScreenshotOptions{ page.Screenshot(playwright.PageScreenshotOptions{
Path: playwright.String("img/zww_dtcloud_03.png"), Path: playwright.String("img/zww_dtcloud_03.png"),
FullPage: playwright.Bool(false), FullPage: playwright.Bool(false),
@ -97,7 +97,7 @@ func ZWW_DTCLOUD() {
// tool.Jietu("img/hw_dtcloud_03.png") // tool.Jietu("img/hw_dtcloud_03.png")
page.Goto("https://ops.zww.dtcloud.com/region/dtcloud2/console/om/monitor/resource", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //监控-资源监控-物理服务器 page.Goto("https://ops.zww.dtcloud.com/region/dtcloud2/console/om/monitor/resource", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //监控-资源监控-物理服务器
page.WaitForTimeout(4000) page.WaitForTimeout(10000)
page.Locator(`.arco-tree.arco-tree-show-line`).Locator(`div`).Nth(8).Locator(`span`).Nth(2).Locator(`span`).Nth(0).Click() page.Locator(`.arco-tree.arco-tree-show-line`).Locator(`div`).Nth(8).Locator(`span`).Nth(2).Locator(`span`).Nth(0).Click()
page.Locator(`div[data-test-id="PhysicalServer"]`).Click() page.Locator(`div[data-test-id="PhysicalServer"]`).Click()
page.WaitForTimeout(2000) page.WaitForTimeout(2000)
@ -108,7 +108,7 @@ func ZWW_DTCLOUD() {
// tool.Jietu("img/hw_dtcloud_04.png") // tool.Jietu("img/hw_dtcloud_04.png")
page.Goto("https://ops.zww.dtcloud.com/region/dtcloud2/console/om/alert/view", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //监控-告警-告警查看 page.Goto("https://ops.zww.dtcloud.com/region/dtcloud2/console/om/alert/view", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //监控-告警-告警查看
page.WaitForTimeout(6000) page.WaitForTimeout(10000)
page.Locator(`.arco-space-item`).Nth(0).Locator(`div`).Nth(1).Locator(`button`).Click() page.Locator(`.arco-space-item`).Nth(0).Locator(`div`).Nth(1).Locator(`button`).Click()
page.WaitForTimeout(6000) page.WaitForTimeout(6000)
page.Screenshot(playwright.PageScreenshotOptions{ page.Screenshot(playwright.PageScreenshotOptions{
@ -118,7 +118,7 @@ func ZWW_DTCLOUD() {
// tool.Jietu("img/hw_dtcloud_05.png") // tool.Jietu("img/hw_dtcloud_05.png")
page.Goto("https://ops.zww.dtcloud.com/region/dtcloud2/console/om/alert/history", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //监控-告警历史 page.Goto("https://ops.zww.dtcloud.com/region/dtcloud2/console/om/alert/history", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //监控-告警历史
page.WaitForTimeout(6000) page.WaitForTimeout(10000)
page.Locator(`.arco-btn.arco-btn-outline.arco-btn-size-default.arco-btn-shape-square`).Nth(0).Click() page.Locator(`.arco-btn.arco-btn-outline.arco-btn-size-default.arco-btn-shape-square`).Nth(0).Click()
page.WaitForTimeout(1000) page.WaitForTimeout(1000)
page.Locator(`.arco-input-tag-input.arco-input-tag-input-size-default.arco-input-tag-input-autowidth`).Click() page.Locator(`.arco-input-tag-input.arco-input-tag-input-size-default.arco-input-tag-input-autowidth`).Click()
@ -132,7 +132,7 @@ func ZWW_DTCLOUD() {
// tool.Jietu("img/hw_dtcloud_06.png") // tool.Jietu("img/hw_dtcloud_06.png")
page.Goto("https://ops.zww.dtcloud.com/region/dtcloud2/console/om/health-inspection/outputs?page=1&size=10&order=createTime%3Adesc&searchResult=%7B%7D", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //运维-监控巡检-巡检结果 page.Goto("https://ops.zww.dtcloud.com/region/dtcloud2/console/om/health-inspection/outputs?page=1&size=10&order=createTime%3Adesc&searchResult=%7B%7D", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //运维-监控巡检-巡检结果
page.WaitForTimeout(6000) page.WaitForTimeout(10000)
page.Screenshot(playwright.PageScreenshotOptions{ page.Screenshot(playwright.PageScreenshotOptions{
Path: playwright.String("img/zww_dtcloud_07.png"), Path: playwright.String("img/zww_dtcloud_07.png"),
FullPage: playwright.Bool(false), FullPage: playwright.Bool(false),
@ -140,7 +140,7 @@ func ZWW_DTCLOUD() {
// tool.Jietu("img/hw_dtcloud_07.png") // tool.Jietu("img/hw_dtcloud_07.png")
page.Goto("https://ops.zww.dtcloud.com/console/om/capacity/service?regionId=-1", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //运维-容量-云服务容量 page.Goto("https://ops.zww.dtcloud.com/console/om/capacity/service?regionId=-1", playwright.PageGotoOptions{WaitUntil: playwright.WaitUntilStateDomcontentloaded}) //运维-容量-云服务容量
page.WaitForTimeout(6000) page.WaitForTimeout(10000)
page.Screenshot(playwright.PageScreenshotOptions{ page.Screenshot(playwright.PageScreenshotOptions{
Path: playwright.String("img/zww_dtcloud_08.png"), Path: playwright.String("img/zww_dtcloud_08.png"),
FullPage: playwright.Bool(false), FullPage: playwright.Bool(false),

Binary file not shown.