feature: default interface and basic start
This commit is contained in:
6
include/dns.h
Normal file
6
include/dns.h
Normal 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
3
include/error.h
Normal file
@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
int err(char *str);
|
3
include/interface.h
Normal file
3
include/interface.h
Normal file
@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
char *get_interface_name(void);
|
3
include/print.h
Normal file
3
include/print.h
Normal file
@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
void print_usage(void);
|
16
include/scan.h
Normal file
16
include/scan.h
Normal 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);
|
Reference in New Issue
Block a user