mirror of https://github.com/pwndbg/pwndbg.git
procinfo: fix embedded null byte in cmdline args
Fixes a bug with procinfo
```
pwndbg> procinfo
exe '/opt/teamviewer/tv_bin/teamviewerd'
Exception occurred: procinfo: embedded null character (<class 'ValueError'>)
For more info invoke `set exception-verbose on` and rerun the command
or debug it by yourself with `set exception-debugger on`
pwndbg> set exception-debugger on
Set whether to debug exceptions raised in Pwndbg commands to 'on'.
...
(Pdb) up
> /home/dc/pwndbg/pwndbg/commands/procinfo.py(227)procinfo()
-> print("%-10s %s" % ("cmdline", proc.cmdline))
(Pdb) print(proc.cmdline)
'/opt/teamviewer/tv_bin/teamviewerd\x00-d'
```
pull/1888/head
parent
d4346d78d8
commit
54f5e6281e
Loading…
Reference in new issue