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] -p flag broken if statement #2

Open
Simon-Davies opened this issue Oct 23, 2021 · 0 comments
Open

[Bug] -p flag broken if statement #2

Simon-Davies opened this issue Oct 23, 2021 · 0 comments

Comments

@Simon-Davies
Copy link

Simon-Davies commented Oct 23, 2021

You can fix the if statement with the below:

	if opt.templates == "win64_CreateRemoteThreadNative.tmpl" && opt.pid == 0 || opt.templates == "win64_CreateRemoteThread.tmpl" && opt.pid == 0 || opt.templates == "win64_RtlCreateUserThread.tmpl" && opt.pid == 0 {
	fmt.Println("[ERROR] For this template, you must use PID (-p).")
	os.Exit(1)
@Simon-Davies Simon-Davies changed the title [Bug] -p flag for the PID [Bug] -p flag broken if statement Oct 23, 2021
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

1 participant