Skip to content

Commit 0388672

Browse files
committed
Update package path
1 parent bd43069 commit 0388672

File tree

99 files changed

+835
-1750
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+835
-1750
lines changed

.github/workflows/test.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Test master
3+
on:
4+
push:
5+
branches: [master]
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Install build dependencies
11+
run: sudo apt-get update -y && sudo apt-get install -y libminizip-dev ocl-icd-libopencl1 ocl-icd-opencl-dev opencl-headers pocl-opencl-icd
12+
- uses: actions/checkout@v3
13+
- name: Set up Go
14+
uses: actions/setup-go@v4
15+
with:
16+
go-version: 'stable'
17+
- name: Checkout hashcat
18+
uses: actions/checkout@v3
19+
with:
20+
repository: hashcat/hashcat
21+
ref: v6.1.1
22+
path: hashcat
23+
- name: Install hashcat
24+
working-directory: ./hashcat
25+
run: sudo make install SHARED=1 ENABLE_BRAIN=0
26+
- name: Install additional dependencies
27+
working-directory: ./hashcat
28+
run: |
29+
sudo cp deps/LZMA-SDK/C/LzmaDec.h /usr/local/include/hashcat/
30+
sudo cp deps/LZMA-SDK/C/7zTypes.h /usr/local/include/hashcat/
31+
sudo cp deps/LZMA-SDK/C/Lzma2Dec.h /usr/local/include/hashcat/
32+
sudo cp -r ./OpenCL/inc_types.h /usr/local/include/hashcat/
33+
sudo cp -r ./deps/zlib/contrib /usr/local/include/hashcat
34+
sudo ln -s /usr/local/lib/libhashcat.so.6.1.1 /usr/local/lib/libhashcat.so
35+
- name: Run tests
36+
run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib go test ./...

