mre stuff
This commit is contained in:
parent
d9955513c0
commit
cc0bc24e90
8 changed files with 15 additions and 30 deletions
|
|
@ -31,12 +31,12 @@ INC_DIR = includes/
|
|||
OBJ_DIR = objs/
|
||||
|
||||
SRC_BASE = \
|
||||
scanners.c\
|
||||
parser.c\
|
||||
main.c\
|
||||
capture.c\
|
||||
format.c\
|
||||
ip.c
|
||||
ip.c\
|
||||
main.c\
|
||||
parser.c\
|
||||
scanners.c
|
||||
|
||||
SRCS = $(addprefix $(SRC_DIR), $(SRC_BASE))
|
||||
OBJS = $(addprefix $(OBJ_DIR), $(SRC_BASE:.c=.o))
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/04/22 14:10:24 by jhalford #+# #+# */
|
||||
/* Updated: 2017/10/24 21:29:35 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/10/26 17:07:40 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -28,14 +28,12 @@
|
|||
# include <netinet/if_ether.h>
|
||||
# include <pcap.h>
|
||||
# include <sys/wait.h>
|
||||
# include <pthread.h>
|
||||
# include <ifaddrs.h>
|
||||
|
||||
# include "libmill.h"
|
||||
|
||||
typedef struct s_data t_data;
|
||||
typedef struct s_host t_host;
|
||||
typedef struct s_tcp_packet t_tcp_packet;
|
||||
typedef struct s_job t_job;
|
||||
typedef struct s_result t_result;
|
||||
typedef enum e_port_status t_port_status;
|
||||
|
|
@ -67,15 +65,6 @@ struct s_data
|
|||
char **av_data;
|
||||
};
|
||||
|
||||
struct s_host
|
||||
{
|
||||
char *host; // user input host (ip or dn)
|
||||
char *dn; // ai_canonname
|
||||
char ip[INET6_ADDRSTRLEN]; // humain readable ip address
|
||||
struct sockaddr *addr;
|
||||
size_t addrlen;
|
||||
};
|
||||
|
||||
struct s_job
|
||||
{
|
||||
ipaddr dest;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/10/07 17:59:28 by jhalford #+# #+# */
|
||||
/* Updated: 2017/10/08 13:33:51 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/10/26 16:59:49 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/10/07 18:02:51 by jhalford #+# #+# */
|
||||
/* Updated: 2017/10/07 18:02:51 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/10/26 17:03:11 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -57,11 +57,6 @@ static const char *colors[] = {
|
|||
"\\e[0;37m",
|
||||
};
|
||||
|
||||
/**
|
||||
* Default terminal rows
|
||||
*/
|
||||
static const int rows = 24;
|
||||
|
||||
/**
|
||||
* Default terminal columns
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/10/24 17:22:16 by jhalford #+# #+# */
|
||||
/* Updated: 2017/10/24 21:36:52 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/10/26 17:10:53 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/10/08 19:10:04 by jhalford #+# #+# */
|
||||
/* Updated: 2017/10/24 20:08:00 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/10/26 16:06:16 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/10/09 15:28:42 by jhalford #+# #+# */
|
||||
/* Updated: 2017/10/24 21:48:11 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/10/26 17:20:20 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -59,4 +59,5 @@ coroutine void nmap_scan_tcp(chan results, t_job job)
|
|||
chs(results, t_result, result);
|
||||
chclose(results);
|
||||
return ;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue