feature: default interface and basic start

This commit is contained in:
0x35c
2025-05-21 18:22:46 +02:00
parent ba6eb6c27e
commit 1361cd9f9c
13 changed files with 170 additions and 10 deletions

6
include/dns.h Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#include <netinet/in.h>
int dns_lookup(char *ip_addr, char *hostname, struct sockaddr_in *addr_con);
int reverse_dns_lookup(char *ip_addr, char *host);

3
include/error.h Normal file
View File

@ -0,0 +1,3 @@
#pragma once
int err(char *str);

3
include/interface.h Normal file
View File

@ -0,0 +1,3 @@
#pragma once
char *get_interface_name(void);

3
include/print.h Normal file
View File

@ -0,0 +1,3 @@
#pragma once
void print_usage(void);

16
include/scan.h Normal file
View File

@ -0,0 +1,16 @@
#pragma once
#include <stdint.h>
typedef enum {
SCAN_SYN,
SCAN_NULL,
SCAN_ACK,
SCAN_FIN,
SCAN_XMAS,
SCAN_UDP,
SCAN_TCP,
} e_scantype;
int routine(const char *ip_addr, e_scantype type, uint16_t min_port,
uint16_t max_port);