Bine ati venit pe HackTeam Forum !
Aici veti gasi o gama larga de metode de hack atat pe Windows cat si pe platforme Linux/Unix , programe in consecinta ,tutoriale . In acelasi timp aici veti gasi si asistenta help in materie corespunzatoare . Precizam ca tot ce se gaseste pe acest site este doar in scop de dezvoltare iar voi va asumati intreaga raspundere pt actiunile pe care le savarsiti . || SS-TEAM || Va Multumeste pt vizita !
Lista Forumurilor Pe Tematici
Bine ati venit pe HackTeam Forum ! | Reguli | Inregistrare | Login

POZE BINE ATI VENIT PE HACKTEAM FORUM !

Nu sunteti logat.
Nou pe simpatie:
ingera_31 din Constanta
Femeie
25 ani
Constanta
cauta Barbat
30 - 59 ani
Bine ati venit pe HackTeam Forum ! / Scaneaza pe windows dupa Root-uri ! / Tutorial pt stiutorii de engleza. Pt restul: Fuck off  
Autor
Mesaj Pagini: 1
Salieri
Mafioso

Din: Sufragerie
Inregistrat: acum 20 ani
Postari: 469

Going From IP Address To Successful Attack

-SirDonkeyPunch (Normal Alias)
- Jesus (on HackThisSite.Org)

Alright well ive been delving in security for what seems like a lifetime, when in reality its just been about 5 years. Im 19 years old and i go to a community college. I always spend my freetime in class just looking at new whitepapers and reading the classic 'Department of Defense: Rainbow Books' Well ive gained quite a bit of knowledge in the past few years and out of all the papers ive read, none of them went down to a basic level, to show how someone can by just starting off with an IP address, follow a decent amount of vague steps, finally end up rooting the box. Well a few of the things ill talk about here ive read from much much security documentation, and theres also a few things that i had figured out on my own. Ill try and include examples so it wont be hard to follow along. DISCLAIMER: This Document Is For Education Purposes Only. This Is To Show How Many Malicious Kode-Kiddies Break In And Pwn Someones Box. Do Not Try To Emulate What Is Shown In This Document. I Am Not Responsible With What The Reader Does With This Information. Anyhow here we go.

So say somehow somewhere we ended up choosing a target to start wreaking havoc upon. All we need is an IP Address. Theres plenty of papers out there that go into how to obtain an IP Address from the preferred mark of your choice. So I'm not going to go into that subject. Alright so say we got the targets IP Address finally. What do we do with this IP Address. Well first ping the IP Address to make sure that its alive. In otherwords online. Now at the bottom of this document ill include some links where you can obtain some key tools that may help on your journey through the electronic jungle. So we need to find places to get inside of the computer so we can start trying to find a way to "hack" the box. Port Scanners are used to identify the open ports on a machine thats running on a network, whether its a router, or a desktop computer, they will all have ports. Protocols use these ports to communicate with other services and resources on the network.

1) Blues Port Scanner - This program will scan the IP address that you chose and identify open ports that are on the target box.

Example 1:
Idlescan using Zombie <Domain Name> (192.150.13.111:80); Class: Incremental
Interesting ports on 208.225.90.120:
(The 65522 ports scanned but not shown below are in state: closed)
Port State Service
21/tcp open ftp
25/tcp open smtp
80/tcp open http
111/tcp open sunrpc
135/tcp open loc-srv
443/tcp open https 1027/tcp open IIS
1030/tcp open iad1
2306/tcp open unknown
5631/tcp open pcanywheredata
7937/tcp open unknown
7938/tcp open unknown
36890/tcp open unknown


In example 1 now we see that there are a variety of ports open on this box. Take note of all the ports that you see listed before you. Most of them will be paired up with the type of protocol that uses that port (IE. 80-HTTP 25-SMTP Etc Etc...) Simply take all that information and paste it into notepad or the editor of your choice. This is the beginning of your targets record. So now we know what ports are open. These are all theoretical points of entry where we could wiggle into the computer system. But we all know its not that easy. Alright so we dont even know what type of software or what operating system that this system is running.

2) NMAP - Port Scanner - Has unique OS fingerprinting methods so when the program sees a certain series of ports open it uses its best judgement to guess what operating system its running. Generally correct with my experiences.

