Comments (3)
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.
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.
The bin
subpackage is designed to do exactly this.
from zgrab2.
Related Issues (20)
- hosts http-req HOT 1
- Zgrab2 output not come
- test errors lib/output/test/process_test.go
- test failures lib/ssh
- test failures modules/redis
- modules/fox - go vet warning causing test failures
- HTTP body content is truncated in some cases despite setting max-size to a high value HOT 5
- Support opt-out (or make zgrab opt-in) HOT 2
- Question Regarding Modification of ZGrab 2.0 Output Content HOT 3
- Outdated Installation Guide HOT 1
- Is this repo unmaintained? HOT 2
- url error HOT 1
- Support user-specified DNS server for dialer
- Zgrab2 cannot automatically load the root certificate of the operating system HOT 1
- Remove EoL dependency on Python2
- Please bump the Golang version to a modern one HOT 6
- ZGrab is adding a trailing slash `/` to URL's with http scans HOT 2
- ZGrab performance issue with http? HOT 8
- How to setup no retries for tls module? (i/o timeout) HOT 2
- 'panic' error HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zgrab2.