Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5e9b3b7
Add .whitesource configuration file
mend-bolt-for-github[bot] Dec 30, 2021
1b70415
fix: docker/Dockerfile.build.ubuntu to reduce vulnerabilities
snyk-bot Jan 1, 2022
24d7d98
fix: docker/Dockerfile.server.ubuntu to reduce vulnerabilities
snyk-bot Jan 1, 2022
de96fde
fix: docker/Dockerfile.hashcat.ubuntu to reduce vulnerabilities
snyk-bot Jan 1, 2022
415dd86
[StepSecurity] Apply security best practices
step-security-bot Mar 4, 2024
b0bcf9b
Merge pull request #11 from step-security-bot/stepsecurity_remediatio…
joseguzman1337 Mar 4, 2024
4750008
Merge branch 'master' into whitesource/configure
joseguzman1337 Mar 4, 2024
62eb1f7
Merge pull request #1 from 4k4xs4pH1r3/whitesource/configure
joseguzman1337 Mar 4, 2024
cf195a3
Bump golang.org/x/sys from 0.0.0-20190610200419-93c9922d18ae to 0.1.0
dependabot[bot] Mar 4, 2024
b2fc7ab
Merge branch 'master' into snyk-fix-e0f63a6a3bb324ffa0eb5c04a6fda0ee
joseguzman1337 Mar 4, 2024
49a7d6a
Merge pull request #2 from 4k4xs4pH1r3/snyk-fix-e0f63a6a3bb324ffa0eb5…
joseguzman1337 Mar 4, 2024
fda9422
Merge branch 'master' into snyk-fix-844ba57291506272fcdff5143113984e
joseguzman1337 Mar 4, 2024
ff53199
Merge pull request #3 from 4k4xs4pH1r3/snyk-fix-844ba57291506272fcdff…
joseguzman1337 Mar 4, 2024
5d34fd3
Merge branch 'master' into snyk-fix-a0e011f7bcf7c8ac6e87b3488ebae853
joseguzman1337 Mar 4, 2024
456d9f0
Merge pull request #4 from 4k4xs4pH1r3/snyk-fix-a0e011f7bcf7c8ac6e87b…
joseguzman1337 Mar 4, 2024
870be4e
Merge branch 'master' into dependabot/go_modules/go_modules-security-…
joseguzman1337 Mar 4, 2024
6056238
Merge pull request #13 from 4k4xs4pH1r3/dependabot/go_modules/go_modu…
joseguzman1337 Mar 4, 2024
ac422ab
Bump the go_modules group group with 3 updates
dependabot[bot] Mar 4, 2024
592e2e0
Merge pull request #12 from 4k4xs4pH1r3/dependabot/go_modules/go_modu…
joseguzman1337 Apr 5, 2024
b995b88
Bump the go_modules group with 2 updates
dependabot[bot] Dec 11, 2024
3f6f17b
Merge pull request #30 from joseguzman1337/dependabot/go_modules/go_m…
joseguzman1337 Apr 21, 2025
84e511c
Bump golang.org/x/crypto in the go_modules group across 1 directory
dependabot[bot] Aug 29, 2025
1f1f8f4
Merge pull request #34 from joseguzman1337/dependabot/go_modules/go_m…
joseguzman1337 Sep 7, 2025
b6d5255
Bump the go_modules group across 1 directory with 4 updates
dependabot[bot] Sep 7, 2025
0e9f749
Merge pull request #36 from joseguzman1337/dependabot/go_modules/go_m…
joseguzman1337 Sep 9, 2025
121c898
Bump golang.org/x/crypto in the go_modules group across 1 directory
dependabot[bot] Nov 20, 2025
b2970c8
Merge pull request #39 from joseguzman1337/dependabot/go_modules/go_m…
joseguzman1337 Dec 29, 2025
380bc8b
Add macOS system files to .gitignore
joseguzman1337 Jan 5, 2026
eccf018
chore: automated swarm-wide synchronization
joseguzman1337 Mar 18, 2026
3952dd5
security: migrate jose and replace gorilla csrf
joseguzman1337 Mar 19, 2026
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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: daily
78 changes: 78 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: ["master"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["master"]
schedule:
- cron: "0 0 * * 1"

permissions:
contents: read

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["go"]
# CodeQL supports [ $supported-codeql-languages ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@928ff8c822d966a999092a6a35e32177899afb7c # v2.24.6
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@928ff8c822d966a999092a6a35e32177899afb7c # v2.24.6

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@928ff8c822d966a999092a6a35e32177899afb7c # v2.24.6
with:
category: "/language:${{matrix.language}}"
27 changes: 27 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request,
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
# Once installed, if the workflow run is marked as required,
# PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

- name: 'Checkout Repository'
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: 'Dependency Review'
uses: actions/dependency-review-action@0efb1d1d84fc9633afcdaad14c485cbbc90ef46c # v2.5.1
76 changes: 76 additions & 0 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.

name: Scorecard supply-chain security
on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '20 7 * * 2'
push:
branches: ["master"]

# Declare default permissions as read only.
permissions: read-all

jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
contents: read
actions: read

steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

- name: "Checkout code"
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@99c53751e09b9529366343771cc321ec74e9bd3d # v2.0.6
with:
results_file: results.sarif
results_format: sarif
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
# - you want to enable the Branch-Protection check on a *public* repository, or
# - you are installing Scorecards on a *private* repository
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
# repo_token: ${{ secrets.SCORECARD_TOKEN }}

# Public repositories:
# - Publish results to OpenSSF REST API for easy access by consumers
# - Allows the repository to include the Scorecard badge.
# - See https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories:
# - `publish_results` will always be set to `false`, regardless
# of the value entered here.
publish_results: true

# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@928ff8c822d966a999092a6a35e32177899afb7c # v2.24.6
with:
sarif_file: results.sarif
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ builds/
**.out
.vscode/
configs/
coverage.txt
coverage.txt
# macOS system files
.DS_Store
._*
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks
- repo: https://github.com/golangci/golangci-lint
rev: v1.52.2
hooks:
- id: golangci-lint
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: cpplint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
12 changes: 12 additions & 0 deletions .whitesource
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"scanSettings": {
"baseBranches": []
},
"checkRunSettings": {
"vulnerableCheckRunConclusionLevel": "failure",
"displayMode": "diff"
},
"issueSettings": {
"minSeverityLevel": "LOW"
}
}
1 change: 0 additions & 1 deletion deps/OpenCL-Headers
Submodule OpenCL-Headers deleted from bf0f43
2 changes: 1 addition & 1 deletion docker/Dockerfile.build.ubuntu
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:xenial
FROM ubuntu:xenial-20210416

ARG USER_ID
ARG AUTHOR
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.hashcat.ubuntu
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:xenial
FROM ubuntu:xenial-20210416

ARG AUTHOR

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.server.ubuntu
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:xenial
FROM ubuntu:xenial-20210416

ARG USER_ID
ARG AUTHOR
Expand Down
99 changes: 67 additions & 32 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,44 +1,79 @@
module github.com/fireeye/gocrack

go 1.12
go 1.25.0

require (
github.com/DataDog/zstd v1.4.0 // indirect
github.com/Sereal/Sereal v0.0.0-20190606082811-cf1bab6c7a3a // indirect
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
github.com/asdine/storm v0.0.0-20190418133842-e0f77eada154
github.com/fireeye/gocat v0.0.0-20190613212338-ce97d32213d0
github.com/gin-contrib/cors v1.3.0
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/gin-gonic/gin v1.4.0
github.com/go-ole/go-ole v1.2.4 // indirect
github.com/golang/snappy v0.0.1 // indirect
github.com/gorilla/csrf v1.5.1
github.com/kr/pty v1.1.5 // indirect
github.com/mattn/go-isatty v0.0.8 // indirect
github.com/nightlyone/lockfile v0.0.0-20170804114028-6a197d5ea611
github.com/prometheus/client_golang v0.9.4
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
github.com/rs/zerolog v1.14.3
github.com/satori/go.uuid v0.0.0-20160713180306-0aa62d5ddceb
github.com/shirou/gopsutil v0.0.0-20170510024726-b6da2bd76e7d
github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4 // indirect
github.com/stretchr/objx v0.2.0 // indirect
github.com/stretchr/testify v1.3.0
github.com/gin-contrib/cors v1.7.6
github.com/gin-gonic/gin v1.12.0
github.com/go-jose/go-jose/v4 v4.1.3
github.com/nightlyone/lockfile v1.0.0
github.com/prometheus/client_golang v1.23.2
github.com/prometheus/client_model v0.6.2
github.com/rs/zerolog v1.34.0
github.com/satori/go.uuid v1.2.0
github.com/shirou/gopsutil v3.21.11+incompatible
github.com/stretchr/testify v1.11.1
github.com/tankbusta/gzip v0.0.0-20171023233440-5ea045a82e8f
github.com/tchap/go-exchange v0.0.0-20141009085351-ebe3feb493da
github.com/tchap/go-patricia v2.2.6+incompatible // indirect
golang.org/x/crypto v0.49.0
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
gopkg.in/ldap.v2 v2.5.1
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/DataDog/zstd v1.4.0 // indirect
github.com/Sereal/Sereal v0.0.0-20190606082811-cf1bab6c7a3a // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bytedance/gopkg v0.1.4 // indirect
github.com/bytedance/sonic v1.15.0 // indirect
github.com/bytedance/sonic/loader v0.5.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cloudwego/base64x v0.1.6 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/gabriel-vasile/mimetype v1.4.13 // indirect
github.com/gin-contrib/sse v1.1.0 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.30.1 // indirect
github.com/goccy/go-json v0.10.6 // indirect
github.com/goccy/go-yaml v1.19.2 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/golang/snappy v0.0.1 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/common v0.67.5 // indirect
github.com/prometheus/procfs v0.20.1 // indirect
github.com/quic-go/qpack v0.6.0 // indirect
github.com/quic-go/quic-go v0.59.0 // indirect
github.com/tchap/go-patricia v2.3.0+incompatible // indirect
github.com/tklauser/go-sysconf v0.3.16 // indirect
github.com/tklauser/numcpus v0.11.0 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.3.1 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
go.etcd.io/bbolt v1.3.3 // indirect
golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8
golang.org/x/net v0.0.0-20190611141213-3f473d35a33a // indirect
golang.org/x/sys v0.0.0-20190610200419-93c9922d18ae // indirect
golang.org/x/tools v0.0.0-20190611222205-d73e1c7e250b // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.etcd.io/bbolt v1.4.3 // indirect
go.mongodb.org/mongo-driver/v2 v2.5.0 // indirect
go.yaml.in/yaml/v2 v2.4.4 // indirect
golang.org/x/arch v0.25.0 // indirect
golang.org/x/net v0.52.0 // indirect
golang.org/x/sys v0.42.0 // indirect
golang.org/x/text v0.35.0 // indirect
google.golang.org/appengine v1.6.1 // indirect
google.golang.org/protobuf v1.36.11 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
gopkg.in/asn1-ber.v1 v1.0.0-20150924051756-4e86f4367175 // indirect
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
gopkg.in/ldap.v2 v2.5.1
gopkg.in/square/go-jose.v2 v2.3.1
gopkg.in/yaml.v2 v2.2.2
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading