-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from 3ndG4me/dev/gortscanner_5.0_threaded_port_…
…scans Added subroutine for threaded scan per port per target
- Loading branch information
Showing
7 changed files
with
89 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# !!!MAKE SURE YOUR GOPATH ENVIRONMENT VARIABLE IS SET FIRST!!! | ||
|
||
# Variables | ||
DIR=builds/ | ||
GORT=gortscanner | ||
WINGORTLDFLAGS=-ldflags "-H=windowsgui" | ||
W=Windows-x64 | ||
L=Linux-x64 | ||
A=Linux-arm | ||
M=Linux-mips | ||
D=Darwin-x64 | ||
|
||
# Make Directory to store executables | ||
$(shell mkdir -p ${DIR}) | ||
|
||
# Change default to just make for the host OS and add MAKE ALL to do this | ||
default: gort-windows gort-linux gort-darwin | ||
|
||
all: default | ||
|
||
# Compile Windows binaries | ||
windows: gort-windows | ||
|
||
# Compile Linux binaries | ||
linux: gort-linux | ||
|
||
# Compile Arm binaries | ||
arm: gort-arm | ||
|
||
# Compile mips binaries | ||
mips: gort-mips | ||
|
||
# Compile Darwin binaries | ||
darwin: gort-darwin | ||
|
||
# Compile gort - Windows x64 | ||
gort-windows: | ||
export GOOS=windows GOARCH=amd64;go build ${WINGORTLDFLAGS} -o ${DIR}/${GORT}-${W}.exe main.go | ||
|
||
# Compile gort - Linux mips | ||
gort-mips: | ||
export GOOS=linux;export GOARCH=mips;go build -o ${DIR}/${GORT}-${M} main.go | ||
|
||
# Compile gort - Linux arm | ||
gort-arm: | ||
export GOOS=linux;export GOARCH=arm;export GOARM=7;go build -o ${DIR}/${GORT}-${A} main.go | ||
|
||
# Compile gort - Linux x64 | ||
gort-linux: | ||
export GOOS=linux;export GOARCH=amd64;go build -o ${DIR}/${GORT}-${L} main.go | ||
|
||
# Compile gort - Darwin x64 | ||
gort-darwin: | ||
export GOOS=darwin;export GOARCH=amd64;go build -o ${DIR}/${GORT}-${D} main.go | ||
|
||
clean: | ||
rm -rf ${DIR}* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters