feature: send packets (reponse not working tho)

This commit is contained in:
0x35c
2025-05-26 12:18:06 +02:00
parent 9378251248
commit 1ffb554a32
7 changed files with 150 additions and 5 deletions

16
include/packet.h Normal file
View File

@ -0,0 +1,16 @@
#pragma once
#include <stdint.h>
#include "scan.h"
struct pshdr {
uint32_t src_addr;
uint32_t dst_addr;
uint8_t placeholder;
uint8_t protocol;
uint16_t tcp_length;
};
int send_packets(const struct scan *data, int sockfd);
unsigned short checksum(void *data, int len);