Skip to content

Commit

Permalink
Run ssl-cert NSE script.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 672707622
Change-Id: I5a5f74e2263bc6a66a80f931d7a1baade482b4ec
  • Loading branch information
magl0 authored and copybara-github committed Sep 9, 2024
1 parent 646ed26 commit 4be9797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public PortScanningReport scan(ScanTarget scanTarget) {
.withServiceAndVersionDetection()
.withVersionDetectionIntensity(5)
.withScript("banner")
.withScript("ssl-cert")
.withScript("ssl-enum-ciphers")
.withScript("http-methods", "http.useragent=" + httpClientCliOptions.userAgent)
.withTimingTemplate(TimingTemplate.AGGRESSIVE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ public void run_whenNmapRunHasScripts_returnsSslVersionsAndHttpMethods() throws

@Test
public void run_whenNmapRunHasScriptsButOptionsUnsupported_returnsHttpMethods() throws Exception {
doReturn(loadNmapRun("testdata/localhostHttpWithoutMethods.xml"))
.when(nmapClient)
.run(any());
doReturn(loadNmapRun("testdata/localhostHttpWithoutMethods.xml")).when(nmapClient).run(any());
NetworkEndpoint networkEndpoint = NetworkEndpointUtils.forIp("127.0.0.1");
assertThat(
portScanner.scan(ScanTarget.newBuilder().setNetworkEndpoint(networkEndpoint).build()))
Expand Down

0 comments on commit 4be9797

Please sign in to comment.