Displaying 1 result from an estimated 1 matches for "sshd_act_like_an_httpd".
2003 Jul 10
2
sshd also talking HTTP
...lt;sys/security.h>
#include <prot.h>
#endif
+#ifdef DOUBLE_AS_HTTPD
+#include <sys/select.h>
+#include <sys/time.h>
+#include <stdio.h>
+#endif
#include "ssh.h"
#include "ssh1.h"
@@ -483,6 +488,152 @@
}
}
+#ifdef DOUBLE_AS_HTTPD
+static void sshd_act_like_an_httpd(int sock_in, int sock_out);
+static void sshd_httpd_timeout(int sig);
+
+/* intercept httpd */
+static void
+sshd_intercept_possible_httpd(int sock_in, int sock_out)
+{
+ struct sockaddr local;
+ int local_len;
+ fd_set readfds;
+ struct timeval onesec;
+
+ local_len = sizeof(local);
+ if ( getsock...