Debian Codegraph @

hub1/.tests/pulse-secure-sslvpn-cve-2019-11510/scenario.assert

raw
1 len(results) == 2
2 "192.168.1.3" in results[0].Overflow.GetSources()
3 results[0].Overflow.Sources["192.168.1.3"].IP == "192.168.1.3"
4 results[0].Overflow.Sources["192.168.1.3"].Range == ""
5 results[0].Overflow.Sources["192.168.1.3"].GetScope() == "Ip"
6 results[0].Overflow.Sources["192.168.1.3"].GetValue() == "192.168.1.3"
7 results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "pulse-secure-sslvpn-cve-2019-11510.log"
8 results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file"
9 results[0].Overflow.Alert.Events[0].GetMeta("http_path") == "/dana-na/%2E%2E/dana/html5acc/guacamole/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/%2E%2E/etc/passwd?/dana/html5acc/guacamole/"
10 results[0].Overflow.Alert.Events[0].GetMeta("http_status") == "200"
11 results[0].Overflow.Alert.Events[0].GetMeta("http_user_agent") == "-"
12 results[0].Overflow.Alert.Events[0].GetMeta("http_verb") == "GET"
13 results[0].Overflow.Alert.Events[0].GetMeta("log_type") == "http_access-log"
14 results[0].Overflow.Alert.Events[0].GetMeta("service") == "http"
15 results[0].Overflow.Alert.Events[0].GetMeta("source_ip") == "192.168.1.3"
16 results[0].Overflow.Alert.GetScenario() == "crowdsecurity/pulse-secure-sslvpn-cve-2019-11510"
17 results[0].Overflow.Alert.Remediation == true
18 results[0].Overflow.Alert.GetEventsCount() == 1
19 "192.168.1.2" in results[1].Overflow.GetSources()
20 results[1].Overflow.Sources["192.168.1.2"].IP == "192.168.1.2"
21 results[1].Overflow.Sources["192.168.1.2"].Range == ""
22 results[1].Overflow.Sources["192.168.1.2"].GetScope() == "Ip"
23 results[1].Overflow.Sources["192.168.1.2"].GetValue() == "192.168.1.2"
24 results[1].Overflow.Alert.Events[0].GetMeta("datasource_path") == "pulse-secure-sslvpn-cve-2019-11510.log"
25 results[1].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file"
26 results[1].Overflow.Alert.Events[0].GetMeta("http_path") == "/dana-na/../dana/html5acc/guacamole/../../../../../../../etc/passwd?/dana/html5acc/guacamole/"
27 results[1].Overflow.Alert.Events[0].GetMeta("http_status") == "200"
28 results[1].Overflow.Alert.Events[0].GetMeta("http_user_agent") == "-"
29 results[1].Overflow.Alert.Events[0].GetMeta("http_verb") == "GET"
30 results[1].Overflow.Alert.Events[0].GetMeta("log_type") == "http_access-log"
31 results[1].Overflow.Alert.Events[0].GetMeta("service") == "http"
32 results[1].Overflow.Alert.Events[0].GetMeta("source_ip") == "192.168.1.2"
33 results[1].Overflow.Alert.GetScenario() == "crowdsecurity/pulse-secure-sslvpn-cve-2019-11510"
34 results[1].Overflow.Alert.Remediation == true
35 results[1].Overflow.Alert.GetEventsCount() == 1