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:
7
nmap.h
7
nmap.h
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user