Skip to content

Commit

Permalink
Remove spam from curl verbose mode (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ullaakut authored Jan 21, 2020
1 parent afe2cad commit 9a6c030
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions attack.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ func (s *Scanner) detectAuthMethod(stream Stream) int {

s.setCurlOptions(c)

_ = c.Setopt(curl.OPT_VERBOSE, 1)

// Send a request to the URL of the stream we want to attack.
_ = c.Setopt(curl.OPT_URL, attackURL)
// Set the RTSP STREAM URI as the stream URL.
Expand Down Expand Up @@ -233,8 +231,6 @@ func (s *Scanner) routeAttack(stream Stream, route string) bool {

s.setCurlOptions(c)

_ = c.Setopt(curl.OPT_VERBOSE, 1)

// Set proper authentication type.
_ = c.Setopt(curl.OPT_HTTPAUTH, stream.AuthenticationType)
_ = c.Setopt(curl.OPT_USERPWD, fmt.Sprint(stream.Username, ":", stream.Password))
Expand Down Expand Up @@ -271,10 +267,6 @@ func (s *Scanner) routeAttack(stream Stream, route string) bool {
}

func (s *Scanner) credAttack(stream Stream, username string, password string) bool {
fmt.Println()
fmt.Println()
fmt.Println()

c := s.curl.Duphandle()

attackURL := fmt.Sprintf(
Expand All @@ -288,8 +280,6 @@ func (s *Scanner) credAttack(stream Stream, username string, password string) bo

s.setCurlOptions(c)

_ = c.Setopt(curl.OPT_VERBOSE, 1)

// Set proper authentication type.
_ = c.Setopt(curl.OPT_HTTPAUTH, stream.AuthenticationType)
_ = c.Setopt(curl.OPT_USERPWD, fmt.Sprint(username, ":", password))
Expand Down

0 comments on commit 9a6c030

Please sign in to comment.