Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions sslscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ struct sslCheckOptions
int pout;
int sslbugs;
int http;
int delay;
int verbose;

// File Handles...
Expand Down Expand Up @@ -271,6 +272,10 @@ int tcpConnect(struct sslCheckOptions *options)
char buffer[BUFFERSIZE];
int status;

// Delay for buggy / slow systems
if (options->delay)
sleep(1);

// Create Socket
socketDescriptor = socket(AF_INET, SOCK_STREAM, 0);
if(socketDescriptor < 0)
Expand Down Expand Up @@ -1849,6 +1854,7 @@ int main(int argc, char *argv[])

options.sslVersion = ssl_all;
options.pout = false;
options.delay = false;
SSL_library_init();

// Get program parameters
Expand All @@ -1869,6 +1875,10 @@ int main(int argc, char *argv[])
else if (strcmp("--no-failed", argv[argLoop]) == 0)
options.noFailed = true;

// delay between connect + don't exit for failed connection
else if (strcmp("--delay", argv[argLoop]) == 0)
options.delay = true;

// Version
else if (strcmp("--version", argv[argLoop]) == 0)
mode = mode_version;
Expand Down Expand Up @@ -2031,6 +2041,7 @@ int main(int argc, char *argv[])
printf(" ports (i.e. host:port).\n");
printf(" %s--no-failed%s List only accepted ciphers (default\n", COL_GREEN, RESET);
printf(" is to listing all ciphers).\n");
printf(" %s--delay Delay 1s between connections.\n",COL_GREEN,RESET);
printf(" %s--ssl2%s Only check SSLv2 ciphers.\n", COL_GREEN, RESET);
printf(" %s--ssl3%s Only check SSLv3 ciphers.\n", COL_GREEN, RESET);
printf(" %s--tls1%s Only check TLSv1 ciphers.\n", COL_GREEN, RESET);
Expand Down