So we have to figure out what type of software this box is running if we are gonna start hacking the thing right? Many of you have used TELNET for your MUDS and MOOS and weird multiplayer text dungeons and many of you havent even heard of it before period. TELNET is used to open a remote connection to an IP Address through a Port. So what that means is we are accessing their computer from across the internet, all we need is their IP Address and a port number. With that record you are starting to compile, open a TELNET connection to the IP Address and enter one of the OPEN ports that you found on the target.
So say we typed 'TELNET -o xxx.xxx.xxx.xxx 25' This command will open up a connection through port 25 to the IP xxx.xxx.xxx.xxx. Now you may see some text at the very top of the screen. You may think, well what the hell, how is that little string of text going to help me. Well get that list you are starting to write, and copy the banners into your compilation of the information youve gathered on your target. Banners/Headers are what you get when you TELNET to the open ports. Heres an example of a banner from port 25.


220 jesus.gha.chartermi.net ESMTP Sendmail 8.12.8/8.12.8; Fri, 7 Oct 2005 01:22:29 -0400


Now this is a very important part in the enumeration process. You notice it says 'Sendmail 8.12.8/8.12.8' Well what do ya know, we now have discovered a version number. This is where we can start identifying the programs running on the machine. There are some instances in which companies will try and falsify their headers/banners so hackers are unable to find out what programs are truly installed. Now just copy all the banners from all the open ports *Some Ports May Have No Bannners* and organize them in the little record we have of the target. Now we have all the open ports, and a list of the programs running and their version numbers. This is some of the most sensitive information you can come across in the networking world. Other points of interest may be the DNS server, that contains lots of information and if you are able to manipulate it than you can pretend to hotmail, and steal a bunch of peoples email. Well now back to the task at handu. Apart from actual company secrets and secret configurations of the network hardware, you got some good juicy info. is a very good resource for looking up software vulnerabilities. If you cant find any vulnerabilities there, search on google. There are many, many, many other sites that post vulnerabilities that their groups find and their affiliates.

At SecurityFocus you can search through vendor and whatnot to try and find your peice of software, or you can use the search box. When i searched SecurityFocus i found a paper on how Sendmail 8.12.8 had a buffer overflow. There was proof of concept code where they wrote the shellcode and everything, so if you ran the code with the right syntax, a command prompt would just spawn. You should notice a (#) on the line where your code is being typed. That pound symbol means that the command prompt window thats currently open was opened as root. The highest privilage on a UNIX/Linux Box. You have just successfully hacked a box. Now that you have a command shell in front of you, you can start doing whatever you want, delete everything if you want to be a fucking jerk, however I dont recommend that. Maybe leave a text file saying how you did it and that they should patch their system.....whoever they are. And many times the best thing you can do is just lay in the shadows, dont let anyone know what you did. More often than not this is the path you are going to want to take to avoid unwanted visits by the authorities.

There are many types of exploits out there, some are Denial of Service exploits, where you shut down a box, or render an application/process unusable. Called denial of service simply because you are denying a service on someones box to everyone trying to access it. Buffer Overflow exploits are involved when a variable inside some code doesnt have any input validation. Each letter you enter in for the string variable will be 1 byte long. Now where the variables are located at when they are in use by a program is called the buffer. Now what do you think overflowing the buffer means. We overflow the buffer so we can get to a totally different memory address. Then people write whats called shellcode in hex. This shellcode is what returns that command prompt when you run the exploit. That wasnt the best description of a buffer overflow, however all you need to remember is that garbage data fills up the data registers so then the buffer overflows and allows for remote execution of almost every command available. There are many, many other types of attacks that cannot all be described here, like man-in-the-middle attacks where you spoof who you are. Performed correctly, the victim will enter and his connection will be redirected to your site where you can make a username and password box, make the site look legit. And your poor mark will enter their credentials into your site, when they think its really. You need to have a small script set up so it will automatiically display like an error or something once they try and log in with their credentials. This makes it seem like the site is down and the victim doenst give it a second thought and will simply try again later.
_________________________________________________________o_________

So as a summary of how to 0Wn a box when you only have an IP Address
Method Works On BOTH *Nix and Windoze

****You can do the same with domain names (IE google.com) than what you can with IP Addresses. Run a WHOIS Lookup or something along those lines. Or check up on InterNIC you should be able to resolve the domain name to an IP address.****

- Port Scan The Address And Record Open Ports
- Telnet To Open Ports To Identify Software Running On Ports

3) netcat - Network swiss army knife. Like TELNET only better and with a lot more functionality. Both can be used when you are trying to fingerprint software on open ports

