feature: SCAN_ALL implemented (to be tested)

This commit is contained in:
0x35c
2025-05-30 14:42:56 +02:00
parent 227000cf97
commit 936c277d02
7 changed files with 51 additions and 41 deletions

View File

@ -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);

View File

@ -17,7 +17,7 @@ typedef enum {
struct response {
uint16_t port;
e_state state;
e_state states[SCAN_ALL];
char *service;
};

View File

@ -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);