v2 update

dev
Ice3man543 2020-07-01 16:17:24 +05:30
parent c8e31074a4
commit 458dbc1b38
43 changed files with 50 additions and 28 deletions

View File

@ -1,6 +1,6 @@
builds: builds:
- binary: nuclei - binary: nuclei
main: cmd/nuclei/main.go main: v2/cmd/nuclei/main.go
goos: goos:
- linux - linux
- windows - windows

View File

@ -5,6 +5,6 @@ RUN go get -u github.com/golang/dep/cmd/dep
WORKDIR /go/src/app WORKDIR /go/src/app
# Install # Install
RUN go get -u github.com/projectdiscovery/nuclei/cmd/nuclei RUN GO111MODULE=on go get -u github.com/projectdiscovery/nuclei/v2/cmd/nuclei
ENTRYPOINT ["nuclei"] ENTRYPOINT ["nuclei"]

View File

@ -2,7 +2,7 @@ package main
import ( import (
"github.com/projectdiscovery/gologger" "github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/internal/runner" "github.com/projectdiscovery/nuclei/v2/internal/runner"
) )
func main() { func main() {

22
v2/go.mod Normal file
View File

@ -0,0 +1,22 @@
module github.com/projectdiscovery/nuclei/v2
go 1.14
require (
github.com/Knetic/govaluate v3.0.0+incompatible
github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535
github.com/blang/semver v3.5.1+incompatible
github.com/d5/tengo v1.24.8
github.com/d5/tengo/v2 v2.6.0
github.com/google/go-github v17.0.0+incompatible
github.com/google/go-github/v32 v32.0.0
github.com/json-iterator/go v1.1.10
github.com/karrick/godirwalk v1.15.6
github.com/miekg/dns v1.1.29
github.com/pkg/errors v0.9.1
github.com/projectdiscovery/gologger v1.0.0
github.com/projectdiscovery/retryabledns v1.0.4
github.com/projectdiscovery/retryablehttp-go v1.0.1
golang.org/x/net v0.0.0-20200528225125-3c3fba18258b
gopkg.in/yaml.v2 v2.3.0
)

View File

@ -5,7 +5,7 @@ import (
"os" "os"
"github.com/projectdiscovery/gologger" "github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/pkg/requests" "github.com/projectdiscovery/nuclei/v2/pkg/requests"
) )
// Options contains the configuration options for tuning // Options contains the configuration options for tuning

View File

@ -14,10 +14,10 @@ import (
"github.com/d5/tengo/v2" "github.com/d5/tengo/v2"
"github.com/karrick/godirwalk" "github.com/karrick/godirwalk"
"github.com/projectdiscovery/gologger" "github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/pkg/executor" "github.com/projectdiscovery/nuclei/v2/pkg/executor"
"github.com/projectdiscovery/nuclei/pkg/requests" "github.com/projectdiscovery/nuclei/v2/pkg/requests"
"github.com/projectdiscovery/nuclei/pkg/templates" "github.com/projectdiscovery/nuclei/v2/pkg/templates"
"github.com/projectdiscovery/nuclei/pkg/workflows" "github.com/projectdiscovery/nuclei/v2/pkg/workflows"
) )
// Runner is a client for running the enumeration process. // Runner is a client for running the enumeration process.

View File

@ -17,10 +17,10 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/projectdiscovery/gologger" "github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/pkg/extractors" "github.com/projectdiscovery/nuclei/v2/pkg/extractors"
"github.com/projectdiscovery/nuclei/pkg/matchers" "github.com/projectdiscovery/nuclei/v2/pkg/matchers"
"github.com/projectdiscovery/nuclei/pkg/requests" "github.com/projectdiscovery/nuclei/v2/pkg/requests"
"github.com/projectdiscovery/nuclei/pkg/templates" "github.com/projectdiscovery/nuclei/v2/pkg/templates"
"github.com/projectdiscovery/retryablehttp-go" "github.com/projectdiscovery/retryablehttp-go"
"golang.org/x/net/proxy" "golang.org/x/net/proxy"
) )

View File

