mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-16 14:22:36 +08:00
修复findnet中文主机名乱码
This commit is contained in:
parent
2d10162749
commit
9f12983f34
@ -113,8 +113,8 @@ func read(text []byte, host string) error {
|
||||
if name != "" {
|
||||
result += "\n [->]" + name
|
||||
}
|
||||
|
||||
for i := 1; i < len(hostname); i++ {
|
||||
hostname = hostname[1:]
|
||||
for i := 0; i < len(hostname); i++ {
|
||||
hostname[i] = strings.Replace(hostname[i], "00", "", -1)
|
||||
host, err := hex.DecodeString(hostname[i])
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user