From 6b209bfb380b9eb71fb96a6fd5da24c43bf8f516 Mon Sep 17 00:00:00 2001 From: Celeste Hickenlooper Date: Sat, 3 Jan 2026 00:47:12 -0800 Subject: [PATCH] refactor: move logger to internal --- {pkg => internal}/logger/logger.go | 0 {pkg => internal}/logger/logger_test.go | 0 pkg/scan/cloudstorage.go | 2 +- pkg/scan/cms.go | 2 +- pkg/scan/dirlist.go | 2 +- pkg/scan/dnslist.go | 2 +- pkg/scan/dork.go | 2 +- pkg/scan/frameworks/detect.go | 2 +- pkg/scan/git.go | 2 +- pkg/scan/headers.go | 2 +- pkg/scan/lfi.go | 2 +- pkg/scan/ports.go | 2 +- pkg/scan/scan.go | 2 +- pkg/scan/shodan.go | 2 +- pkg/scan/sql.go | 2 +- pkg/scan/subdomaintakeover.go | 2 +- pkg/scan/whois.go | 2 +- sif.go | 4 ++-- 18 files changed, 17 insertions(+), 17 deletions(-) rename {pkg => internal}/logger/logger.go (100%) rename {pkg => internal}/logger/logger_test.go (100%) diff --git a/pkg/logger/logger.go b/internal/logger/logger.go similarity index 100% rename from pkg/logger/logger.go rename to internal/logger/logger.go diff --git a/pkg/logger/logger_test.go b/internal/logger/logger_test.go similarity index 100% rename from pkg/logger/logger_test.go rename to internal/logger/logger_test.go diff --git a/pkg/scan/cloudstorage.go b/pkg/scan/cloudstorage.go index 4070211..d903b20 100644 --- a/pkg/scan/cloudstorage.go +++ b/pkg/scan/cloudstorage.go @@ -20,8 +20,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" ) type CloudStorageResult struct { diff --git a/pkg/scan/cms.go b/pkg/scan/cms.go index 8426a6d..71ea5d8 100644 --- a/pkg/scan/cms.go +++ b/pkg/scan/cms.go @@ -21,8 +21,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" ) type CMSResult struct { diff --git a/pkg/scan/dirlist.go b/pkg/scan/dirlist.go index 2c50554..cfbd848 100644 --- a/pkg/scan/dirlist.go +++ b/pkg/scan/dirlist.go @@ -23,8 +23,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" ) const ( diff --git a/pkg/scan/dnslist.go b/pkg/scan/dnslist.go index 816ecce..9b42ef4 100644 --- a/pkg/scan/dnslist.go +++ b/pkg/scan/dnslist.go @@ -22,8 +22,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" ) const ( diff --git a/pkg/scan/dork.go b/pkg/scan/dork.go index 3e7f026..0689987 100644 --- a/pkg/scan/dork.go +++ b/pkg/scan/dork.go @@ -26,8 +26,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" googlesearch "github.com/rocketlaunchr/google-search" ) diff --git a/pkg/scan/frameworks/detect.go b/pkg/scan/frameworks/detect.go index 91ca88e..bb59fc3 100644 --- a/pkg/scan/frameworks/detect.go +++ b/pkg/scan/frameworks/detect.go @@ -21,8 +21,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" ) // detectionThreshold is the minimum confidence for a detection to be reported. diff --git a/pkg/scan/git.go b/pkg/scan/git.go index 4e00dda..bf40062 100644 --- a/pkg/scan/git.go +++ b/pkg/scan/git.go @@ -23,8 +23,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" ) const ( diff --git a/pkg/scan/headers.go b/pkg/scan/headers.go index 178123c..05f19c7 100644 --- a/pkg/scan/headers.go +++ b/pkg/scan/headers.go @@ -20,8 +20,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" ) type HeaderResult struct { diff --git a/pkg/scan/lfi.go b/pkg/scan/lfi.go index 6286519..2c79dda 100644 --- a/pkg/scan/lfi.go +++ b/pkg/scan/lfi.go @@ -24,8 +24,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" ) // LFIResult represents the results of LFI reconnaissance diff --git a/pkg/scan/ports.go b/pkg/scan/ports.go index fdd79f2..8946838 100644 --- a/pkg/scan/ports.go +++ b/pkg/scan/ports.go @@ -24,8 +24,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" ) const commonPorts = "https://raw.githubusercontent.com/dropalldatabases/sif-runtime/main/ports/top-ports.txt" diff --git a/pkg/scan/scan.go b/pkg/scan/scan.go index fd89462..91d579a 100644 --- a/pkg/scan/scan.go +++ b/pkg/scan/scan.go @@ -28,8 +28,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" ) func fetchRobotsTXT(url string, client *http.Client) *http.Response { diff --git a/pkg/scan/shodan.go b/pkg/scan/shodan.go index ac494e9..9395b0e 100644 --- a/pkg/scan/shodan.go +++ b/pkg/scan/shodan.go @@ -24,8 +24,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" ) const shodanBaseURL = "https://api.shodan.io" diff --git a/pkg/scan/sql.go b/pkg/scan/sql.go index f93d8e7..806fcf9 100644 --- a/pkg/scan/sql.go +++ b/pkg/scan/sql.go @@ -23,8 +23,8 @@ import ( "time" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" ) // SQLResult represents the results of SQL reconnaissance diff --git a/pkg/scan/subdomaintakeover.go b/pkg/scan/subdomaintakeover.go index e3c256d..12e4a9b 100644 --- a/pkg/scan/subdomaintakeover.go +++ b/pkg/scan/subdomaintakeover.go @@ -15,8 +15,8 @@ package scan import ( "fmt" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" "io" "net" "net/http" diff --git a/pkg/scan/whois.go b/pkg/scan/whois.go index 77aa8cf..bd6d347 100644 --- a/pkg/scan/whois.go +++ b/pkg/scan/whois.go @@ -18,8 +18,8 @@ import ( "strings" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/logger" "github.com/likexian/whois" ) diff --git a/sif.go b/sif.go index d450efd..fca6a1e 100644 --- a/sif.go +++ b/sif.go @@ -23,9 +23,9 @@ import ( "strings" "github.com/charmbracelet/log" + "github.com/dropalldatabases/sif/internal/config" + "github.com/dropalldatabases/sif/internal/logger" "github.com/dropalldatabases/sif/internal/styles" - "github.com/dropalldatabases/sif/pkg/config" - "github.com/dropalldatabases/sif/pkg/logger" "github.com/dropalldatabases/sif/pkg/scan" "github.com/dropalldatabases/sif/pkg/scan/frameworks" jsscan "github.com/dropalldatabases/sif/pkg/scan/js"