Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
praetorian-thendrickson committed Jan 12, 2023
1 parent a170c47 commit de68181
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/plugins/services/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (p *HTTPSPlugin) Run(

technologies, _ := p.FingerprintResponse(resp)

payload := plugins.ServiceHTTP{
payload := plugins.ServiceHTTPS{
Status: resp.Status,
StatusCode: resp.StatusCode,
ResponseHeaders: resp.Header,
Expand Down
8 changes: 4 additions & 4 deletions pkg/scan/simple_scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (c *Config) UDPScanTarget(target plugins.Target) (*plugins.Service, error)
return nil, fmt.Errorf("unable to connect, err = %w", err)
}
result, err := simplePluginRunner(conn, target, c, plugin)
if result != nil && err != nil {
if result != nil && err == nil {
return result, nil
}
}
Expand Down Expand Up @@ -108,7 +108,7 @@ func (c *Config) SimpleScanTarget(target plugins.Target) (*plugins.Service, erro
target.Address.String(),
)
}
if result != nil && err != nil {
if result != nil && err == nil {
return result, nil
}
}
Expand Down Expand Up @@ -139,7 +139,7 @@ func (c *Config) SimpleScanTarget(target plugins.Target) (*plugins.Service, erro
target.Address.String(),
)
}
if result != nil && err != nil {
if result != nil && err == nil {
// identified plugin match
return result, nil
}
Expand Down Expand Up @@ -177,7 +177,7 @@ func (c *Config) SimpleScanTarget(target plugins.Target) (*plugins.Service, erro
target.Address.String(),
)
}
if result != nil && err != nil {
if result != nil && err == nil {
// identified plugin match
return result, nil
}
Expand Down

0 comments on commit de68181

Please sign in to comment.