1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 17:39:03 +00:00

Refactor ftp bounce scan into nmap_ftp.{h,cc}

By factoring this code out, we make it easier to convert to NSE.
http://seclists.org/nmap-dev/2013/q4/255
This commit is contained in:
dmiller
2013-12-11 02:23:58 +00:00
parent f280a93538
commit 26665465c6
8 changed files with 547 additions and 275 deletions

7
nmap.h
View File

@@ -278,11 +278,6 @@ void *realloc();
sockets. Can also adjust with the -M command line option. */
#define MAX_SOCKETS 36
/* How do we want to log into ftp sites for */
#define FTPUSER "anonymous"
#define FTPPASS "-wwwuser@"
#define FTP_RETRIES 2 /* How many times should we relogin if we lose control
connection? */
#define MAX_TIMEOUTS MAX_SOCKETS /* How many timed out connection attempts
in a row before we decide the host is
dead? */
@@ -437,8 +432,6 @@ void *realloc();
/* print Interactive usage information */
void printinteractiveusage();
int ftp_anon_connect(struct ftpinfo *ftp);
/* port manipulators */
void getpts(const char *expr, struct scan_lists * ports); /* someone stole the name getports()! */
void getpts_simple(const char *origexpr, int range_type,