feature: SCAN_ALL implemented (to be tested)
This commit is contained in:
@ -12,5 +12,5 @@ struct pshdr {
|
||||
uint16_t tcp_length;
|
||||
};
|
||||
|
||||
int send_packets(const struct scan *data, int sockfd);
|
||||
int send_packet(const struct scan *data, int sockfd);
|
||||
unsigned short checksum(void *data, int len);
|
||||
|
@ -17,7 +17,7 @@ typedef enum {
|
||||
|
||||
struct response {
|
||||
uint16_t port;
|
||||
e_state state;
|
||||
e_state states[SCAN_ALL];
|
||||
char *service;
|
||||
};
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
#include "host.h"
|
||||
|
||||
typedef enum {
|
||||
SCAN_SYN,
|
||||
SCAN_NULL,
|
||||
SCAN_SYN,
|
||||
SCAN_ACK,
|
||||
SCAN_FIN,
|
||||
SCAN_XMAS,
|
||||
@ -23,4 +23,4 @@ struct scan {
|
||||
struct response *response;
|
||||
};
|
||||
|
||||
int scan(const struct scan *data);
|
||||
int scan(struct scan *data);
|
||||
|
Reference in New Issue
Block a user