Skip to content

Commit

Permalink
修改文件结构
Browse files Browse the repository at this point in the history
  • Loading branch information
homelanmder committed Feb 18, 2024
1 parent aef6336 commit 487f767
Show file tree
Hide file tree
Showing 180 changed files with 657 additions and 657 deletions.
2 changes: 1 addition & 1 deletion pkg/catalog/config/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"

"github.com/projectdiscovery/gologger"
"line/pkg/templates/extensions"
"github.com/homelanmder/synScanner/pkg/templates/extensions"
fileutil "github.com/projectdiscovery/utils/file"
stringsutil "github.com/projectdiscovery/utils/strings"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/catalog/disk/find.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/pkg/errors"
//"github.com/projectdiscovery/gologger"
stringsutil "github.com/projectdiscovery/utils/strings"
"line/pkg/catalog/config"
"github.com/homelanmder/synScanner/pkg/catalog/config"
//updateutils "github.com/projectdiscovery/utils/update"
urlutil "github.com/projectdiscovery/utils/url"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/catalog/loader/filter/path_filter.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package filter

import (
"line/pkg/catalog"
"github.com/homelanmder/synScanner/pkg/catalog"
)

// PathFilter is a path based template filter
Expand Down
12 changes: 6 additions & 6 deletions pkg/catalog/loader/filter/tag_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"github.com/Knetic/govaluate"
"github.com/projectdiscovery/gologger"
sliceutil "github.com/projectdiscovery/utils/slice"
"line/pkg/model/types/severity"
"line/pkg/operators/common/dsl"
"line/pkg/operators/extractors"
"line/pkg/operators/matchers"
"line/pkg/templates"
"line/pkg/templates/types"
"github.com/homelanmder/synScanner/pkg/model/types/severity"
"github.com/homelanmder/synScanner/pkg/operators/common/dsl"
"github.com/homelanmder/synScanner/pkg/operators/extractors"
"github.com/homelanmder/synScanner/pkg/operators/matchers"
"github.com/homelanmder/synScanner/pkg/templates"
"github.com/homelanmder/synScanner/pkg/templates/types"
)

// TagFilter is used to filter nuclei templates for tag based execution
Expand Down
14 changes: 7 additions & 7 deletions pkg/catalog/loader/filter/tag_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package filter
import (
"testing"

"line/pkg/model"
"line/pkg/model/types/severity"
"line/pkg/model/types/stringslice"
"line/pkg/protocols/dns"
"line/pkg/protocols/http"
"line/pkg/templates"
"line/pkg/templates/types"
"github.com/homelanmder/synScanner/pkg/model"
"github.com/homelanmder/synScanner/pkg/model/types/severity"
"github.com/homelanmder/synScanner/pkg/model/types/stringslice"
"github.com/homelanmder/synScanner/pkg/protocols/dns"
"github.com/homelanmder/synScanner/pkg/protocols/http"
"github.com/homelanmder/synScanner/pkg/templates"
"github.com/homelanmder/synScanner/pkg/templates/types"
"github.com/stretchr/testify/require"
)

Expand Down
20 changes: 10 additions & 10 deletions pkg/catalog/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import (

"github.com/pkg/errors"
"github.com/projectdiscovery/gologger"
"line/pkg/catalog"
cfg "line/pkg/catalog/config"
"line/pkg/catalog/loader/filter"
"line/pkg/model/types/severity"
"line/pkg/parsers"
"line/pkg/protocols"
"line/pkg/templates"
templateTypes "line/pkg/templates/types"
"line/pkg/types"
"line/pkg/utils/stats"
"github.com/homelanmder/synScanner/pkg/catalog"
cfg "github.com/homelanmder/synScanner/pkg/catalog/config"
"github.com/homelanmder/synScanner/pkg/catalog/loader/filter"
"github.com/homelanmder/synScanner/pkg/model/types/severity"
"github.com/homelanmder/synScanner/pkg/parsers"
"github.com/homelanmder/synScanner/pkg/protocols"
"github.com/homelanmder/synScanner/pkg/templates"
templateTypes "github.com/homelanmder/synScanner/pkg/templates/types"
"github.com/homelanmder/synScanner/pkg/types"
"github.com/homelanmder/synScanner/pkg/utils/stats"
)

// Config contains the configuration options for the loader
Expand Down
4 changes: 2 additions & 2 deletions pkg/catalog/loader/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

"line/pkg/catalog/config"
"line/pkg/catalog/disk"
"github.com/homelanmder/synScanner/pkg/catalog/config"
"github.com/homelanmder/synScanner/pkg/catalog/disk"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/catalog/loader/remote_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/pkg/errors"

"line/pkg/templates/extensions"
"line/pkg/utils"
"github.com/homelanmder/synScanner/pkg/templates/extensions"
"github.com/homelanmder/synScanner/pkg/utils"
"github.com/projectdiscovery/retryablehttp-go"
stringsutil "github.com/projectdiscovery/utils/strings"
)
Expand Down
8 changes: 4 additions & 4 deletions pkg/core/engine.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package core

import (
"line/pkg/output"
"line/pkg/protocols"
"line/pkg/protocols/common/contextargs"
"line/pkg/types"
"github.com/homelanmder/synScanner/pkg/output"
"github.com/homelanmder/synScanner/pkg/protocols"
"github.com/homelanmder/synScanner/pkg/protocols/common/contextargs"
"github.com/homelanmder/synScanner/pkg/types"
)

// Engine is an executer for running Nuclei Templates/Workflows.
Expand Down
10 changes: 5 additions & 5 deletions pkg/core/execute_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (

"github.com/remeh/sizedwaitgroup"

"line/pkg/output"
"line/pkg/protocols/common/contextargs"
"line/pkg/templates"
"line/pkg/templates/types"
"line/pkg/types/scanstrategy"
"github.com/homelanmder/synScanner/pkg/output"
"github.com/homelanmder/synScanner/pkg/protocols/common/contextargs"
"github.com/homelanmder/synScanner/pkg/templates"
"github.com/homelanmder/synScanner/pkg/templates/types"
"github.com/homelanmder/synScanner/pkg/types/scanstrategy"
stringsutil "github.com/projectdiscovery/utils/strings"
)

Expand Down
10 changes: 5 additions & 5 deletions pkg/core/executors.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (

"github.com/projectdiscovery/gologger"
"github.com/remeh/sizedwaitgroup"
"line/pkg/output"
"line/pkg/protocols/common/contextargs"
"line/pkg/templates"
"line/pkg/templates/types"
generalTypes "line/pkg/types"
"github.com/homelanmder/synScanner/pkg/output"
"github.com/homelanmder/synScanner/pkg/protocols/common/contextargs"
"github.com/homelanmder/synScanner/pkg/templates"
"github.com/homelanmder/synScanner/pkg/templates/types"
generalTypes "github.com/homelanmder/synScanner/pkg/types"
)

// Executors are low level executors that deals with template execution on a target
Expand Down
10 changes: 5 additions & 5 deletions pkg/core/inputs/hybrid/hmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"github.com/pkg/errors"

"github.com/projectdiscovery/gologger"
"line/pkg/hmap/filekv"
"line/pkg/hmap/store/hybrid"
"github.com/homelanmder/synScanner/pkg/hmap/filekv"
"github.com/homelanmder/synScanner/pkg/hmap/store/hybrid"
"github.com/projectdiscovery/mapcidr"
"github.com/projectdiscovery/mapcidr/asn"
uncoverlib "github.com/projectdiscovery/uncover"
Expand All @@ -25,9 +25,9 @@ import (
readerutil "github.com/projectdiscovery/utils/reader"
sliceutil "github.com/projectdiscovery/utils/slice"
urlutil "github.com/projectdiscovery/utils/url"
"line/pkg/protocols/common/contextargs"
"line/pkg/protocols/common/uncover"
"line/pkg/types"
"github.com/homelanmder/synScanner/pkg/protocols/common/contextargs"
"github.com/homelanmder/synScanner/pkg/protocols/common/uncover"
"github.com/homelanmder/synScanner/pkg/types"
)

const DefaultMaxDedupeItemsCount = 10000
Expand Down
2 changes: 1 addition & 1 deletion pkg/core/inputs/inputs.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package inputs

import "line/pkg/protocols/common/contextargs"
import "github.com/homelanmder/synScanner/pkg/protocols/common/contextargs"

type SimpleInputProvider struct {
Inputs []*contextargs.MetaInput
Expand Down
6 changes: 3 additions & 3 deletions pkg/core/workflow_execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/remeh/sizedwaitgroup"

"github.com/projectdiscovery/gologger"
"line/pkg/output"
"line/pkg/protocols/common/contextargs"
"line/pkg/workflows"
"github.com/homelanmder/synScanner/pkg/output"
"github.com/homelanmder/synScanner/pkg/protocols/common/contextargs"
"github.com/homelanmder/synScanner/pkg/workflows"
)

const workflowStepExecutionError = "[%s] Could not execute workflow step: %s\n"
Expand Down
16 changes: 8 additions & 8 deletions pkg/core/workflow_execute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package core
import (
"testing"

"line/pkg/model/types/stringslice"
"line/pkg/operators"
"line/pkg/output"
"line/pkg/progress"
"line/pkg/protocols"
"line/pkg/protocols/common/contextargs"
"line/pkg/types"
"line/pkg/workflows"
"github.com/homelanmder/synScanner/pkg/model/types/stringslice"
"github.com/homelanmder/synScanner/pkg/operators"
"github.com/homelanmder/synScanner/pkg/output"
"github.com/homelanmder/synScanner/pkg/progress"
"github.com/homelanmder/synScanner/pkg/protocols"
"github.com/homelanmder/synScanner/pkg/protocols/common/contextargs"
"github.com/homelanmder/synScanner/pkg/types"
"github.com/homelanmder/synScanner/pkg/workflows"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/core/workpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package core
import (
"github.com/remeh/sizedwaitgroup"

"line/pkg/templates/types"
"github.com/homelanmder/synScanner/pkg/templates/types"
)

// WorkPool implements an execution pool for executing different
Expand Down
2 changes: 1 addition & 1 deletion pkg/fastdialer/fastdialer/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"net"
"strings"
"time"
"line/pkg/hmap/store/hybrid"
"github.com/homelanmder/synScanner/pkg/hmap/store/hybrid"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/fastdialer/fastdialer/hostsfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"path/filepath"
"strings"
"line/pkg/hmap/store/hybrid"
"github.com/homelanmder/synScanner/pkg/hmap/store/hybrid"
)

