Update import paths to use new module path hub.krkn.tech/KrakenTech/crowsnest across the project
This commit is contained in:
+7
-6
@@ -1,15 +1,16 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/badger"
|
|
||||||
"crowsnest/internal/debug"
|
|
||||||
"crowsnest/internal/dehashed"
|
|
||||||
"crowsnest/internal/files"
|
|
||||||
"crowsnest/internal/pretty"
|
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/badger"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/debug"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/dehashed"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/files"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/pretty"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
+9
-8
@@ -1,17 +1,18 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/badger"
|
|
||||||
"crowsnest/internal/debug"
|
|
||||||
"crowsnest/internal/export"
|
|
||||||
"crowsnest/internal/files"
|
|
||||||
hunter "crowsnest/internal/hunter.io"
|
|
||||||
"crowsnest/internal/pretty"
|
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"time"
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/badger"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/debug"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/export"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/files"
|
||||||
|
hunter "hub.krkn.tech/KrakenTech/crowsnest/internal/hunter.io"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/pretty"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
+4
-3
@@ -1,15 +1,16 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/easyTime"
|
|
||||||
"crowsnest/internal/pretty"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/spf13/cobra"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/spf13/cobra"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/easyTime"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/pretty"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
+7
-6
@@ -1,16 +1,17 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/debug"
|
|
||||||
"crowsnest/internal/export"
|
|
||||||
"crowsnest/internal/files"
|
|
||||||
"crowsnest/internal/pretty"
|
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"strings"
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/debug"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/export"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/files"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/pretty"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
+4
-3
@@ -1,13 +1,14 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/badger"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"os"
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/badger"
|
||||||
"strings"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
+2
-1
@@ -1,9 +1,10 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/pretty"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/pretty"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Map of available tables and their columns
|
// Map of available tables and their columns
|
||||||
|
|||||||
+4
-3
@@ -1,12 +1,13 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/spf13/cobra"
|
|
||||||
"go.uber.org/zap"
|
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/spf13/cobra"
|
||||||
|
"go.uber.org/zap"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
+9
-8
@@ -1,18 +1,19 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/debug"
|
|
||||||
"crowsnest/internal/export"
|
|
||||||
"crowsnest/internal/files"
|
|
||||||
"crowsnest/internal/pretty"
|
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"crowsnest/internal/whois"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/spf13/cobra"
|
|
||||||
"go.uber.org/zap"
|
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/spf13/cobra"
|
||||||
|
"go.uber.org/zap"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/debug"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/export"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/files"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/pretty"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/whois"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
+6
-5
@@ -1,16 +1,17 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/cmd"
|
|
||||||
"crowsnest/internal/badger"
|
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/winking324/rzap"
|
"github.com/winking324/rzap"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"go.uber.org/zap/zapcore"
|
"go.uber.org/zap/zapcore"
|
||||||
"gopkg.in/natefinch/lumberjack.v2"
|
"gopkg.in/natefinch/lumberjack.v2"
|
||||||
"os"
|
"hub.krkn.tech/KrakenTech/crowsnest/cmd"
|
||||||
"path/filepath"
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/badger"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module crowsnest
|
module hub.krkn.tech/KrakenTech/crowsnest
|
||||||
|
|
||||||
go 1.23.0
|
go 1.23.0
|
||||||
|
|
||||||
|
|||||||
@@ -2,17 +2,18 @@ package dehashed
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"crowsnest/internal/debug"
|
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"go.uber.org/zap"
|
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"go.uber.org/zap"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/debug"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DehashedParameter string
|
type DehashedParameter string
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"crowsnest/internal/files"
|
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/files"
|
||||||
)
|
)
|
||||||
|
|
||||||
const dataWellsEndpoint = "https://api.dehashed.com/data-wells"
|
const dataWellsEndpoint = "https://api.dehashed.com/data-wells"
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
package dehashed
|
package dehashed
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/debug"
|
|
||||||
"crowsnest/internal/export"
|
|
||||||
"crowsnest/internal/pretty"
|
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"go.uber.org/zap"
|
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"go.uber.org/zap"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/debug"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/export"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/pretty"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"crowsnest/internal/sqlite"
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSetQueriesCapsSearchAtFiftyThousandResults(t *testing.T) {
|
func TestSetQueriesCapsSearchAtFiftyThousandResults(t *testing.T) {
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
package easyTime
|
package easyTime
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/debug"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"go.uber.org/zap"
|
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.uber.org/zap"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/debug"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TimeChunk struct {
|
type TimeChunk struct {
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
package export
|
package export
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/files"
|
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"gopkg.in/yaml.v3"
|
|
||||||
"os"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"gopkg.in/yaml.v3"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/files"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
func WriteCredsToFile(creds []sqlite.User, outputFile string, fileType files.FileType) error {
|
func WriteCredsToFile(creds []sqlite.User, outputFile string, fileType files.FileType) error {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"crowsnest/internal/sqlite"
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDehashedResultGreppableUsesSpaceSeparatedNonEmptyTokens(t *testing.T) {
|
func TestDehashedResultGreppableUsesSpaceSeparatedNonEmptyTokens(t *testing.T) {
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
package export
|
package export
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/files"
|
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"fmt"
|
"fmt"
|
||||||
"gopkg.in/yaml.v3"
|
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"gopkg.in/yaml.v3"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/files"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
func WriteIStringToFile(iString sqlite.IString, outputFile string, fileType files.FileType) error {
|
func WriteIStringToFile(iString sqlite.IString, outputFile string, fileType files.FileType) error {
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
package hunter_io
|
package hunter_io
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/debug"
|
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"go.uber.org/zap"
|
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"go.uber.org/zap"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/debug"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
package pretty
|
package pretty
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/charmbracelet/lipgloss"
|
"github.com/charmbracelet/lipgloss"
|
||||||
"github.com/charmbracelet/lipgloss/tree"
|
"github.com/charmbracelet/lipgloss/tree"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
func WhoIsTree(root string, record sqlite.WhoisRecord) {
|
func WhoIsTree(root string, record sqlite.WhoisRecord) {
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
package sqlite
|
package sqlite
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crowsnest/internal/files"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/files"
|
||||||
)
|
)
|
||||||
|
|
||||||
type QueryOptions struct {
|
type QueryOptions struct {
|
||||||
|
|||||||
@@ -2,15 +2,16 @@ package whois
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"crowsnest/internal/debug"
|
|
||||||
"crowsnest/internal/dehashed"
|
|
||||||
"crowsnest/internal/sqlite"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"go.uber.org/zap"
|
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
"go.uber.org/zap"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/debug"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/dehashed"
|
||||||
|
"hub.krkn.tech/KrakenTech/crowsnest/internal/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DehashedWHOISSearchRequest struct {
|
type DehashedWHOISSearchRequest struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user