Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ On Windows, load client/win32/dnscat2.vcproj into Visual Studio and hit
free legit copy of a newer version, I'll likely be sticking with that
one. :)

**NB: You need a recent gcc compiler**. On Solaris 10, the gcc that ships with
it- 3.4.3 produces buggy code in encryption routines and you will expericence crashes.
Try with [CSW gcc 5.5.0](https://www.opencsw.org/packages/CSWgcc5core/)

If compilation fails, please file a bug on my [github
page](https://github.com/iagox86/dnscat2/issues)! Please send details
about your system.
Expand Down
4 changes: 2 additions & 2 deletions client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# Should work for Linux and BSD make.

CC?=gcc
DEBUG_CFLAGS?=-DTESTMEMORY -Werror -O0
DEBUG_CFLAGS?=-DTESTMEMORY -Werror -O0 -g -ggdb
RELEASE_CFLAGS?=-Os
CFLAGS?=--std=c89 -I. -Wall -D_DEFAULT_SOURCE -Wformat -Wformat-security -g
CFLAGS?=--std=c89 -I. -Wall -D_DEFAULT_SOURCE -Wformat -Wformat-security
LIBS=-pie -Wl,-z,relro,-z,now
LDFLAGS=

Expand Down
10 changes: 5 additions & 5 deletions client/dnscat.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ driver_dns_t *create_dns_driver_internal(select_group_t *group, char *domain, ch
}

printf("Creating DNS driver:\n");
printf(" domain = %s\n", domain);
printf(" domain = %s\n", (domain ? domain :""));
printf(" host = %s\n", host);
printf(" port = %u\n", port);
printf(" type = %s\n", type);
Expand Down Expand Up @@ -392,8 +392,8 @@ int main(int argc, char *argv[])
#endif

/* Debug options */
{"d", no_argument, 0, 0}, /* More debug */
{"q", no_argument, 0, 0}, /* Less debug */
{"debug", no_argument, 0, 0}, /* More debug */
{"quiet", no_argument, 0, 0}, /* Less debug */
{"packet-trace", no_argument, 0, 0}, /* Trace packets */

/* Sentry */
Expand Down Expand Up @@ -527,15 +527,15 @@ int main(int argc, char *argv[])
}

/* Debug options */
else if(!strcmp(option_name, "d"))
else if(!strcmp(option_name, "debug"))
{
if(min_log_level > 0)
{
min_log_level--;
log_set_min_console_level(min_log_level);
}
}
else if(!strcmp(option_name, "q"))
else if(!strcmp(option_name, "quiet"))
{
min_log_level++;
log_set_min_console_level(min_log_level);
Expand Down
1 change: 1 addition & 0 deletions client/libs/crypto/micro-ecc/uECC.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* Copyright 2014, Kenneth MacKay. Licensed under the BSD 2-clause license. */
#pragma GCC diagnostic ignored "-Wchar-subscripts"

#include "uECC.h"
#include "uECC_vli.h"
Expand Down