func loadHostsFile(hm *hybrid.HybridMap) error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/grdp/core/io_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/hex"
"testing"

"line/pkg/grdp/core"
"github.com/homelanmder/synScanner/pkg/grdp/core"
)

func TestWriteUInt16LE(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/grdp/core/rle.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package core

import (
"line/pkg/grdp/glog"
"github.com/homelanmder/synScanner/pkg/grdp/glog"
"unsafe"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/grdp/core/types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package core

import "line/pkg/grdp/emission"
import "github.com/homelanmder/synScanner/pkg/grdp/emission"

type Transport interface {
Read(b []byte) (n int, err error)
Expand Down
18 changes: 9 additions & 9 deletions pkg/grdp/grdp.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import (
"sync"
"time"

"line/pkg/grdp/core"
"line/pkg/grdp/glog"
"line/pkg/grdp/protocol/nla"
"line/pkg/grdp/protocol/pdu"
"line/pkg/grdp/protocol/rfb"
"line/pkg/grdp/protocol/sec"
"line/pkg/grdp/protocol/t125"
"line/pkg/grdp/protocol/tpkt"
"line/pkg/grdp/protocol/x224"
"github.com/homelanmder/synScanner/pkg/grdp/core"
"github.com/homelanmder/synScanner/pkg/grdp/glog"
"github.com/homelanmder/synScanner/pkg/grdp/protocol/nla"
"github.com/homelanmder/synScanner/pkg/grdp/protocol/pdu"
"github.com/homelanmder/synScanner/pkg/grdp/protocol/rfb"
"github.com/homelanmder/synScanner/pkg/grdp/protocol/sec"
"github.com/homelanmder/synScanner/pkg/grdp/protocol/t125"
"github.com/homelanmder/synScanner/pkg/grdp/protocol/tpkt"
"github.com/homelanmder/synScanner/pkg/grdp/protocol/x224"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/grdp/grdp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package grdp

import (
"fmt"
"line/pkg/grdp/glog"
"github.com/homelanmder/synScanner/pkg/grdp/glog"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/grdp/protocol/lic/lic.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package lic
import (
"io"

"line/pkg/grdp/core"
"github.com/homelanmder/synScanner/pkg/grdp/core"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/grdp/protocol/nla/cssp.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package nla
import (
"encoding/asn1"

"line/pkg/grdp/glog"
"github.com/homelanmder/synScanner/pkg/grdp/glog"
)

type NegoToken struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/grdp/protocol/nla/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"

"golang.org/x/crypto/md4"
"line/pkg/grdp/core"
"github.com/homelanmder/synScanner/pkg/grdp/core"
)

func MD4(data []byte) []byte {
Expand Down
2 changes: 1 addition & 1 deletion pkg/grdp/protocol/nla/encode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/hex"
"testing"

"line/pkg/grdp/protocol/nla"
"github.com/homelanmder/synScanner/pkg/grdp/protocol/nla"
)

func TestNTOWFv2(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/grdp/protocol/nla/ntlm.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"time"

"github.com/lunixbochs/struc"
"line/pkg/grdp/core"
"line/pkg/grdp/glog"
"github.com/homelanmder/synScanner/pkg/grdp/core"
"github.com/homelanmder/synScanner/pkg/grdp/glog"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions pkg/grdp/protocol/pdu/caps.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"fmt"
"io"

"line/pkg/grdp/glog"
"github.com/homelanmder/synScanner/pkg/grdp/glog"

"github.com/lunixbochs/struc"
"line/pkg/grdp/core"
"line/pkg/grdp/protocol/t125/gcc"
"github.com/homelanmder/synScanner/pkg/grdp/core"
"github.com/homelanmder/synScanner/pkg/grdp/protocol/t125/gcc"
)

type CapsType uint16
Expand Down
4 changes: 2 additions & 2 deletions pkg/grdp/protocol/pdu/cliprdr.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package pdu
import (
"bytes"

"line/pkg/grdp/core"
"line/pkg/grdp/glog"
"github.com/homelanmder/synScanner/pkg/grdp/core"
"github.com/homelanmder/synScanner/pkg/grdp/glog"
)

/**
Expand Down
Loading

0 comments on commit 487f767

Please sign in to comment.