You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in pwnlib/util/proc.py the Fucntion status. when the line is an empty line, the line.index(':') will raise an Exception.
with open('/proc/%d/status' % pid) as fd:
for line in fd:
i = line.index(':')
key = line[:i]
val = line[i + 2:-1] # initial :\t and trailing \n
out[key] = val
In my ubuntu 1604, the status file just has an empty line.
in pwnlib/util/proc.py the Fucntion status. when the line is an empty line, the line.index(':') will raise an Exception.
In my ubuntu 1604, the status file just has an empty line.
the version of my ubuntu
I don't know why there existed an empty line, but I think here should add two line code to check empty line.
And also in the proc.py, I found the function pidof(target), there are 9 space leave in the following code.
The text was updated successfully, but these errors were encountered: