This patch is for masking os and hostname in OpenBSD 3.4 ftpd banner. Ce patch sert a cacher l'os et l'hostname dans la banniere du serveur ftpd d'OpenBSD 3.4. Philemon Daubard. System & Network Administrator kodezone interactive - OpenBSD webhosting and custom IT services URL: Apply by doing: cd /usr/src patch -p0 < OpenBSD_3.4_ftpd_banner.patch cd libexec/ftpd make obj make depend make make install Index: libexec/ftpd/ftpd.c =================================================================== --- libexec/ftpd/ftpd.c Thu Nov 20 17:10:59 2003 +++ libexec/ftpd-patch/ftpd.c Thu Nov 20 17:14:50 2003 @@ -607,7 +607,7 @@ dhostname, sizeof(dhostname), NULL, 0, 0); } - reply(220, "%s FTP server (%s) ready.", + reply(220, "FTP server ready.", (multihome ? dhostname : hostname), version); for (;;) (void) yyparse(); @@ -1726,8 +1726,7 @@ char hbuf[MAXHOSTNAMELEN]; int ispassive; - lreply(211, "%s FTP server status:", hostname); - printf(" %s\r\n", version); + lreply(211, "FTP server status:", hostname); getnameinfo((struct sockaddr *)&his_addr, his_addr.su_len, hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST); printf(" Connected to %s", remotehost);