Giter Club home page Giter Club logo

Comments (3)

elliotcubit avatar elliotcubit commented on August 28, 2024 2

If you are trying to add zgrab2 to your project's dependencies, you can use go get.

$ go get github.com/zmap/zgrab2

It is possible to import and run individual scan modules in your own project; for example:

package main

import (
	"github.com/zmap/zgrab2"
	"github.com/zmap/zgrab2/modules/http"
)

func main() {
	module := &http.Module{}
	scanner := module.NewScanner()
	// error
	_ = scanner.Init(module.NewFlags().(*http.Flags))
	status, results, err := scanner.Scan(zgrab2.ScanTarget{
		// IP, domain, tag, port
	})
	_, _, _ = status, results, err
}

from zgrab2.

thehappydinoa avatar thehappydinoa commented on August 28, 2024

I would also really enjoy that. I think this command should work, but I get this error.

$ go install github.com/zmap/zgrab2@latest
go: downloading github.com/zmap/zgrab2 v0.1.7
go: downloading github.com/zmap/zcrypto v0.0.0-20200508204656-27de22294d44
go: downloading github.com/sirupsen/logrus v1.4.2
go: downloading github.com/prometheus/client_golang v1.1.0
go: downloading github.com/zmap/zflags v1.4.0-beta.1
go: downloading golang.org/x/net v0.0.0-20190912160710-24e19bdeb0f2
go: downloading golang.org/x/sys v0.0.0-20190913121621-c3b328c6e5a7
go: downloading github.com/prometheus/common v0.6.0
go: downloading github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: downloading github.com/golang/protobuf v1.3.2
go: downloading github.com/prometheus/procfs v0.0.3
go: downloading github.com/zmap/rc2 v0.0.0-20131011165748-24b9757f5521
go: downloading golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7
go: downloading github.com/weppos/publicsuffix-go v0.4.0
go: downloading golang.org/x/text v0.3.2
package github.com/zmap/zgrab2 is not a main package

from zgrab2.

dadrian avatar dadrian commented on August 28, 2024

The bin subpackage is designed to do exactly this.

from zgrab2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.