Skip to content

Commit

Permalink
FIX: Custom ports
Browse files Browse the repository at this point in the history
  • Loading branch information
matricali committed Jul 28, 2024
1 parent 0eed525 commit d6dda79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bruteforce_ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int bruteforce_ssh_login(btkg_context_t *context, const char *hostname,

ssh_options_set(my_ssh_session, SSH_OPTIONS_HOST, hostname);
ssh_options_set(my_ssh_session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity);
ssh_options_set(my_ssh_session, SSH_OPTIONS_PORT, &port);
ssh_options_set(my_ssh_session, SSH_OPTIONS_PORT, &(int){port});
#if LIBSSH_VERSION_MAYOR > 0 || \
(LIBSSH_VERSION_MAYOR == 0 && LIBSSH_VERSION_MINOR >= 6)
ssh_options_set(my_ssh_session, SSH_OPTIONS_KEY_EXCHANGE, "none");
Expand Down
2 changes: 1 addition & 1 deletion src/detection.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ int detection_detect_ssh(btkg_context_t *context, const char *hostname,

ssh_options_set(session, SSH_OPTIONS_HOST, hostname);
ssh_options_set(session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity);
ssh_options_set(session, SSH_OPTIONS_PORT, &port);
ssh_options_set(session, SSH_OPTIONS_PORT, &(int){port});
#if LIBSSH_VERSION_MAJOR > 0 || \
(LIBSSH_VERSION_MAJOR == 0 && LIBSSH_VERSION_MINOR >= 6)
ssh_options_set(session, SSH_OPTIONS_KEY_EXCHANGE, "none");
Expand Down

0 comments on commit d6dda79

Please sign in to comment.