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