From d1fb094b5e3779e6e344615a26479e9955913357 Mon Sep 17 00:00:00 2001 From: artex Date: Wed, 13 Oct 2021 09:50:17 +0300 Subject: [PATCH] Change fields verification for stat output --- pwncat/platform/linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwncat/platform/linux.py b/pwncat/platform/linux.py index 17a6b77..c33e257 100644 --- a/pwncat/platform/linux.py +++ b/pwncat/platform/linux.py @@ -1740,7 +1740,7 @@ class Linux(Platform): # 14 total size in bytes for i in range(len(fields)): - if fields[i] == "?": + if not fields[i].isdigit(): fields[i] = "0" stat = os.stat_result(