From ccd7b914ccd0b0099e91a28d7f1f82450799cf5c Mon Sep 17 00:00:00 2001 From: HD Moore Date: Mon, 30 Sep 2024 11:50:03 -0500 Subject: [PATCH] linter: format with gci write --- auth/halfauth_bogus_research.go | 4 +--- auth/options.go | 3 ++- auth/pubkey_file.go | 3 ++- badkeys/badkeys.go | 1 - badkeys/cache.go | 4 ++-- badkeys/cache_test.go | 3 ++- cmd/check_password.go | 3 +-- cmd/check_userenum.go | 3 ++- cmd/cmd_analyze.go | 3 ++- cmd/cmd_badkeys.go | 3 ++- cmd/cmd_scan.go | 5 +++-- cmd/interact.go | 3 ++- 12 files changed, 21 insertions(+), 17 deletions(-) diff --git a/auth/halfauth_bogus_research.go b/auth/halfauth_bogus_research.go index a129bd6..d95e892 100644 --- a/auth/halfauth_bogus_research.go +++ b/auth/halfauth_bogus_research.go @@ -1,14 +1,12 @@ package auth import ( + "crypto/rand" "fmt" "io" - "crypto/rand" - "github.com/runZeroInc/excrypto/crypto" "github.com/runZeroInc/excrypto/crypto/rsa" - "github.com/runZeroInc/excrypto/x/crypto/ssh" ) diff --git a/auth/options.go b/auth/options.go index a63635f..910edbb 100644 --- a/auth/options.go +++ b/auth/options.go @@ -5,8 +5,9 @@ import ( "time" "unicode/utf8" - "github.com/runZeroInc/excrypto/x/crypto/ssh" "github.com/sirupsen/logrus" + + "github.com/runZeroInc/excrypto/x/crypto/ssh" ) type ( diff --git a/auth/pubkey_file.go b/auth/pubkey_file.go index fa9d038..9b84d47 100644 --- a/auth/pubkey_file.go +++ b/auth/pubkey_file.go @@ -8,8 +8,9 @@ import ( "strings" "sync" - "github.com/runZeroInc/excrypto/x/crypto/ssh" "github.com/sirupsen/logrus" + + "github.com/runZeroInc/excrypto/x/crypto/ssh" ) type PubKeyEnt struct { diff --git a/badkeys/badkeys.go b/badkeys/badkeys.go index c0aa8cb..e4dc1e2 100644 --- a/badkeys/badkeys.go +++ b/badkeys/badkeys.go @@ -8,7 +8,6 @@ import ( "path/filepath" "github.com/runZeroInc/excrypto/crypto/sha256" - "github.com/runZeroInc/excrypto/x/crypto/ssh" ) diff --git a/badkeys/cache.go b/badkeys/cache.go index a3db770..b6cb9ef 100644 --- a/badkeys/cache.go +++ b/badkeys/cache.go @@ -14,10 +14,10 @@ import ( "sync" "time" - "github.com/runZeroInc/excrypto/crypto/sha256" - "github.com/sirupsen/logrus" "github.com/ulikunitz/xz" + + "github.com/runZeroInc/excrypto/crypto/sha256" ) const MaxLookupLine = 4096 diff --git a/badkeys/cache_test.go b/badkeys/cache_test.go index d2a8740..1cb1f91 100644 --- a/badkeys/cache_test.go +++ b/badkeys/cache_test.go @@ -7,8 +7,9 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/runZeroInc/excrypto/x/crypto/ssh" "github.com/sirupsen/logrus" + + "github.com/runZeroInc/excrypto/x/crypto/ssh" ) func TestCacheBasics(t *testing.T) { diff --git a/cmd/check_password.go b/cmd/check_password.go index 4e9a95f..f666bee 100644 --- a/cmd/check_password.go +++ b/cmd/check_password.go @@ -1,11 +1,10 @@ package cmd import ( + "crypto/rand" "encoding/base64" "time" - "crypto/rand" - "github.com/runZeroInc/excrypto/x/crypto/ssh" "github.com/runZeroInc/sshamble/auth" ) diff --git a/cmd/check_userenum.go b/cmd/check_userenum.go index 3ea8ba5..aab13db 100644 --- a/cmd/check_userenum.go +++ b/cmd/check_userenum.go @@ -10,10 +10,11 @@ import ( "sync" "time" + "gonum.org/v1/gonum/stat" + "github.com/runZeroInc/excrypto/crypto/sha256" "github.com/runZeroInc/excrypto/x/crypto/ssh" "github.com/runZeroInc/sshamble/auth" - "gonum.org/v1/gonum/stat" ) type userenumAuthTracker struct { diff --git a/cmd/cmd_analyze.go b/cmd/cmd_analyze.go index a1ba21f..8e25b16 100644 --- a/cmd/cmd_analyze.go +++ b/cmd/cmd_analyze.go @@ -12,10 +12,11 @@ import ( "strconv" "strings" + "github.com/spf13/cobra" + "github.com/runZeroInc/excrypto/x/crypto/ssh" "github.com/runZeroInc/sshamble/auth" "github.com/runZeroInc/sshamble/badkeys" - "github.com/spf13/cobra" ) // analyzeCmd processes a scan output file and buckets results diff --git a/cmd/cmd_badkeys.go b/cmd/cmd_badkeys.go index f08eb5f..aa165e6 100644 --- a/cmd/cmd_badkeys.go +++ b/cmd/cmd_badkeys.go @@ -1,8 +1,9 @@ package cmd import ( - "github.com/runZeroInc/sshamble/badkeys" "github.com/spf13/cobra" + + "github.com/runZeroInc/sshamble/badkeys" ) // badkeysCmd processes a scan output file and buckets results diff --git a/cmd/cmd_scan.go b/cmd/cmd_scan.go index ba73e10..100f998 100644 --- a/cmd/cmd_scan.go +++ b/cmd/cmd_scan.go @@ -13,11 +13,12 @@ import ( "sync/atomic" "time" + "github.com/sirupsen/logrus" + "github.com/spf13/cobra" + "github.com/runZeroInc/excrypto/x/crypto/ssh" "github.com/runZeroInc/sshamble/auth" "github.com/runZeroInc/sshamble/badkeys" - "github.com/sirupsen/logrus" - "github.com/spf13/cobra" ) // scanCmd handles scanning diff --git a/cmd/interact.go b/cmd/interact.go index 6858690..e3e7365 100644 --- a/cmd/interact.go +++ b/cmd/interact.go @@ -16,9 +16,10 @@ import ( "sync" "time" + "golang.org/x/term" + "github.com/runZeroInc/excrypto/x/crypto/ssh" "github.com/runZeroInc/sshamble/auth" - "golang.org/x/term" ) const (