Skip to content

Latest commit

 

History

History
executable file
·
55 lines (35 loc) · 986 Bytes

readme.md

File metadata and controls

executable file
·
55 lines (35 loc) · 986 Bytes

socks proxy over ssh

Many intranet penetration projects have been blocked by firewalls. What is certain is that the ssh protocol will not be intercepted. So this project uses the ssh protocol as the sock channel

build

go mod tidy


#### cross compile ####
# Linux build
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build main.go
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build main.go


# macos build
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o scoksOverSSH-x86-linux main.go
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o scoksOverSSH.exe main.go


# windows build
SET CGO_ENABLED=0
SET GOOS=darwin
SET GOARCH=amd64
go build main.go

SET CGO_ENABLED=0
SET GOOS=linux
SET GOARCH=amd64
go build main.go

Windows build need cgo

# 1
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/

# 2
# download x86_64-posix-seh 

# 3 move to c disk
C:\mingw64

# 4
# add system env