mirror of
https://github.com/lunchcat/sif.git
synced 2026-03-12 21:23:04 -07:00
refactor: move pkg/scan to internal/scan
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
|||||||
"github.com/dropalldatabases/sif/internal/config"
|
"github.com/dropalldatabases/sif/internal/config"
|
||||||
|
|
||||||
// Register framework detectors
|
// Register framework detectors
|
||||||
_ "github.com/dropalldatabases/sif/pkg/scan/frameworks/detectors"
|
_ "github.com/dropalldatabases/sif/internal/scan/frameworks/detectors"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -18,9 +18,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/dropalldatabases/sif/pkg/scan/frameworks"
|
"github.com/dropalldatabases/sif/internal/scan/frameworks"
|
||||||
// Import detectors to register them via init()
|
// Import detectors to register them via init()
|
||||||
_ "github.com/dropalldatabases/sif/pkg/scan/frameworks/detectors"
|
_ "github.com/dropalldatabases/sif/internal/scan/frameworks/detectors"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestExtractVersion_Laravel(t *testing.T) {
|
func TestExtractVersion_Laravel(t *testing.T) {
|
||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"math"
|
"math"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks"
|
fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@@ -10,7 +10,7 @@ package detectors
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks"
|
fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@@ -10,7 +10,7 @@ package detectors
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks"
|
fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@@ -10,7 +10,7 @@ package detectors
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks"
|
fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@@ -23,7 +23,7 @@ import (
|
|||||||
|
|
||||||
"github.com/antchfx/htmlquery"
|
"github.com/antchfx/htmlquery"
|
||||||
"github.com/charmbracelet/log"
|
"github.com/charmbracelet/log"
|
||||||
"github.com/dropalldatabases/sif/pkg/scan/js/frameworks"
|
"github.com/dropalldatabases/sif/internal/scan/js/frameworks"
|
||||||
urlutil "github.com/projectdiscovery/utils/url"
|
urlutil "github.com/projectdiscovery/utils/url"
|
||||||
)
|
)
|
||||||
|
|
||||||
6
sif.go
6
sif.go
@@ -27,10 +27,10 @@ import (
|
|||||||
"github.com/dropalldatabases/sif/internal/config"
|
"github.com/dropalldatabases/sif/internal/config"
|
||||||
"github.com/dropalldatabases/sif/internal/logger"
|
"github.com/dropalldatabases/sif/internal/logger"
|
||||||
"github.com/dropalldatabases/sif/internal/modules"
|
"github.com/dropalldatabases/sif/internal/modules"
|
||||||
|
"github.com/dropalldatabases/sif/internal/scan"
|
||||||
|
"github.com/dropalldatabases/sif/internal/scan/frameworks"
|
||||||
|
jsscan "github.com/dropalldatabases/sif/internal/scan/js"
|
||||||
"github.com/dropalldatabases/sif/internal/styles"
|
"github.com/dropalldatabases/sif/internal/styles"
|
||||||
"github.com/dropalldatabases/sif/pkg/scan"
|
|
||||||
"github.com/dropalldatabases/sif/pkg/scan/frameworks"
|
|
||||||
jsscan "github.com/dropalldatabases/sif/pkg/scan/js"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// App represents the main application structure for sif.
|
// App represents the main application structure for sif.
|
||||||
|
|||||||
Reference in New Issue
Block a user