@ -9,9 +9,9 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/projectdiscovery/gologger" "github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/pkg/matchers" "github.com/projectdiscovery/nuclei/v2/pkg/matchers"
"github.com/projectdiscovery/nuclei/pkg/requests" "github.com/projectdiscovery/nuclei/v2/pkg/requests"
"github.com/projectdiscovery/nuclei/pkg/templates" "github.com/projectdiscovery/nuclei/v2/pkg/templates"
retryabledns "github.com/projectdiscovery/retryabledns" retryabledns "github.com/projectdiscovery/retryabledns"
) )

View File

@ -5,7 +5,7 @@ import (
jsoniter "github.com/json-iterator/go" jsoniter "github.com/json-iterator/go"
"github.com/projectdiscovery/gologger" "github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/pkg/matchers" "github.com/projectdiscovery/nuclei/v2/pkg/matchers"
) )
// writeOutputDNS writes dns output to streams // writeOutputDNS writes dns output to streams

View File

@ -5,8 +5,8 @@ import (
jsoniter "github.com/json-iterator/go" jsoniter "github.com/json-iterator/go"
"github.com/projectdiscovery/gologger" "github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/pkg/matchers" "github.com/projectdiscovery/nuclei/v2/pkg/matchers"
"github.com/projectdiscovery/nuclei/pkg/requests" "github.com/projectdiscovery/nuclei/v2/pkg/requests"
) )
// writeOutputHTTP writes http output to streams // writeOutputHTTP writes http output to streams

View File

@ -5,7 +5,7 @@ import (
"regexp" "regexp"
"github.com/Knetic/govaluate" "github.com/Knetic/govaluate"
"github.com/projectdiscovery/nuclei/pkg/generators" "github.com/projectdiscovery/nuclei/v2/pkg/generators"
) )
// CompileMatchers performs the initial setup operation on a matcher // CompileMatchers performs the initial setup operation on a matcher

View File

@ -4,8 +4,8 @@ import (
"strings" "strings"
"github.com/miekg/dns" "github.com/miekg/dns"
"github.com/projectdiscovery/nuclei/pkg/extractors" "github.com/projectdiscovery/nuclei/v2/pkg/extractors"
"github.com/projectdiscovery/nuclei/pkg/matchers" "github.com/projectdiscovery/nuclei/v2/pkg/matchers"
) )
// DNSRequest contains a request to be made from a template // DNSRequest contains a request to be made from a template

View File

@ -10,9 +10,9 @@ import (
"strings" "strings"
"github.com/Knetic/govaluate" "github.com/Knetic/govaluate"
"github.com/projectdiscovery/nuclei/pkg/extractors" "github.com/projectdiscovery/nuclei/v2/pkg/extractors"
"github.com/projectdiscovery/nuclei/pkg/generators" "github.com/projectdiscovery/nuclei/v2/pkg/generators"
"github.com/projectdiscovery/nuclei/pkg/matchers" "github.com/projectdiscovery/nuclei/v2/pkg/matchers"
retryablehttp "github.com/projectdiscovery/retryablehttp-go" retryablehttp "github.com/projectdiscovery/retryablehttp-go"
) )

View File

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/projectdiscovery/nuclei/pkg/generators" "github.com/projectdiscovery/nuclei/v2/pkg/generators"
"github.com/projectdiscovery/nuclei/pkg/matchers" "github.com/projectdiscovery/nuclei/v2/pkg/matchers"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
) )

View File

@ -1,7 +1,7 @@
package templates package templates
import ( import (
"github.com/projectdiscovery/nuclei/pkg/requests" "github.com/projectdiscovery/nuclei/v2/pkg/requests"
) )
// Template is a request template parsed from a yaml file // Template is a request template parsed from a yaml file

View File

@ -3,7 +3,7 @@ package workflows
import ( import (
"github.com/d5/tengo/v2" "github.com/d5/tengo/v2"
"github.com/projectdiscovery/gologger" "github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/pkg/executor" "github.com/projectdiscovery/nuclei/v2/pkg/executor"
) )
// NucleiVar within the scripting engine // NucleiVar within the scripting engine