mirror of https://github.com/qwqdanchun/fscan.git
修改文件保存路径设置
This commit is contained in:
parent
27c7e3977e
commit
6c6f522bc9
|
@ -7,8 +7,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
|
||||||
"path/filepath"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
@ -137,13 +135,7 @@ func ParseInput(Info *HostInfo) {
|
||||||
if BruteThread <= 0 {
|
if BruteThread <= 0 {
|
||||||
BruteThread = 1
|
BruteThread = 1
|
||||||
}
|
}
|
||||||
if TmpOutputfile != "" {
|
|
||||||
if !strings.Contains(TmpOutputfile, "/") && !strings.Contains(TmpOutputfile, `\`) {
|
|
||||||
Outputfile = getpath() + TmpOutputfile
|
|
||||||
} else {
|
|
||||||
Outputfile = TmpOutputfile
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if TmpSave == true {
|
if TmpSave == true {
|
||||||
IsSave = false
|
IsSave = false
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,47 +60,46 @@ type PocInfo struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
Path string
|
Path string
|
||||||
Scantype string
|
Scantype string
|
||||||
Command string
|
Command string
|
||||||
SshKey string
|
SshKey string
|
||||||
Domain string
|
Domain string
|
||||||
Username string
|
Username string
|
||||||
Password string
|
Password string
|
||||||
Proxy string
|
Proxy string
|
||||||
Timeout int64 = 3
|
Timeout int64 = 3
|
||||||
WebTimeout int64 = 5
|
WebTimeout int64 = 5
|
||||||
TmpOutputfile string
|
TmpSave bool
|
||||||
TmpSave bool
|
NoPing bool
|
||||||
NoPing bool
|
Ping bool
|
||||||
Ping bool
|
Pocinfo PocInfo
|
||||||
Pocinfo PocInfo
|
IsWebCan bool
|
||||||
IsWebCan bool
|
IsBrute bool
|
||||||
IsBrute bool
|
RedisFile string
|
||||||
RedisFile string
|
RedisShell string
|
||||||
RedisShell string
|
Userfile string
|
||||||
Userfile string
|
Passfile string
|
||||||
Passfile string
|
HostFile string
|
||||||
HostFile string
|
PortFile string
|
||||||
PortFile string
|
PocPath string
|
||||||
PocPath string
|
Threads int
|
||||||
Threads int
|
URL string
|
||||||
URL string
|
UrlFile string
|
||||||
UrlFile string
|
Urls []string
|
||||||
Urls []string
|
NoPorts string
|
||||||
NoPorts string
|
NoHosts string
|
||||||
NoHosts string
|
SC string
|
||||||
SC string
|
PortAdd string
|
||||||
PortAdd string
|
UserAdd string
|
||||||
UserAdd string
|
PassAdd string
|
||||||
PassAdd string
|
BruteThread int
|
||||||
BruteThread int
|
LiveTop int
|
||||||
LiveTop int
|
Socks5Proxy string
|
||||||
Socks5Proxy string
|
Hash string
|
||||||
Hash string
|
HashBytes []byte
|
||||||
HashBytes []byte
|
HostPort []string
|
||||||
HostPort []string
|
IsWmi bool
|
||||||
IsWmi bool
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in New Issue