Skip to content

Commit

Permalink
update install
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardottt committed Sep 27, 2020
1 parent 04d02fd commit c5d5b43
Show file tree
Hide file tree
Showing 5 changed files with 250 additions and 9 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

build

coverage.txt

.idea
50 changes: 50 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
TARGET=./build
ARCHS=amd64 386
LDFLAGS="-s -w"
GCFLAGS="all=-trimpath=$(shell pwd)"
ASMFLAGS="all=-trimpath=$(shell pwd)"

current:
@go build -o ./scilla; \
echo "Done."

fmt:
@gofmt -s ./*; \
echo "Done."

remod:
rm -rf go.*
go mod init github.com/edoardottt/scilla
go get

update:
@go get -u; \
go mod tidy -v; \
echo "Done."

windows:
@for GOARCH in ${ARCHS}; do \
echo "Building for windows $${GOARCH} ..." ; \
mkdir -p ${TARGET}/scilla-windows-$${GOARCH} ; \
GOOS=windows GOARCH=$${GOARCH} GO111MODULE=on CGO_ENABLED=0 go build -ldflags=${LDFLAGS} -gcflags=${GCFLAGS} -asmflags=${ASMFLAGS} -o ${TARGET}/scilla-windows-$${GOARCH}/scilla.exe ; \
done; \
echo "Done."

linux:
@for GOARCH in ${ARCHS}; do \
echo "Building for linux $${GOARCH} ..." ; \
mkdir -p ${TARGET}/scilla-linux-$${GOARCH} ; \
GOOS=linux GOARCH=$${GOARCH} GO111MODULE=on CGO_ENABLED=0 go build -ldflags=${LDFLAGS} -gcflags=${GCFLAGS} -asmflags=${ASMFLAGS} -o ${TARGET}/scilla-linux-$${GOARCH}/scilla ; \
done; \
echo "Done."

all: clean fmt update test linux windows

test:
@go test -v -race ./... ; \
echo "Done."

clean:
@rm -rf ${TARGET}/* ; \
go clean ./... ; \
echo "Done."
67 changes: 58 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,70 @@
Requirements 🔍
----------

`
...
`
`...`

Installation 📡
----------

1. `git clone https://github.com/edoardottt/scilla.git`
Scilla has external dependencies, so they need to be pulled in:

`go get && go build`

This will create a scilla binary. If you want to install it in the $GOPATH/bin folder you can run:

`go install`

If you have all the dependencies already, you can make use of the build scripts:

`make` builds for the current Go configuration.
`make windows` builds 32 and 64 bit binaries for Windows, and writes them to the build subfolder.
`make linux` builds 32 and 64 bit binaries for Linux, and writes them to the build subfolder.
`make all` builds for all platforms and architectures, and writes the resulting binaries to the build subfolder.
`make clean` clears out the build subfolder.
`make test` runs the tests.

2. `cd scilla && sudo chmod +x scilla.go`

Get Started 🎉
----------

`scilla help`
`scilla help` prints the help in the command line.

usage: scilla [subcommand] { options }

Available subcommands:
- dns { -target <target (URL)> REQUIRED}
- subdomain { -target <target (URL)> REQUIRED}
- port { [-p <start-end>] -target <target (URL/IP)> REQUIRED}
- report { [-p <start-end>] -target <target (URL/IP)> REQUIRED}
- help


Examples 💡
----------

- DNS enumeration `scilla dns -target target.domain`

- Subdomain enumeration `scilla subdomain -target target.domain`

- Port enumeration:

- Default (all ports, so 1-65635) `scilla port -target target.domain`

- Specifying ports range `scilla port -p 20-90 -target target.domain`

- Specifying starting port (until the last one) `scilla port -p 20- -target target.domain`

- Specifying ending port (from the first one) `scilla port -p -90 -target target.domain`

- Full report:

- Default (all ports, so 1-65635) `scilla report -target target.domain`

- Specifying ports range `scilla report -p 20-90 -target target.domain`

- Specifying starting port (until the last one) `scilla report -p 20- -target target.domain`

- Specifying ending port (from the first one) `scilla report -p -90 -target target.domain`

Contributing 🛠
-------
Expand Down Expand Up @@ -100,12 +149,12 @@ Just open an issue/pull request. See also [CONTRIBUTING.md](https://github.com/e

- [ ] XML report output

--------------------------

If you liked it drop a :star:
--------------------------
-------

https://www.edoardoottavianelli.it for contact me.



Edoardo Ottavianelli ©
Edoardo Ottavianelli ©
Binary file removed images/scilla.jpg
Binary file not shown.
121 changes: 121 additions & 0 deletions make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
@echo off

SET ARG=%1
SET TARGET=.\build
SET BUILDARGS=-ldflags="-s -w" -gcflags="all=-trimpath=%GOPATH%\src" -asmflags="all=-trimpath=%GOPATH%\src"

IF "%ARG%"=="" (
go build -o .\scilla.exe
GOTO Done
)

IF "%ARG%"=="windows" (
CALL :Windows
GOTO Done
)

IF "%ARG%"=="linux" (
CALL :Linux
GOTO Done
)

IF "%ARG%"=="update" (
CALL :Update
GOTO Done
)

IF "%ARG%"=="fmt" (
CALL :Fmt
GOTO Done
)

IF "%ARG%"=="remod" (
del go.mod
del go.sum
go mod init github.com/edoardottt/scilla
go get
GOTO Done
)

IF "%ARG%"=="all" (
CALL :Fmt
CALL :Update
CALL :Remod
CALL :Test
CALL :Linux
CALL :Windows
GOTO Done
)

IF "%ARG%"=="clean" (
del /F /Q %TARGET%\*.*
go clean ./...
echo Done.
GOTO Done
)

IF "%ARG%"=="test" (
CALL :Test
GOTO Done
)

GOTO Done

:Test
set GO111MODULE=on
set CGO_ENABLED=0
echo Testing ...
go test -v ./...
echo Done
EXIT /B 0

:Fmt
set GO111MODULE=on
echo Formatting ...
go fmt ./...
echo Done.
EXIT /B 0

:Update
set GO111MODULE=on
echo Updating ...
go get -u
go mod tidy -v
echo Done.
EXIT /B 0

:Linux
set GOOS=linux
set GOARCH=amd64
set GO111MODULE=on
set CGO_ENABLED=0
echo Building for %GOOS% %GOARCH% ...
set DIR=%TARGET%\scilla-%GOOS%-%GOARCH%
mkdir %DIR% 2> NUL
go build %BUILDARGS% -o %DIR%\scilla
set GOARCH=386
echo Building for %GOOS% %GOARCH% ...
set DIR=%TARGET%\scilla-%GOOS%-%GOARCH%
mkdir %DIR% 2> NUL
go build %BUILDARGS% -o %DIR%\scilla
echo Done.
EXIT /B 0

:Windows
set GOOS=windows
set GOARCH=amd64
set GO111MODULE=on
set CGO_ENABLED=0
echo Building for %GOOS% %GOARCH% ...
set DIR=%TARGET%\scilla-%GOOS%-%GOARCH%
mkdir %DIR% 2> NUL
go build %BUILDARGS% -o %DIR%\scilla.exe
set GOARCH=386
echo Building for %GOOS% %GOARCH% ...
set DIR=%TARGET%\scilla-%GOOS%-%GOARCH%
mkdir %DIR% 2> NUL
go build %BUILDARGS% -o %DIR%\scilla.exe
echo Done.
EXIT /B 0

:Done

0 comments on commit c5d5b43

Please sign in to comment.