From 9a6c030a74b424b06f58a1d324c96541ed788687 Mon Sep 17 00:00:00 2001 From: Brendan Le Glaunec Date: Tue, 21 Jan 2020 08:49:36 +0100 Subject: [PATCH] Remove spam from curl verbose mode (#257) --- attack.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/attack.go b/attack.go index 9a2a266..9c25a6b 100644 --- a/attack.go +++ b/attack.go @@ -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. @@ -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)) @@ -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( @@ -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))