- Record Banners And Take Note Of The Application Running and The Version Number
- Take A Gander Online At SecurityFocus.com or Eeye.com. If you cant find any vulnerabilities then search google.
- Make a copy of some Proof-Of-Concept code for the vulnerability.

*Read the documentation if there is any, for the proof-of-concept code you will be using for your exploit*

- Run The Exploit Against The Victim.
- Reap The Cheap-Sh0t Ownage
_________________________________________________________________
**This document does not go into covering your tracks. If you dare try any of this stuff on a box you dont have consent to hack on, They will simply look at the logs and see your IP Address and then go straight to your ISP. Once you get more 1337 you get to learn how to get away with the nasty deeds. This is what the majority of kode-kiddies do when they perform attacks. The key is to enumerate all the info you can from the machine, the more info you have on the system the better. User accounts can also be enumerated. Once you have a list of account names, you may then proceed to brute-force or perform a cryptanalysis attack to gain control of the account. Then you must work on privilage escalation. Users are not Admins/Root**


Software.All.Free
__________________________________
*1
*2
*3



SirDonkeyPunch (at) Gmail (dot) com

THIS IS MY FIRST PAPER! PLEASE SEND ME FEEDBACK!
Tell Me What Was Done Well And How I May Be Able To
Make It Better. All Comments Welcome. Flames Please Refer To Hell.

_______________________________________________________________ 
This article can also be found at illgotten.net: From IP Address To Successful Hack 
Cast your vote on this article

12345678910   



Comments:
Published: 30 comments.

Navigation:  Go to...Page 1Page 2
   

By: mobytoss - 05:43 pm Saturday October 08th, 2005   

--------------------------------------------------------------------------------

    Wow, this is possibly one of the most useful beginner pieces
I've read on the subject. You suggest looking up
exploits instead of handfeeding 1 or 2 that will most
probably not work, which is what I like about this article




By: h8tcker - 02:09 am Sunday October 09th, 2005   

--------------------------------------------------------------------------------

    10/10 except i had a couple questions when i type TELNET -o
ip 25 it doesent work, i get this is not a command. My next
question was when i type TELNET ip 25 i get a blank telnet
screen withought wich doesent show the banner? well if their
are things you notice im doing wrong of i can correct what
i'm doing i would greatly appreciate it
sinclery,
h8tcker
ps are their other commands to go about it ?



By: ReZeftY - 08:54 am Sunday October 09th, 2005   

--------------------------------------------------------------------------------

    i also have a question, he just have the 25 and 110 port
open so what to do? [it shows nothing when i enter thouse],

and dont use "-o" when telnet to someone,
because "-o" isnt a variable in telnet



By: haxor_pyro - 02:26 pm Sunday October 09th, 2005   

--------------------------------------------------------------------------------

    great tutorial. mind if I stick it on my site? acutally, ill
stick it on, give you credit and if you dont want it on any
more than pm me



By: dot_matrix - 03:54 pm Sunday October 09th, 2005   

--------------------------------------------------------------------------------

    great job. very nice. maybe you could make a part 2 that
goes into detail about how to cover your tracks? that would
be nice.



By: Schwachkopf - 04:28 pm Sunday October 09th, 2005   

--------------------------------------------------------------------------------

    Great article for the beginner (which I am). I'm having
difficulty with the TELNET, though. I don't have the
proper software for netcat. Is there any other TELNET I can
use (or how can I fixed netcat problem?) any help

href="mailto: "> >



By: Mad_Guy - 07:33 pm Sunday October 09th, 2005   

--------------------------------------------------------------------------------

    I reject the use of a port scanner. Scanning is one of the
worst things you can do given a situation, and OS
fingerprinting is even worse. Depending on who you're
attacking port scanning and fingerprinting can help you and
go all the way to totally blowing your cover, it's a
double edged sword you need to mention in an article like
this.


Your article wasn't bad, but it needs some serious
tuning since basically all you said was 'telnet and use
a securityfocus exploit or find one yourself,' when you
don't even mention what the possible methods of attack
and covering your own tracks. You could have at least posted
links to other articles so people who found this article
interesting so they could further read and learn.


I may be being too harsh, but whatever. Gets a 6.



By: jesus - 09:24 pm Sunday October 09th, 2005   

--------------------------------------------------------------------------------

    alright Mad_Guy as pissed off as you are about me using a
port scanner, this is a n00by article, and i do mention that
if someone does try to attack a system using the methods
used herein that they will be fucked. no questions asked.
Not soley because of scanning and stuff, but because
everything i mentioned can be tracked to the attacker just
so long as the victim wants to take the time to track em
down.

Sorry about the discrepency in the TELNET command, i was
trying to do it from memory, but i do beleive the syntax in
linux is 'TELNET [host [port]]' and i thought in
windows you had to use the '-o' option to
"open a connection" to the host computer. Sorry
about that.

Also feel free to stick it on your site, just tell me what
site your sticking it on, so i may make a feeble effort to
contribute. I love the hacking community and how people try
to help eachother out. Im a big advocate for education,
even though i tend to smoke and drink illegal things.

and for ReZeftY even though those ports maybe open, a
smart administrator will try and completely hide or totally
create bogus headers/banners so attackers are unable to try
and fingerprint different applications that the target host
is running.

Let it be known that this is above all a beginners guide
of sorts, so its not like im going to try and go into detail
about everything possible. I dont want to confuse and
befuddle the nooby. I know what thats like and it just
feels like your being suffocated with information, and you
would rather go have a beer than try and figur



By: Ykstort - 09:33 pm Sunday October 09th, 2005   

--------------------------------------------------------------------------------

    Would I be correct to assume that simply using a proxy that
masks your IP wouldn't be enough to completely cover
your tracks?

Edit: Interesting article.



By: jesus - 10:04 pm Sunday October 09th, 2005   

--------------------------------------------------------------------------------

    normally proxies are used for port 80, which means all the
queries your making to a server via port 80 will show the
proxy's ip instead of yours, however if you try and
telnet to the host then your real IP will be revealed.
Theres some more effort you gotta take to be a shadow on the
internet.



By: Ykstort - 04:09 am Monday October 10th, 2005   

--------------------------------------------------------------------------------

    Ah, thought so.

Edit: Are ssh rsa fingerprints in any way useful with this
sort of thing?



By: h8tcker - 10:40 pm Monday October 10th, 2005   

--------------------------------------------------------------------------------

    err how come when i try to banner grab on 110 i connect but
get no banners?



By: jesus - 10:58 pm Monday October 10th, 2005   

--------------------------------------------------------------------------------

    banners may not appear because many system administrators
are privvy to the security risks of letting their machines
just spill out information about itself to anyone that asks.

which is wise to do if you dont wish for these methods to
be used against you. And if you run a personal webserver or
anything like that, you are even more vulnerable.



By: EvanWilson - 11:24 pm Monday October 10th, 2005   

--------------------------------------------------------------------------------

    9/10

It's a great article, and you wrote it in a way that
most can understand, but you should probably follow up on
covering your tracks, or at least point us in the right
direction.



By: ReZeftY - 12:07 pm Tuesday October 11th, 2005   

--------------------------------------------------------------------------------

    well, thanks for posting answer atleast



By: Freakwolfe - 09:41 pm Tuesday October 11th, 2005   

--------------------------------------------------------------------------------

    It's a fair introductory article, but the sentence
structure makes it hard to read in places. 8/10



By: Mad_Guy - 11:43 pm Tuesday October 11th, 2005   

--------------------------------------------------------------------------------

    I'm not at all mad at the article and the port scanner
stuff, I'm just pointing out something you didn't
mention that people should keep in mind.



Sorry if it sounded derogatory.



By: Slashx16 - 09:06 am Wednesday October 12th, 2005   

--------------------------------------------------------------------------------

    wow man that was a great article, even i understand it.
thanks for the info, i found it very helpful.



By: pcgfx805 - 10:49 am Wednesday October 12th, 2005   

--------------------------------------------------------------------------------

    I agree with Freakwolfe, it's a good intro but the
structure is slightly strange :S



By: roni9 - 02:13 pm Wednesday October 12th, 2005   

--------------------------------------------------------------------------------

    روح زب



By: savotu - 03:09 pm Wednesday October 12th, 2005   

--------------------------------------------------------------------------------

    I am a newbie and learning slowly so if you want to
disregard my comments then please do. I like this article
although we would all like a step by step from beginning to
end it’s not a good idea. If there is a step by step that
also includes covering in tracks and goes on chapter by
chapter explaining every thing then it will be picked up by
so called Script Kiddies and they would then cause more
problems than they already do. This article gives enough to
get started and some ideas so if someone is interested in
learning there going to look into it some more if not there
going to get in trouble as Jesus has stated.

All the people asking for telnet help is an example no
offence to you but please use Google or lean some dos.

