mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 05:45:26 +01:00 
			
		
		
		
	Add "command not found"
This commit is contained in:
		| @@ -20,8 +20,8 @@ my $uri="google.com"; | |||||||
| my $socket_out=""; | my $socket_out=""; | ||||||
| my $openssl_out=""; | my $openssl_out=""; | ||||||
| # Blacklists we use to trigger an error: | # Blacklists we use to trigger an error: | ||||||
| my $socket_regex_bl='(e|E)rror|\.\/testssl\.sh: line |(f|F)atal'; | my $socket_regex_bl='(e|E)rror|\.\/testssl\.sh: line |(f|F)atal|(c|C)ommand not found'; | ||||||
| my $openssl_regex_bl='(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem'; | my $openssl_regex_bl='(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem|(c|C)ommand not found'; | ||||||
| my $json_regex_bl='(id".*:\s"scanProblem"|severity".*:\s"FATAL"|"Scan interrupted")'; | my $json_regex_bl='(id".*:\s"scanProblem"|severity".*:\s"FATAL"|"Scan interrupted")'; | ||||||
|  |  | ||||||
| my $socket_json=""; | my $socket_json=""; | ||||||
|   | |||||||
| @@ -20,8 +20,8 @@ my $uri=""; | |||||||
| my $socket_out=""; | my $socket_out=""; | ||||||
| my $openssl_out=""; | my $openssl_out=""; | ||||||
| # Blacklists we use to trigger an error: | # Blacklists we use to trigger an error: | ||||||
| my $socket_regex_bl='(e|E)rror|\.\/testssl\.sh: line |(f|F)atal'; | my $socket_regex_bl='(e|E)rror|\.\/testssl\.sh: line |(f|F)atal|(c|C)ommand not found'; | ||||||
| my $openssl_regex_bl='(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem'; | my $openssl_regex_bl='(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem|(c|C)ommand not found'; | ||||||
|  |  | ||||||
| # my $socket_json=""; | # my $socket_json=""; | ||||||
| # my $openssl_json=""; | # my $openssl_json=""; | ||||||
|   | |||||||
| @@ -23,8 +23,8 @@ my $uri=""; | |||||||
| my $socket_out=""; | my $socket_out=""; | ||||||
| my $openssl_out=""; | my $openssl_out=""; | ||||||
| # Blacklists we use to trigger an error: | # Blacklists we use to trigger an error: | ||||||
| my $socket_regex_bl='(e|E)rror|\.\/testssl\.sh: line |(f|F)atal'; | my $socket_regex_bl='(e|E)rror|\.\/testssl\.sh: line |(f|F)atal|(c|C)ommand not found'; | ||||||
| my $openssl_regex_bl='(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem'; | my $openssl_regex_bl='(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem|(c|C)ommand not found'; | ||||||
|  |  | ||||||
| # my $socket_json=""; | # my $socket_json=""; | ||||||
| # my $openssl_json=""; | # my $openssl_json=""; | ||||||
|   | |||||||
| @@ -18,8 +18,8 @@ my $uri=""; | |||||||
| my $socket_out=""; | my $socket_out=""; | ||||||
| my $openssl_out=""; | my $openssl_out=""; | ||||||
| # Blacklists we use to trigger an error: | # Blacklists we use to trigger an error: | ||||||
| my $socket_regex_bl='(e|E)rror|\.\/testssl\.sh: line |(f|F)atal'; | my $socket_regex_bl='(e|E)rror|\.\/testssl\.sh: line |(f|F)atal|(c|C)ommand not found'; | ||||||
| my $openssl_regex_bl='(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem'; | my $openssl_regex_bl='(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem|(c|C)ommand not found'; | ||||||
|  |  | ||||||
| # my $socket_json=""; | # my $socket_json=""; | ||||||
| # my $openssl_json=""; | # my $openssl_json=""; | ||||||
|   | |||||||
| @@ -14,8 +14,8 @@ my $uri=""; | |||||||
| my $json=""; | my $json=""; | ||||||
| my $out=""; | my $out=""; | ||||||
| # Blacklists we use to trigger an error: | # Blacklists we use to trigger an error: | ||||||
| my $socket_regex_bl='(e|E)rror|\.\/testssl\.sh: line |(f|F)atal'; | my $socket_regex_bl='(e|E)rror|\.\/testssl\.sh: line |(f|F)atal|(c|C)ommand not found'; | ||||||
| my $openssl_regex_bl='(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem'; | my $openssl_regex_bl='(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem|(c|C)ommand not found'; | ||||||
|  |  | ||||||
| die "Unable to open $prg" unless -f $prg; | die "Unable to open $prg" unless -f $prg; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -6,5 +6,5 @@ | |||||||
| * 50-69:  Are the results what I expect (server side)? | * 50-69:  Are the results what I expect (server side)? | ||||||
|  |  | ||||||
| Please help to write Travis/CI tests! Documentation can be found [here](https://perldoc.perl.org/Test/More.html). | Please help to write Travis/CI tests! Documentation can be found [here](https://perldoc.perl.org/Test/More.html). | ||||||
| You can consult the existing code here. Feel free to use `20_baseline_ipv4_http.t` or `23_client_simulation.t` as a | You can consult the existing code here. Feel free to use `10_baseline_ipv4_http.t` or `23_client_simulation.t` as a | ||||||
| template. | template. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dirk
					Dirk