Skip to content

Commit

Permalink
Update hooker.py
Browse files Browse the repository at this point in the history
fix pid strip
  • Loading branch information
CreditTone authored Nov 9, 2021
1 parent dd3dfc5 commit 7fb7cbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooker.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def getPidMap():
pidMap = {}
lines = os.popen("frida-ps -U").readlines();
for line in lines:
result = re.search("(\d+)\s+([a-z\d\.]+)$", line.strip())
result = re.search("(\d+)\s+([a-z\d\.]+)($|:)", line.strip())
if not result:
continue
pidMap[result.group(1)] = result.group(2)
Expand Down Expand Up @@ -430,4 +430,4 @@ def printModuleName(target, moduleName):
elif not genarateEnv:
warn(opts)
sys.exit(2);


0 comments on commit 7fb7cbe

Please sign in to comment.