Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --no-console argument. #510

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Usage: goodbyedpi.exe [OPTION...]
(like file transfers) in already established sessions.
May skip some huge HTTP requests from being processed.
Default (if set): --max-payload 1200.
--no-console Hides console window :)
pidjan marked this conversation as resolved.
Show resolved Hide resolved


LEGACY modesets:
Expand Down
8 changes: 7 additions & 1 deletion src/goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// My mingw installation does not load inet_pton definition for some reason
WINSOCK_API_LINKAGE INT WSAAPI inet_pton(INT Family, LPCSTR pStringBuf, PVOID pAddr);

#define GOODBYEDPI_VERSION "v0.2.3"
#define GOODBYEDPI_VERSION "v0.2.4"

#define die() do { sleep(20); exit(EXIT_FAILURE); } while (0)

Expand Down Expand Up @@ -187,6 +187,7 @@ static struct option long_options[] = {
{"native-frag", no_argument, 0, '*' },
{"reverse-frag",no_argument, 0, '(' },
{"max-payload", optional_argument, 0, '|' },
{"no-console", optional_argument, 0, 'c' },
{0, 0, 0, 0 }
};

Expand Down Expand Up @@ -937,6 +938,10 @@ int main(int argc, char *argv[]) {
else
max_payload_size = 1200;
break;
case 'c': // --no-console
if (GetConsoleWindow() != NULL)
pidjan marked this conversation as resolved.
Show resolved Hide resolved
FreeConsole();
break;
default:
puts("Usage: goodbyedpi.exe [OPTION...]\n"
" -p block passive DPI\n"
Expand Down Expand Up @@ -987,6 +992,7 @@ int main(int argc, char *argv[]) {
" (like file transfers) in already established sessions.\n"
" May skip some huge HTTP requests from being processed.\n"
" Default (if set): --max-payload 1200.\n"
" --no-console Hides console window :)\n"
pidjan marked this conversation as resolved.
Show resolved Hide resolved
"\n");
puts("LEGACY modesets:\n"
" -1 -p -r -s -f 2 -k 2 -n -e 2 (most compatible mode)\n"
Expand Down