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

[Bug] Console window visible #3

Open
Simon-Davies opened this issue Oct 23, 2021 · 1 comment
Open

[Bug] Console window visible #3

Simon-Davies opened this issue Oct 23, 2021 · 1 comment

Comments

@Simon-Davies
Copy link

Simon-Davies commented Oct 23, 2021

You can fix this by adding a compiler flag. See updated code below:

	cmd := exec.Command(
		"go",
		"build",
		"-ldflags=-s", // Using -s instructs Go to create the smallest output
		"-ldflags=-w", // Using -w instructs Go to create the smallest output
		"-ldflags=-H=windowsgui", // hide console window
		"-o", outputFile,
		"output/shellcode.go",
	)
@bigb0sss
Copy link
Owner

Thanks mate! I will take a look and update the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants