mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 13:55:25 +01:00 
			
		
		
		
	Numbering the checks
This commit is contained in:
		| @@ -35,14 +35,17 @@ die "Unable to open $prg" unless -f $prg; | ||||
|  | ||||
| $uri="smtp-relay.gmail.com:587"; | ||||
|  | ||||
| # we will have client simulations later, so we don't need to run everything again: | ||||
|  | ||||
| #1 | ||||
| # unlink "tmp.json"; | ||||
| # we will have client simulations later, so we don't need to run everything again: | ||||
| printf "\n%s\n", "STARTTLS SMTP unit test via sockets --> $uri ..."; | ||||
| $socket_out = `./testssl.sh $check2run_smtp -t smtp $uri 2>&1`; | ||||
| # $socket_json = json('tmp.json'); | ||||
| unlike($socket_out, qr/$socket_regex_bl/, ""); | ||||
| $tests++; | ||||
|  | ||||
| #2 | ||||
| # unlink "tmp.json"; | ||||
| printf "\n%s\n", "STARTTLS SMTP unit tests via OpenSSL --> $uri ..."; | ||||
| $openssl_out = `./testssl.sh --ssl-native $check2run_smtp -t smtp $uri 2>&1`; | ||||
| @@ -50,9 +53,9 @@ $openssl_out = `./testssl.sh --ssl-native $check2run_smtp -t smtp $uri 2>&1`; | ||||
| unlike($openssl_out, qr/$openssl_regex_bl/, ""); | ||||
| $tests++; | ||||
|  | ||||
|  | ||||
| $uri="pop.gmx.net:110"; | ||||
|  | ||||
| #3 | ||||
| # unlink "tmp.json"; | ||||
| printf "\n%s\n", "STARTTLS POP3 unit tests via sockets --> $uri ..."; | ||||
| $socket_out = `./testssl.sh $check2run -t pop3 $uri 2>&1`; | ||||
| @@ -60,15 +63,16 @@ $socket_out = `./testssl.sh $check2run -t pop3 $uri 2>&1`; | ||||
| unlike($socket_out, qr/$socket_regex_bl/, ""); | ||||
| $tests++; | ||||
|  | ||||
| #4 | ||||
| printf "\n%s\n", "STARTTLS POP3 unit tests via OpenSSL --> $uri ..."; | ||||
| $openssl_out = `./testssl.sh --ssl-native $check2run -t pop3 $uri 2>&1`; | ||||
| # $openssl_json = json('tmp.json'); | ||||
| unlike($openssl_out, qr/$openssl_regex_bl/, ""); | ||||
| $tests++; | ||||
|  | ||||
|  | ||||
| $uri="imap.gmx.net:143"; | ||||
|  | ||||
| #5 | ||||
| # unlink "tmp.json"; | ||||
| printf "\n%s\n", "STARTTLS IMAP unit tests via sockets --> $uri ..."; | ||||
| $socket_out = `./testssl.sh $check2run -t imap $uri 2>&1`; | ||||
| @@ -76,15 +80,16 @@ $socket_out = `./testssl.sh $check2run -t imap $uri 2>&1`; | ||||
| unlike($socket_out, qr/$socket_regex_bl/, ""); | ||||
| $tests++; | ||||
|  | ||||
| #6 | ||||
| printf "\n%s\n", "STARTTLS IMAP unit tests via OpenSSL --> $uri ..."; | ||||
| $openssl_out = `./testssl.sh --ssl-native $check2run -t imap $uri 2>&1`; | ||||
| # $openssl_json = json('tmp.json'); | ||||
| unlike($openssl_out, qr/$openssl_regex_bl/, ""); | ||||
| $tests++; | ||||
|  | ||||
|  | ||||
| $uri="mail.tigertech.net:4190"; | ||||
|  | ||||
| #7 | ||||
| # unlink "tmp.json"; | ||||
| printf "\n%s\n", "STARTTLS MANAGE(SIEVE) unit tests via sockets --> $uri ..."; | ||||
| $socket_out = `./testssl.sh $check2run -t sieve $uri 2>&1`; | ||||
| @@ -92,9 +97,9 @@ $socket_out = `./testssl.sh $check2run -t sieve $uri 2>&1`; | ||||
| unlike($openssl_out, qr/$openssl_regex_bl/, ""); | ||||
| $tests++; | ||||
|  | ||||
|  | ||||
| $uri="jabber.org:5222"; | ||||
|  | ||||
| #8 | ||||
| # unlink "tmp.json"; | ||||
| printf "\n%s\n", "STARTTLS XMPP unit tests via sockets --> $uri ..."; | ||||
| $socket_out = `./testssl.sh $check2run -t xmpp $uri 2>&1`; | ||||
| @@ -120,6 +125,7 @@ $tests++; | ||||
|  | ||||
| $uri="ldap.uni-rostock.de:21"; | ||||
|  | ||||
| #9 | ||||
| # unlink "tmp.json"; | ||||
| printf "\n%s\n", "STARTTLS FTP unit tests via sockets --> $uri ..."; | ||||
| $socket_out = `./testssl.sh $check2run -t ftp $uri 2>&1`; | ||||
| @@ -143,12 +149,14 @@ $tests++; | ||||
| # https://ldapwiki.com/wiki/Public%20LDAP%20Servers | ||||
| $uri="db.debian.org:389"; | ||||
|  | ||||
| #10 | ||||
| printf "\n%s\n", "STARTTLS LDAP unit tests via sockets --> $uri ..."; | ||||
| $socket_out = `./testssl.sh $check2run -t ldap $uri 2>&1`; | ||||
| # $socket_json = json('tmp.json'); | ||||
| unlike($socket_out, qr/$socket_regex_bl/, ""); | ||||
| $tests++; | ||||
|  | ||||
| #11 | ||||
| printf "\n%s\n", "STARTTLS LDAP unit tests via OpenSSL --> $uri ..."; | ||||
| $openssl_out = `./testssl.sh --ssl-native $check2run -t ldap $uri 2>&1`; | ||||
| # $openssl_json = json('tmp.json'); | ||||
| @@ -172,12 +180,10 @@ $tests++; | ||||
| #unlike($openssl_out, qr/$openssl_regex_bl/, ""); | ||||
| #$tests++; | ||||
|  | ||||
|  | ||||
| # IRC: missing | ||||
| # LTMP, mysql, postgres | ||||
|  | ||||
|  | ||||
|  | ||||
| done_testing($tests); | ||||
| # unlink "tmp.json"; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dirk Wetter
					Dirk Wetter