-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,220 changed files
with
256,174 additions
and
6,322 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 |
---|---|---|
@@ -1,9 +1,19 @@ | ||
VERSION := 1.0.0 | ||
BUILDSTRING := $(shell git log --pretty=format:'%h' -n 1) | ||
VERSIONSTRING := freki version $(VERSION)+$(BUILDSTRING) | ||
|
||
default: build | ||
|
||
build: | ||
OUTPUT = bin/freki | ||
|
||
$(OUTPUT): glide.lock app/main.go *.go netfilter/* | ||
@mkdir -p bin/ | ||
go build -o bin/freki app/main.go | ||
go build -o $(OUTPUT) -ldflags "-X \"main.VERSION=$(VERSIONSTRING)\"" app/main.go | ||
|
||
build: $(OUTPUT) | ||
|
||
upx: build | ||
upx -1 bin/freki | ||
|
||
clean: | ||
rm -rf bin/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
# drop -- drops everything | ||
# logging_tcp -- establishes a connection (3 way handshake), attempts to read X bytes, then closes the connnection. log everything | ||
# ignore -- simply mark the packets as accepted | ||
# spoof-- pretend to be something else. could come in multiple flavors like http or telnet | ||
# rewrite -- rewrite the destination port to target a 3rd party honeypot. we would need to expose the original source port via an api such that the external process could log it. | ||
# proxy -- this is slightly different from rewrite in that we could proxy the connection to an off-box addr (i.e. google.com) | ||
rules: | ||
- match: tcp dst port 10022 | ||
type: rewrite | ||
target: 22 | ||
- match: tcp dst port 9200 | ||
type: proxy | ||
target: docker://elasticsearch:9200 | ||
- match: tcp dst port 666 | ||
type: proxy | ||
target: tcp://portquiz.net:666 | ||
- match: tcp port 80 or tcp port 8080 | ||
type: log_http | ||
- match: tcp portrange 5000-5010 | ||
type: drop | ||
- match: tcp port 8888 | ||
type: drop | ||
- match: tcp | ||
type: log_tcp | ||
- match: | ||
type: passthrough | ||
- match: tcp dst port 22 and src host 1.2.3.4 | ||
type: passthrough | ||
- match: tcp dst port 10022 | ||
type: rewrite | ||
target: 22 | ||
- match: tcp dst port 6379 | ||
type: proxy | ||
target: docker://redis:6379 | ||
- match: tcp dst port 666 | ||
type: proxy | ||
target: tcp://portquiz.net:666 | ||
- match: tcp port 80 or tcp port 8080 | ||
type: log_http | ||
- match: tcp portrange 5000-5010 | ||
type: drop | ||
- match: tcp port 8888 | ||
type: drop | ||
- match: tcp | ||
type: log_tcp | ||
- match: | ||
type: passthrough |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.