Skip to content

Commit 7b13f6a

Browse files
committed
Successfully get size
1 parent cdcbbfa commit 7b13f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack_the_box/atom/send-payload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def main():
8080
print("Payload saved at: " + payload_path)
8181

8282
#get size of payload
83-
size = subprocess.call('stat -c%s "' + payload_path + '"')
83+
size = os.path.getsize(Path(payload_path))
8484
print("Size: " + str(size))
8585

8686
if __name__ == '__main__':

0 commit comments

Comments
 (0)