Makefile

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ endif
1313
build:
1414
mkdir -p builds/
1515
go build -tags "$(WORKBUILDTAGS)" -o $(BINDIR)/gocrack_worker $(CFLAGS) -ldflags \
16-
"-X github.com/fireeye/gocrack/worker.CompileRev=${BUILDREV} \
17-
-X github.com/fireeye/gocrack/worker.CompileTime=${BUILDDATE} \
18-
-X github.com/fireeye/gocrack/worker/engines/hashcat.HashcatVersion=${HASHCAT_VER}" \
16+
"-X github.com/mandiant/gocrack/worker.CompileRev=${BUILDREV} \
17+
-X github.com/mandiant/gocrack/worker.CompileTime=${BUILDDATE} \
18+
-X github.com/mandiant/gocrack/worker/engines/hashcat.HashcatVersion=${HASHCAT_VER}" \
1919
cmd/gocrack_worker/*.go
2020
go build -tags "$(SERVBUILDTAGS)" -o $(BINDIR)/gocrack_server $(CFLAGS) -ldflags \
21-
"-X github.com/fireeye/gocrack/server.CompileRev=${BUILDREV} \
22-
-X github.com/fireeye/gocrack/server.CompileTime=${BUILDDATE}" \
21+
"-X github.com/mandiant/gocrack/server.CompileRev=${BUILDREV} \
22+
-X github.com/mandiant/gocrack/server.CompileTime=${BUILDDATE}" \
2323
cmd/gocrack_server/*.go
2424

2525
static_analysis:
26-
go vet `go list ./... | egrep -v 'gocat|vendor'`
26+
go vet `go list ./...`
2727

2828
test:
29-
go test -cover -v `go list ./... | egrep -v 'gocat|vendor'`
29+
go test -cover -v `go list ./...`
3030

3131
clean:
3232
rm -rf builds/
3333

34-
all: static_analysis test build
34+
all: static_analysis test build

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# gocrack
22

3-
[![Build Status](https://travis-ci.org/fireeye/gocrack.svg?branch=master)](https://travis-ci.org/fireeye/gocrack) [![codecov](https://codecov.io/gh/fireeye/gocrack/branch/master/graph/badge.svg)](https://codecov.io/gh/fireeye/gocrack) [![reportcard](https://goreportcard.com/badge/github.com/fireeye/gocrack)](https://goreportcard.com/report/github.com/fireeye/gocrack)
3+
[![Build Status](https://travis-ci.org/mandiant/gocrack.svg?branch=master)](https://travis-ci.org/mandiant/gocrack) [![codecov](https://codecov.io/gh/mandiant/gocrack/branch/master/graph/badge.svg)](https://codecov.io/gh/mandiant/gocrack) [![reportcard](https://goreportcard.com/badge/github.com/mandiant/gocrack)](https://goreportcard.com/report/github.com/mandiant/gocrack)
44

55
![GoCrack Logo](/docs/logo.png)
66

77
GoCrack provides APIs to manage password cracking tasks across supported cracking engines.
88

99
## Supported Engines
1010

11-
* [hashcat 5.X+](https://github.com/hashcat/hashcat)
11+
* [hashcat 6.X+](https://github.com/hashcat/hashcat)
1212

1313
## Documentation
1414

cmd/gocrack_server/server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"os/signal"
77
"syscall"
88

9-
"github.com/fireeye/gocrack/server"
10-
"github.com/fireeye/gocrack/shared"
9+
"github.com/mandiant/gocrack/server"
10+
"github.com/mandiant/gocrack/shared"
1111

1212
"github.com/rs/zerolog"
1313
"github.com/rs/zerolog/log"

cmd/gocrack_worker/worker.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import (
1111
"strings"
1212
"syscall"
1313

14-
"github.com/fireeye/gocrack/shared"
15-
"github.com/fireeye/gocrack/worker"
16-
"github.com/fireeye/gocrack/worker/child"
17-
"github.com/fireeye/gocrack/worker/parent"
14+
"github.com/mandiant/gocrack/shared"
15+
"github.com/mandiant/gocrack/worker"
16+
"github.com/mandiant/gocrack/worker/child"
17+
"github.com/mandiant/gocrack/worker/parent"
1818

1919
"github.com/rs/zerolog"
2020
"github.com/rs/zerolog/log"

docker/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ROOT_PROJECT := gocrack
22
PKG_AUTHOR := Christopher Schmitt <[email protected]>
33
HASHCAT_VERSION := v5.1.0
44

5-
GOCRACK_PROJ := github.com/fireeye/gocrack
5+
GOCRACK_PROJ := github.com/mandiant/gocrack
66
GOCRACK_CODE_LOCAL := ${GOPATH}/src/$(GOCRACK_PROJ)
77
EXTERNAL_DIR := $(CURDIR)/external
88
HASHCAT_DIR := $(EXTERNAL_DIR)/hashcat
@@ -50,4 +50,4 @@ build_images: build_server_image build_worker_image
5050
clean:
5151
@rm -rf $(DIST_DIR)
5252

53-
build: hashcat gocrack build_server_image build_worker_image
53+
build: hashcat gocrack build_server_image build_worker_image

docs/administrator/config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Example Configs for NGINX:
5656
* `allowed_origins`: A list of domains (origins) in which requests will be made from (UI). This is a [CORS] (https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS) setting.
5757
* `max_preflight_age`: Indicates how long the response of a preflight request can be cached by the browser. By default, this is set to 24 hours. It must be in the format of a [duration string](https://golang.org/pkg/time/#ParseDuration)
5858
1. `ui`
59-
* `static_path`: Path containing `index.html` and a folder called `static` that serve as the GoCrack User Interface. The reference user interface can be found in the [gocrack-ui repository](https://github.com/fireeye/gocrack-ui).
59+
* `static_path`: Path containing `index.html` and a folder called `static` that serve as the GoCrack User Interface. The reference user interface can be found in the [gocrack-ui repository](https://github.com/mandiant/gocrack-ui).
6060
* `csrf_key`: A secure key that is used to sign the CSRF cookies. This should be set to a strong, random string
6161
* `csrf_enabled`: By default, this is true but on development instances this should be set to false.
6262

go.mod

+49-28
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,65 @@
1-
module github.com/fireeye/gocrack
1+
module github.com/mandiant/gocrack
22

3-
go 1.12
3+
go 1.20
4+
5+
require (
6+
github.com/asdine/storm v0.0.0-20190418133842-e0f77eada154
7+
github.com/gin-contrib/cors v1.3.1
8+
github.com/gin-gonic/gin v1.7.7
9+
github.com/google/uuid v1.3.0
10+
github.com/gorilla/csrf v1.7.0
11+
github.com/mandiant/gocat/v6 v6.1.0
12+
github.com/nightlyone/lockfile v0.0.0-20170804114028-6a197d5ea611
13+
github.com/prometheus/client_golang v1.8.0
14+
github.com/prometheus/client_model v0.2.0
15+
github.com/rs/zerolog v1.20.0
16+
github.com/shirou/gopsutil v0.0.0-20170510024726-b6da2bd76e7d
17+
github.com/stretchr/testify v1.7.0
18+
github.com/tankbusta/gzip v0.0.0-20171023233440-5ea045a82e8f
19+
github.com/tankbusta/hashvalidate v0.11.1
20+
github.com/tchap/go-exchange v0.0.0-20141009085351-ebe3feb493da
21+
golang.org/x/crypto v0.0.0-20211209193657-4570a0811e8b
22+
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
23+
gopkg.in/ldap.v2 v2.5.1
24+
gopkg.in/square/go-jose.v2 v2.5.1
25+
gopkg.in/yaml.v2 v2.4.0
26+
)
427

528
require (
629
github.com/DataDog/zstd v1.4.0 // indirect
730
github.com/Sereal/Sereal v0.0.0-20190606082811-cf1bab6c7a3a // indirect
831
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
9-
github.com/asdine/storm v0.0.0-20190418133842-e0f77eada154
10-
github.com/fireeye/gocat v0.0.0-20190613212338-ce97d32213d0
11-
github.com/gin-contrib/cors v1.3.0
32+
github.com/beorn7/perks v1.0.1 // indirect
33+
github.com/cespare/xxhash/v2 v2.1.1 // indirect
34+
github.com/davecgh/go-spew v1.1.1 // indirect
1235
github.com/gin-contrib/sse v0.1.0 // indirect
13-
github.com/gin-gonic/gin v1.4.0
1436
github.com/go-ole/go-ole v1.2.4 // indirect
37+
github.com/go-playground/locales v0.14.0 // indirect
38+
github.com/go-playground/universal-translator v0.18.0 // indirect
39+
github.com/go-playground/validator/v10 v10.9.0 // indirect
40+
github.com/golang/protobuf v1.5.2 // indirect
1541
github.com/golang/snappy v0.0.1 // indirect
16-
github.com/gorilla/csrf v1.5.1
17-
github.com/kr/pty v1.1.5 // indirect
18-
github.com/mattn/go-isatty v0.0.8 // indirect
19-
github.com/nightlyone/lockfile v0.0.0-20170804114028-6a197d5ea611
20-
github.com/prometheus/client_golang v0.9.4
21-
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
22-
github.com/rs/zerolog v1.14.3
23-
github.com/satori/go.uuid v0.0.0-20160713180306-0aa62d5ddceb
24-
github.com/shirou/gopsutil v0.0.0-20170510024726-b6da2bd76e7d
42+
github.com/gorilla/securecookie v1.1.1 // indirect
43+
github.com/json-iterator/go v1.1.12 // indirect
44+
github.com/leodido/go-urn v1.2.1 // indirect
45+
github.com/mattn/go-isatty v0.0.14 // indirect
46+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
47+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
48+
github.com/modern-go/reflect2 v1.0.2 // indirect
49+
github.com/pkg/errors v0.9.1 // indirect
50+
github.com/pmezard/go-difflib v1.0.0 // indirect
51+
github.com/prometheus/common v0.14.0 // indirect
52+
github.com/prometheus/procfs v0.2.0 // indirect
2553
github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4 // indirect
26-
github.com/stretchr/objx v0.2.0 // indirect
27-
github.com/stretchr/testify v1.3.0
28-
github.com/tankbusta/gzip v0.0.0-20171023233440-5ea045a82e8f
29-
github.com/tchap/go-exchange v0.0.0-20141009085351-ebe3feb493da
30-
github.com/tchap/go-patricia v2.2.6+incompatible // indirect
54+
github.com/tchap/go-patricia v2.3.0+incompatible // indirect
55+
github.com/ugorji/go/codec v1.2.6 // indirect
3156
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
3257
go.etcd.io/bbolt v1.3.3 // indirect
33-
golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8
34-
golang.org/x/net v0.0.0-20190611141213-3f473d35a33a // indirect
35-
golang.org/x/sys v0.0.0-20190610200419-93c9922d18ae // indirect
36-
golang.org/x/tools v0.0.0-20190611222205-d73e1c7e250b // indirect
58+
golang.org/x/sys v0.0.0-20211213223007-03aa0b5f6827 // indirect
59+
golang.org/x/text v0.3.7 // indirect
3760
google.golang.org/appengine v1.6.1 // indirect
61+
google.golang.org/protobuf v1.27.1 // indirect
3862
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
3963
gopkg.in/asn1-ber.v1 v1.0.0-20150924051756-4e86f4367175 // indirect
40-
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
41-
gopkg.in/ldap.v2 v2.5.1
42-
gopkg.in/square/go-jose.v2 v2.3.1
43-
gopkg.in/yaml.v2 v2.2.2
64+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
4465
)

0 commit comments

Comments
 (0)