mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +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 != "" {
|
if name != "" {
|
||||||
result += "\n [->]" + name
|
result += "\n [->]" + name
|
||||||
}
|
}
|
||||||
|
hostname = hostname[1:]
|
||||||
for i := 1; i < len(hostname); i++ {
|
for i := 0; i < len(hostname); i++ {
|
||||||
hostname[i] = strings.Replace(hostname[i], "00", "", -1)
|
hostname[i] = strings.Replace(hostname[i], "00", "", -1)
|
||||||
host, err := hex.DecodeString(hostname[i])
|
host, err := hex.DecodeString(hostname[i])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user