Skip to content

Commit

Permalink
linter: format with gci write
Browse files Browse the repository at this point in the history
  • Loading branch information
hdm committed Sep 30, 2024
1 parent b1ad216 commit ccd7b91
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 17 deletions.
4 changes: 1 addition & 3 deletions auth/halfauth_bogus_research.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
3 changes: 2 additions & 1 deletion auth/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
3 changes: 2 additions & 1 deletion auth/pubkey_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion badkeys/badkeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"path/filepath"

"github.com/runZeroInc/excrypto/crypto/sha256"

"github.com/runZeroInc/excrypto/x/crypto/ssh"
)

Expand Down
4 changes: 2 additions & 2 deletions badkeys/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion badkeys/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions cmd/check_password.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand Down
3 changes: 2 additions & 1 deletion cmd/check_userenum.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion cmd/cmd_analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion cmd/cmd_badkeys.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions cmd/cmd_scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion cmd/interact.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit ccd7b91

Please sign in to comment.