mirror of https://github.com/qwqdanchun/fscan.git
update
This commit is contained in:
parent
1d2fa6c470
commit
f8b44e37ea
|
@ -137,7 +137,6 @@ func ParseInput(Info *HostInfo) {
|
||||||
if BruteThread <= 0 {
|
if BruteThread <= 0 {
|
||||||
BruteThread = 1
|
BruteThread = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if TmpOutputfile != "" {
|
if TmpOutputfile != "" {
|
||||||
if !strings.Contains(TmpOutputfile, "/") && !strings.Contains(TmpOutputfile, `\`) {
|
if !strings.Contains(TmpOutputfile, "/") && !strings.Contains(TmpOutputfile, `\`) {
|
||||||
Outputfile = getpath() + TmpOutputfile
|
Outputfile = getpath() + TmpOutputfile
|
||||||
|
@ -145,7 +144,6 @@ func ParseInput(Info *HostInfo) {
|
||||||
Outputfile = TmpOutputfile
|
Outputfile = TmpOutputfile
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if TmpSave == true {
|
if TmpSave == true {
|
||||||
IsSave = false
|
IsSave = false
|
||||||
}
|
}
|
||||||
|
@ -280,12 +278,12 @@ func getpath() string {
|
||||||
var path string
|
var path string
|
||||||
if strings.Contains(filename, "/") {
|
if strings.Contains(filename, "/") {
|
||||||
tmp := strings.Split(filename, `/`)
|
tmp := strings.Split(filename, `/`)
|
||||||
tmp[len(tmp)-1] = ``
|
|
||||||
path = strings.Join(tmp, `/`)
|
path = strings.Join(tmp, `/`)
|
||||||
|
path += `/`
|
||||||
} else if strings.Contains(filename, `\`) {
|
} else if strings.Contains(filename, `\`) {
|
||||||
tmp := strings.Split(filename, `\`)
|
tmp := strings.Split(filename, `\`)
|
||||||
tmp[len(tmp)-1] = ``
|
|
||||||
path = strings.Join(tmp, `\`)
|
path = strings.Join(tmp, `\`)
|
||||||
|
path += `\`
|
||||||
}
|
}
|
||||||
return path
|
return path
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue