Skip to content

Commit

Permalink
Change curl errors from debug to error level
Browse files Browse the repository at this point in the history
  • Loading branch information
Ullaakut committed Jun 15, 2019
1 parent a6ed312 commit 151fbb2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions attack.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,13 @@ func (s *Scanner) detectAuthMethod(stream Stream) int {
// Perform the request.
err := c.Perform()
if err != nil {
s.term.Debugf("Perform failed: %v", err)
s.term.Errorf("Perform failed: %v", err)
return -1
}

authType, err := c.Getinfo(curl.INFO_HTTPAUTH_AVAIL)
if err != nil {
s.term.Debugf("Getinfo failed: %v", err)
s.term.Errorf("Getinfo failed: %v", err)
return -1
}

Expand Down Expand Up @@ -242,14 +242,14 @@ func (s *Scanner) routeAttack(stream Stream, route string) bool {
// Perform the request.
err := c.Perform()
if err != nil {
s.term.Debugf("Perform failed: %v", err)
s.term.Errorf("Perform failed: %v", err)
return false
}

// Get return code for the request.
rc, err := c.Getinfo(curl.INFO_RESPONSE_CODE)
if err != nil {
s.term.Debugf("Getinfo failed: %v", err)
s.term.Errorf("Getinfo failed: %v", err)
return false
}

Expand Down Expand Up @@ -292,14 +292,14 @@ func (s *Scanner) credAttack(stream Stream, username string, password string) bo
// Perform the request.
err := c.Perform()
if err != nil {
s.term.Debugf("Perform failed: %v", err)
s.term.Errorf("Perform failed: %v", err)
return false
}

// Get return code for the request.
rc, err := c.Getinfo(curl.INFO_RESPONSE_CODE)
if err != nil {
s.term.Debugf("Getinfo failed: %v", err)
s.term.Errorf("Getinfo failed: %v", err)
return false
}

Expand Down Expand Up @@ -345,14 +345,14 @@ func (s *Scanner) validateStream(stream Stream) bool {
// Perform the request.
err := c.Perform()
if err != nil {
s.term.Debugf("Perform failed: %v", err)
s.term.Errorf("Perform failed: %v", err)
return false
}

// Get return code for the request.
rc, err := c.Getinfo(curl.INFO_RESPONSE_CODE)
if err != nil {
s.term.Debugf("Getinfo failed: %v", err)
s.term.Errorf("Getinfo failed: %v", err)
return false
}

Expand Down

0 comments on commit 151fbb2

Please sign in to comment.