Sean Reifschneider <jafo@tummy.com> writes: > On Linux and a few other systems, setting the ps string requires re-writing > the block of memory starting at argv[0]. If the data in envp is > allocated next to argv, you can also make use of that (so that you can > write strings longer than "python testscript" in length). That's very hacky, IMO, and something I would not like to see generally available. If you need that feature, embed Python. Or, write an extension module allowing to rewrite argc/argv. ps manages to find out what the arguments are, so it should be possible to find (and overwrite) them even without getting them as arguments to main(). Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4