mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 20:51:52 +08:00
修改文件保存路径设置
This commit is contained in:
@@ -271,23 +271,6 @@ func CheckErr(text string, err error, flag bool) {
|
||||
}
|
||||
}
|
||||
|
||||
func getpath() string {
|
||||
file, _ := exec.LookPath(os.Args[0])
|
||||
path1, _ := filepath.Abs(file)
|
||||
filename := filepath.Dir(path1)
|
||||
var path string
|
||||
if strings.Contains(filename, "/") {
|
||||
tmp := strings.Split(filename, `/`)
|
||||
path = strings.Join(tmp, `/`)
|
||||
path += `/`
|
||||
} else if strings.Contains(filename, `\`) {
|
||||
tmp := strings.Split(filename, `\`)
|
||||
path = strings.Join(tmp, `\`)
|
||||
path += `\`
|
||||
}
|
||||
return path
|
||||
}
|
||||
|
||||
func showmode() {
|
||||
fmt.Println("The specified scan type does not exist")
|
||||
fmt.Println("-m")
|
||||
|
||||
Reference in New Issue
Block a user