Skip to content

Commit

Permalink
Add option for ip to never output colors
Browse files Browse the repository at this point in the history
  • Loading branch information
calebstewart committed Jun 14, 2021
1 parent 0f28cc6 commit 2bd4e62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pwncat/modules/linux/enumerate/system/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class Module(EnumerateModule):
def enumerate(self, session):

try:
output = session.platform.run("ip addr", capture_output=True, text=True)
output = session.platform.run(
["ip", "-c=never", "addr"], capture_output=True, text=True
)
if output.stdout:
output = (
line
Expand Down

0 comments on commit 2bd4e62

Please sign in to comment.