Skip to content

Commit 039fd16

Browse files
committed
pingsweep: treat nmap output as utf-8
1 parent f6e7466 commit 039fd16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reconnoitre/ping_sweeper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def ping_sweeper(target_hosts, output_directory, quiet):
1616

1717
SWEEP = "nmap -n -sP %s" % (target_hosts)
1818
results = subprocess.check_output(SWEEP, shell=True)
19-
lines = results.split("\n")
19+
lines = str(results, "utf-8").split("\n")
2020

2121
for line in lines:
2222
line = line.strip()

0 commit comments

Comments
 (0)