From 10293890be6782f16374885f0d2c7f2d17ecc201 Mon Sep 17 00:00:00 2001 From: Rob Date: Tue, 1 Sep 2009 08:53:15 +0200 Subject: [PATCH] Adapted proc_PID.py to include command arguments --- proc_PID.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proc_PID.py b/proc_PID.py index d543b53..e601c2a 100644 --- a/proc_PID.py +++ b/proc_PID.py @@ -158,7 +158,6 @@ def maps (command): # Methods that return the SHA512 def fileSHA (command): process_readinfo (command); - print(mapsfile); filehash = hashlib.sha512(prefix); with open(mapsfile, 'rb') as file: for l in file: @@ -213,7 +212,7 @@ def mapsSHA (command): if __name__ == "__main__": for command in sys.argv[1:]: result = fileSHA(command); - print(command+(len("/proc//inode") - len(command))*' ', result); + print(mapsfile+(len("/proc//inode") - len(command))*' ', result); result = exeSHA(command); print("/proc//exe"+(len("/proc//inode") - len("/proc//exe"))*' ', result); if os.getuid() == 0: -- 2.11.4.GIT