Issue
I want to read core dump of a s
permission command and analyze it. So I need an approach to make crash these commands. For example, how can I make passwd
or su
crash and create a core dump? Using ^\
won't work for these commands.
Solution
Try sending the process a SIGSEGV signal as root:
~ # pidof passwd
12840
~ # kill -SIGSEGV 12840
~ #
Result:
~ # ls -l /sbin/passwd
-rwsr-sr-x 1 root root 908672 Nov 8 18:28 /sbin/passwd
~ # ulimit -c 100000
~ # /sbin/passwd
Changing password for root
New password: Segmentation fault (core dumped)
/ #
Answered By - SKi