Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constgrep is slow #1491

Open
zachriggle opened this issue Apr 22, 2020 · 1 comment
Open

constgrep is slow #1491

zachriggle opened this issue Apr 22, 2020 · 1 comment
Labels
command-line This is related to phd/constgrep/checksec/pwn command in general enhancement

Comments

@zachriggle
Copy link
Member

The constgrep tool could probably be a bit faster. I'm not sure what's making it so slow at the moment. It shouldn't take ~2 seconds to look up a value.

$ time constgrep EPERM
#define EPERM 1
constgrep EPERM  1.12s user 0.43s system 88% cpu 1.751 total
@zachriggle zachriggle added bug easy This could be resolved in just a couple of minutes enhancement and removed bug labels Apr 22, 2020
@zachriggle
Copy link
Member Author

Honestly it might just be fastest to pass e.g. pwnlib/constants/linux/i386.py to grep directly and do some post-processing (or just invoke the lines).

@Arusekk Arusekk added the command-line This is related to phd/constgrep/checksec/pwn command in general label Apr 23, 2020
@Arusekk Arusekk removed the easy This could be resolved in just a couple of minutes label Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command-line This is related to phd/constgrep/checksec/pwn command in general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants