mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-14 13:22:35 +08:00
优化一下-m显示
This commit is contained in:
parent
6ed5967705
commit
41ec4489da
@ -10,10 +10,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func Parse(Info *HostInfo) {
|
func Parse(Info *HostInfo) {
|
||||||
|
ParseScantype(Info)
|
||||||
ParseUser(Info)
|
ParseUser(Info)
|
||||||
ParsePass(Info)
|
ParsePass(Info)
|
||||||
ParseInput(Info)
|
ParseInput(Info)
|
||||||
ParseScantype(Info)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func ParseUser(Info *HostInfo) {
|
func ParseUser(Info *HostInfo) {
|
||||||
@ -122,12 +122,7 @@ func ParseInput(Info *HostInfo) {
|
|||||||
func ParseScantype(Info *HostInfo) {
|
func ParseScantype(Info *HostInfo) {
|
||||||
_, ok := PORTList[Info.Scantype]
|
_, ok := PORTList[Info.Scantype]
|
||||||
if !ok {
|
if !ok {
|
||||||
fmt.Println("The specified scan type does not exist")
|
showmode()
|
||||||
fmt.Println("-m")
|
|
||||||
for name := range PORTList {
|
|
||||||
fmt.Println(" [" + name + "]")
|
|
||||||
}
|
|
||||||
os.Exit(0)
|
|
||||||
}
|
}
|
||||||
if Info.Scantype != "all" {
|
if Info.Scantype != "all" {
|
||||||
if Info.Ports == DefaultPorts {
|
if Info.Ports == DefaultPorts {
|
||||||
@ -169,3 +164,12 @@ func getpath() string {
|
|||||||
}
|
}
|
||||||
return path
|
return path
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func showmode() {
|
||||||
|
fmt.Println("The specified scan type does not exist")
|
||||||
|
fmt.Println("-m")
|
||||||
|
for name := range PORTList {
|
||||||
|
fmt.Println(" [" + name + "]")
|
||||||
|
}
|
||||||
|
os.Exit(0)
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user