Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone http server support #31

Merged
merged 28 commits into from
Oct 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
bee5b75
Standalone http server support has been added
mukuldeepfence Sep 27, 2022
e9289c6
Merge branch 'yarahuntergrpcserver'
deviprasad303 Sep 28, 2022
ca5937a
Revert "Merge branch 'yarahuntergrpcserver'"
deviprasad303 Sep 28, 2022
b76b1a5
Merge branch 'main' into standalone-http-server-support
deviprasad303 Sep 28, 2022
21c094b
create path
deviprasad303 Sep 30, 2022
637af85
Update listing with threatintel-yara-2022-09-30_20-42-11
github-actions[bot] Sep 30, 2022
3ed9fff
Update listing with threatintel-yara-2022-10-01_00-14-10
github-actions[bot] Oct 1, 2022
dfcf51e
Update listing with threatintel-yara-2022-10-01_23-46-40
github-actions[bot] Oct 1, 2022
cd6c365
Update listing with threatintel-yara-2022-10-02_00-13-30
github-actions[bot] Oct 2, 2022
2e10ed6
Update listing with threatintel-yara-2022-10-03_00-12-04
github-actions[bot] Oct 3, 2022
457f630
Update listing with threatintel-yara-2022-10-04_00-13-35
github-actions[bot] Oct 4, 2022
faa3010
Merge branch 'main' into standalone-http-server-support
deviprasad303 Oct 4, 2022
a19c795
Revert "Merge branch 'main' into standalone-http-server-support"
deviprasad303 Oct 4, 2022
539cbd4
Update listing with threatintel-yara-2022-10-05_00-12-29
github-actions[bot] Oct 5, 2022
7480502
Update listing with threatintel-yara-2022-10-05_20-42-47
github-actions[bot] Oct 5, 2022
df76475
make changes to yarahunter
deviprasad303 Oct 5, 2022
c174a47
Update listing with threatintel-yara-2022-10-06_00-12-39
github-actions[bot] Oct 6, 2022
0802087
Update listing with threatintel-yara-2022-10-07_00-15-15
github-actions[bot] Oct 7, 2022
d9d0594
make changes to docker file
deviprasad303 Oct 7, 2022
a56eca5
Merge branch 'standalone-http-server-support' of https://github.com/d…
deviprasad303 Oct 7, 2022
c2e3a05
make changes to dockerfile
deviprasad303 Oct 7, 2022
4f87ca2
make changes to go routine
deviprasad303 Oct 7, 2022
30f45ff
make changes
deviprasad303 Oct 7, 2022
a8113b8
make changes to yarahunter
deviprasad303 Oct 7, 2022
1c3d509
make changes to yara hunter
deviprasad303 Oct 7, 2022
fef4222
add maintainers
deviprasad303 Oct 7, 2022
e87d8fd
move changes to svg
deviprasad303 Oct 7, 2022
86d8e66
make changes to svg
deviprasad303 Oct 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions core/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const (

type Options struct {
Threads *int
DebugLevel *string
DebugLevel *string
MaximumFileSize *int64
TempDirectory *string
Local *string
Expand All @@ -24,8 +24,9 @@ type Options struct {
MaxIOC *uint
ContainerId *string
ContainerNS *string
SocketPath *string
HttpPort *string
SocketPath *string
HttpPort *string
StandAloneHttpPort *string
RulesPath *string
FailOnCompileWarning *bool
}
Expand All @@ -35,7 +36,7 @@ func ParseOptions() (*Options, error) {
RulesPath: flag.String("rules-path", "/home/deepfence/rules", "All .yar and .yara files in the given directory will be compiled"),
FailOnCompileWarning: flag.Bool("fail-on-rule-compile-warn", false, "Fail if yara rule compilation has warnings"),
Threads: flag.Int("threads", 0, "Number of concurrent threads (default number of logical CPUs)"),
DebugLevel: flag.String("debug-level", "ERROR", "Debug levels are one of FATAL, ERROR, IMPORTANT, WARN, INFO, DEBUG. Only levels higher than the debug-level are displayed"),
DebugLevel: flag.String("debug-level", "ERROR", "Debug levels are one of FATAL, ERROR, IMPORTANT, WARN, INFO, DEBUG. Only levels higher than the debug-level are displayed"),
MaximumFileSize: flag.Int64("maximum-file-size", 32*1024*1024, "Maximum file size to process in bytes"),
TempDirectory: flag.String("temp-directory", os.TempDir(), "Directory to process and store repositories/matches"),
Local: flag.String("local", "", "Specify local directory (absolute path) which to scan. Scans only given directory recursively."),
Expand All @@ -48,8 +49,8 @@ func ParseOptions() (*Options, error) {
ContainerId: flag.String("container-id", "", "Id of existing container ID"),
ContainerNS: flag.String("container-ns", "", "Namespace of existing container to scan, empty for docker runtime"),
SocketPath: flag.String("socket-path", "", "The gRPC server unix socket path"),
HttpPort: flag.String("http-port", "", "When set the http server will come up at port with df es as output"),

HttpPort: flag.String("http-port", "", "When set the http server will come up at port with df es as output"),
StandAloneHttpPort: flag.String("standalone-http-port", "", "use to run malware scanner as a standalone service"),
}
flag.Parse()
return options, nil
Expand Down
Loading