There are ways of being safe using a port scanner I don’t
care if my IP is reported because it is not traceable back
to me (looking into cloning cable modems) I don’t even have
an account with my ISP in theory.




By: sunnythenutter - 05:47 pm Wednesday October 12th, 2005   

--------------------------------------------------------------------------------

    Nice tut. Yes all the methods are trackable (technically
anything is) remember the titanic was unsinkable right? I
didn't think so. The best you can do is cover your
tracks as best you can. Deleting logs is one thing but how
bout if their stored offsite. Use wingates, elite proxies,
hacked shell acounts, dif ISP's bounce your conection
like a ping pong ball and maybe, just maybe you can be
untraceable.

10 because its not having the best artcile that counts its
taking parts and sharing watver little knowledge you wish to
share.

Btw ill look forwards to a follow on if you have the time.
I'll leave the topic to you but a few ppl ahve hinted.

Peace.



By: Slashx16 - 06:58 pm Wednesday October 12th, 2005   

--------------------------------------------------------------------------------

    ok ive got an ip, but the port scanner wont let me search
for the ip alone, what is a domain/name and how do i find
out what o type in



By: Slashx16 - 08:12 pm Wednesday October 12th, 2005   

--------------------------------------------------------------------------------

    i think i need a hand downloading the nmap, can any one lend
a hand??



By: jesus - 10:33 pm Wednesday October 12th, 2005   

--------------------------------------------------------------------------------

    i think you got an ip scanner, which scans ranges of ip
addresses for hosts that are alive. Port scanners can surf
individual ip adresses or ip ranges, and displays the
results to your screen




By: catinthebox - 11:09 pm Wednesday October 12th, 2005   

--------------------------------------------------------------------------------

    my friend volenteered as a test subject
i scanned him and did the
"telnet ip port" , thing, evryone one of the
ones say it cannot connect to the port blah blah blah,
disconnected
when i scan myself, i get a different port, i connect and
no banner comes up, what can i do from there



By: ginkner - 06:44 am Thursday October 13th, 2005   

--------------------------------------------------------------------------------

    Ooooo.....Interesting.
Not what i was looking for...but cool!
Followup would be a good idea



By: Blacker_Black - 10:58 am Thursday October 13th, 2005   

--------------------------------------------------------------------------------

    great article. I tried from school to telnet to the school
printer on port 21 but i wouldn't let me type once i
got to the options menu. Anyway i pinged it do you think a
port scan might help?



By: SuMgUy - 05:34 pm Thursday October 13th, 2005   

--------------------------------------------------------------------------------

    pretty good pretty good but covering tracks are definitley
important



By: javicuse - 07:13 pm Thursday October 13th, 2005   

--------------------------------------------------------------------------------

    i am a beginer and have one problem at the start
i can access the site, but i can't ping it
whats the problem?
it's just one of the sites that i've tried to
ping ) nothing more, to see if there can
be some problems there.
do you have a solution?




Cred ca va dati seama ca nu e luat de pe un forum. Asa ca sa nu va mai prind cu drepturile de autor )

Bucuratzi`va cat mai sunt beat )


_______________________________________
void()

pus acum 19 ani
   
suri
Membru

Inregistrat: acum 20 ani
Postari: 772

Salieri a scris:

nu e luat de pe un forum.

Ba da:
 


pus acum 19 ani
   
OSHO
Membru

Inregistrat: acum 19 ani
Postari: 453

suri a scris:

http://www.hackthissite.org/articles/read/384 

Ba nu. Ala-i blog


_______________________________________
Sunt Lamer, ignore me.

pus acum 19 ani
   
suri
Membru

Inregistrat: acum 20 ani
Postari: 772


pus acum 19 ani
   
Salieri
Mafioso

Din: Sufragerie
Inregistrat: acum 20 ani
Postari: 469

OSHO a scris:


suri a scris:

http://www.hackthissite.org/articles/read/384 

Ba nu. Ala-i blog





_______________________________________
void()

pus acum 19 ani
   
Salieri
Mafioso

Din: Sufragerie
Inregistrat: acum 20 ani
Postari: 469

suri a scris:


Salieri a scris:

nu e luat de pe un forum.

Ba da:
 


Ma scuzi, suri. Nush cum de ajuns negatzia acolo. Cred k eram atat de ametzit, incat ma gandeam la cu totul altceva.


_______________________________________
void()

pus acum 19 ani
   
Pagini: 1  

Mergi la