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

Using non existent user segfaults prads when dropping privileges.. #1

Closed
gamelinux opened this issue Dec 6, 2010 · 1 comment
Closed
Labels

Comments

@gamelinux
Copy link
Owner

$ sudo ./prads -u jallal
...
...
[*] Dropping privs...
Segmentation fault

gdb shows me:
Program received signal SIGSEGV, Segmentation fault.
0x000000000040eb0f in drop_privs () at sys_func.c:245
245 userid = pw->pw_uid;
(gdb) bt full
#0 0x000000000040eb0f in drop_privs () at sys_func.c:245

    gr = 0x7ffff7661fbd
    pw = 0x0
    endptr = 0x0
    i = 0
    do_setuid = 1
    do_setgid = 1
    groupid = 0
    userid = 0
    __PRETTY_FUNCTION__ = "drop_privs"

#1 0x0000000000416af8 in main (argc=3, argv=0x7fffffffe758) at prads.c:1211

    ch = -1
    pconfile = 0x6b00e0
    __PRETTY_FUNCTION__ = "main"
@gamelinux
Copy link
Owner Author

commit 1605335
Author: gamelinux edwardfjellskaal@gmail.com
Date: Mon Dec 6 21:11:54 2010 +0000

closes issue 1 (github) segfault with b0gus user

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant