Skip to content

Commit

Permalink
chore: switch to excrypto vs inline x/crypto patches
Browse files Browse the repository at this point in the history
  • Loading branch information
hdm committed Sep 29, 2024
1 parent d57767d commit c0c433f
Show file tree
Hide file tree
Showing 403 changed files with 123 additions and 94,633 deletions.
2 changes: 1 addition & 1 deletion auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sync"
"time"

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

type AuthHandler func(*ssh.UnauthClientConn, map[string][]byte, *AuthResult) error
Expand Down
2 changes: 1 addition & 1 deletion auth/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package auth

import (
"github.com/runZeroInc/sshamble/crypto/ssh"
"github.com/runZeroInc/excrypto/x/crypto/ssh"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion auth/halfauth_bogus_research.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"io"

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

type HalfSignerBogus struct {
Expand Down
2 changes: 1 addition & 1 deletion auth/halfauth_research.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"io"

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

var ErrHalfAuth = errors.New("half-auth")
Expand Down
2 changes: 1 addition & 1 deletion auth/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"
"unicode/utf8"

"github.com/runZeroInc/sshamble/crypto/ssh"
"github.com/runZeroInc/excrypto/x/crypto/ssh"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion auth/pubkey_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"sync"

"github.com/runZeroInc/sshamble/crypto/ssh"
"github.com/runZeroInc/excrypto/x/crypto/ssh"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion auth/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"time"

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

type VulnResult struct {
Expand Down
2 changes: 1 addition & 1 deletion badkeys/badkeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"path/filepath"

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

const BadKeysMetaURL = "https://update.badkeys.info/v0/badkeysdata.json"
Expand Down
2 changes: 1 addition & 1 deletion badkeys/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/runZeroInc/sshamble/crypto/ssh"
"github.com/runZeroInc/excrypto/x/crypto/ssh"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/check_bypass.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"net"
"strings"

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

func bypassAtInterestingStage(tname string, addr string, conf *ScanConfig, res *auth.AuthResult) bool {
Expand Down
2 changes: 1 addition & 1 deletion cmd/check_gssapi.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/runZeroInc/excrypto/x/crypto/ssh"
"github.com/runZeroInc/sshamble/auth"
"github.com/runZeroInc/sshamble/crypto/ssh"
)

// TODO: Complete implementation
Expand Down
2 changes: 1 addition & 1 deletion cmd/check_hostkeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package cmd
import (
"encoding/base64"

"github.com/runZeroInc/excrypto/x/crypto/ssh"
"github.com/runZeroInc/sshamble/auth"
"github.com/runZeroInc/sshamble/badkeys"
"github.com/runZeroInc/sshamble/crypto/ssh"
)

const checkBadKeysBlocklist = "badkeys-blocklist"
Expand Down
2 changes: 1 addition & 1 deletion cmd/check_keyboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cmd
import (
"strings"

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

func sshCheckKeyboardHelper(addr string, tname string, conf *ScanConfig, options *auth.Options, root *auth.AuthResult, testPass string) *auth.AuthResult {
Expand Down
2 changes: 1 addition & 1 deletion cmd/check_password.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/base64"
"time"

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

func genRandomPassword() string {
Expand Down
2 changes: 1 addition & 1 deletion cmd/check_pubkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"
"time"

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

const checkPubkeyAny = "pubkey-any"
Expand Down
2 changes: 1 addition & 1 deletion cmd/check_userenum.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"sync"
"time"

"github.com/runZeroInc/excrypto/x/crypto/ssh"
"github.com/runZeroInc/sshamble/auth"
"github.com/runZeroInc/sshamble/crypto/ssh"
"gonum.org/v1/gonum/stat"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"strconv"
"strings"

"github.com/runZeroInc/excrypto/x/crypto/ssh"
"github.com/runZeroInc/sshamble/auth"
"github.com/runZeroInc/sshamble/badkeys"
"github.com/runZeroInc/sshamble/crypto/ssh"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"sync/atomic"
"time"

"github.com/runZeroInc/excrypto/x/crypto/ssh"
"github.com/runZeroInc/sshamble/auth"
"github.com/runZeroInc/sshamble/badkeys"
"github.com/runZeroInc/sshamble/crypto/ssh"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/interact.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"sync"
"time"

"github.com/runZeroInc/excrypto/x/crypto/ssh"
"github.com/runZeroInc/sshamble/auth"
"github.com/runZeroInc/sshamble/crypto/ssh"
"golang.org/x/term"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"encoding/pem"
"os"

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

func generateTestKeys(conf *ScanConfig) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cmd
import (
"io"

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

func sessionGetSTDIO(ses *ssh.Session) (*auth.SyncByteBuffer, *auth.SyncByteBuffer, io.WriteCloser, error) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/session_vuln_generic_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"regexp"
"time"

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

const checkVulnGenericEnv = "vuln-generic-env"
Expand Down
2 changes: 1 addition & 1 deletion cmd/session_vuln_gogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strings"
"time"

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

const checkVulnGogsEnv = "vuln-gogs-env"
Expand Down
2 changes: 1 addition & 1 deletion cmd/session_vuln_ruckus.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strings"
"time"

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

const checkVulnRuckusPasswordEscape = "vuln-ruckus-password-escape"
Expand Down
2 changes: 1 addition & 1 deletion cmd/session_vuln_softserve.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strings"
"time"

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

const checkVulnSoftServe = "vuln-softserve-env"
Expand Down
2 changes: 1 addition & 1 deletion cmd/session_vuln_tcp_forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"
"time"

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

type fwdTest struct {
Expand Down
7 changes: 0 additions & 7 deletions crypto.rediff.sh

This file was deleted.

14 changes: 0 additions & 14 deletions crypto.resync.sh

This file was deleted.

10 changes: 0 additions & 10 deletions crypto/.gitattributes

This file was deleted.

2 changes: 0 additions & 2 deletions crypto/.gitignore

This file was deleted.

26 changes: 0 additions & 26 deletions crypto/CONTRIBUTING.md

This file was deleted.

27 changes: 0 additions & 27 deletions crypto/LICENSE

This file was deleted.

22 changes: 0 additions & 22 deletions crypto/PATENTS

This file was deleted.

23 changes: 0 additions & 23 deletions crypto/README.md

This file was deleted.

Loading

0 comments on commit c0c433f

Please sign in to comment.