mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00
去除冗余部分
This commit is contained in:
parent
e433c635dd
commit
be555a1ee6
@ -13,9 +13,9 @@ import (
|
|||||||
|
|
||||||
func Parse(Info *HostInfo) {
|
func Parse(Info *HostInfo) {
|
||||||
ParseUser()
|
ParseUser()
|
||||||
ParsePass(Info)
|
ParsePass()
|
||||||
ParseInput(Info)
|
ParseInput(Info)
|
||||||
ParseScantype(Info)
|
ParseScantype()
|
||||||
}
|
}
|
||||||
|
|
||||||
func ParseUser() {
|
func ParseUser() {
|
||||||
@ -44,7 +44,7 @@ func ParseUser() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func ParsePass(Info *HostInfo) {
|
func ParsePass() {
|
||||||
var PwdList []string
|
var PwdList []string
|
||||||
if Password != "" {
|
if Password != "" {
|
||||||
passs := strings.Split(Password, ",")
|
passs := strings.Split(Password, ",")
|
||||||
@ -214,7 +214,7 @@ func ParseInput(Info *HostInfo) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func ParseScantype(Info *HostInfo) {
|
func ParseScantype() {
|
||||||
_, ok := PORTList[Scantype]
|
_, ok := PORTList[Scantype]
|
||||||
if !ok {
|
if !ok {
|
||||||
showmode()
|
showmode()
|
||||||
|
Loading…
Reference in New Issue
Block a user