✨ Added commands
Added init command and search command.
This commit is contained in:
parent
1c228cb744
commit
334eec2130
@ -59,7 +59,6 @@ func Pool(function string, flags *Flags, alert *alert.Alert, scan *scan.Scan) {
|
||||
// Submit job
|
||||
pool.Submit(func() {
|
||||
switch function {
|
||||
// Alert commands
|
||||
case "alert clear":
|
||||
go shodan.Alert.Clear()
|
||||
case "alert create":
|
||||
@ -71,7 +70,6 @@ func Pool(function string, flags *Flags, alert *alert.Alert, scan *scan.Scan) {
|
||||
case "alert list":
|
||||
go shodan.Alert.List()
|
||||
|
||||
// Scan commands
|
||||
case "scan internet":
|
||||
go shodan.Scan.Internet()
|
||||
case "scan protocols":
|
||||
@ -79,19 +77,18 @@ func Pool(function string, flags *Flags, alert *alert.Alert, scan *scan.Scan) {
|
||||
case "scan submit":
|
||||
go shodan.Scan.Submit()
|
||||
|
||||
// General commands
|
||||
case "count":
|
||||
go shodan.Count()
|
||||
// case "domain":
|
||||
// go shodan.Domain()
|
||||
case "host":
|
||||
go shodan.Host()
|
||||
case "info":
|
||||
go shodan.Info()
|
||||
case "init":
|
||||
go shodan.Init()
|
||||
case "myip":
|
||||
go shodan.MyIp()
|
||||
// case "search":
|
||||
// go shodan.Search()
|
||||
case "search":
|
||||
go shodan.Search()
|
||||
case "stats":
|
||||
go shodan.Stats()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user