Monday, July 2, 2012

Hacking using IP address (of the victim) / Remote Machine



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. http://www.securityfocus.com 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 http://www.bank.com 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 http://www.bank.com. 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**

A Review of the New Backtrack 5 Operating System


A Review of the New Backtrack 5 Operating System



There are certain tools when you are a security consultant that are just crucial to your job. No matter how good you are, these tools will make you a lot better.
In the past couple of years one of the security tools that has risen to this rank is called Backtrack. It is a Linux based operating system that comes pre installed with a numerous amount of security programs on it.
It doesn't matter if you are a beginner or an expert you will find several tools that are installed on it that will help you.
In the past few weeks the newest version of the Backtrack operating system, version 5, has been released. There are several new things that the people who have used this operating system will love about the new release. There are also things about this release that will excite people who are new to the operating system as well.
In the following article I will discuss the Backtrack operating system in more detail and I will show how you can use it on your own system to secure it.
More details about the Backtrack operating system
As I said earlier this is a Linux based operating system that comes equipped with tons of security software that you might need. But there is a little more to it than that.
First of all, the software is not only installed but also optimized for the system. You will not have to worry about configuring the software to work on your system correctly.
The Linux installation that it is based on is known as Ubuntu. Ubuntu is known as being a very user friendly operating system. The installation also has several different UI configurations that you can use to get started. There is the gnome desktop interface and KDE interface.
If you are a new user then you might want to go with the Gnome interface since some people seem to think that it is easier. More advanced users might want to try the KDE version of the operating system. It gives you more options to configure the system.
There are several different aspects of the Backtrack operating system that allow it to be the tool of choice for security professionals. One of these is the amount of different categories of security that the operating system maintains software for.
These categories include information gathering, network mapping, vulnerability identification, web application analysis, Digital forensics, reverse engineering, and basic penetration.
So as you can see, no matter which part of the computer security field that you work in the Backtrack operating system should have you covered.
What is added with the number 5 version of Backtrack
When you install backtrack version number 5 you will find several things that are different compared to previous versions. The first thing that is different is that both KDE and the Gnome interface have been updated to the latest version.
Also you will find that the latest version of the Backtrack operating system is able to be installed in both 32 bit and 64 bit flavors. More and more computers are now 64 bit and Backtrack has upgraded to reflect that reality.
Another aspect of the new version of the Backtrack operating system is the fact that all of the software that came with it before has now been updated. The whole purpose of this operating system is to allow you to use the software that you need without any configuration.
If you have to keep track of the updates of these pieces of software then that would defeat the whole purpose. Instead the Backtrack operating system will update them for you every time there is a new version that is available.
Of course, if you want the newest version of the software you can install it yourself but with this system it is not necessary.
But it is not only the software that you use directly that has been updated. It is the software that is behind the scenes that has been updated as well. The drivers that you will need to use the Linux based system have been updated to the newest versions, especially the wireless drivers.
In the past, the Backtrack operating system has had a problem with drivers for different wireless cards that were installed on the user's computer. While this problem hasn't gone away completely you will find that it is a much easier situation to deal with. There are more wireless drivers included in the installation than ever before.
In conclusion
You will find that if you are a computer security consultant that there is no better tool to use than Backtrack. It has all of your favorite tools in one place ready for you to use.
If you own a company that has to store important data then it is vital for you to have a tool like this. That way your security people can be sure that they are testing your network with the same tools that the bad guys are using.

Are You a Facebook addict too ??



Are You a Facebook addict too ??






First thing i am not a professional blogger ,I decided to write this because i have a friend working on
 Saudi , Sadly she is damn addict on Facebook right now , We used to talk lot time before she getting
 in to Facebook .Now we barely talking 10 min . She saying Excuses to check her fb .For Eg: i wanna
 bath ,I wanna eat , I wanna blah blah , Sadly i figured out shes not bathing or eating . Actually shes Active on her fb its so sad to say that if we post one comment on her pics we get her response in 2 sec. Its so disappointing that she have no time for us , we are good friends , best friends but now it come to the 
point of destroying each others understanding , Trust .



When you first heard about Facebook you probably wondered what the big deal was. Then after dealing with more peer pressure than you have probably encountered since you were a teenager, you finally decided to sign up. Now you find you can't go more than 2 hours without checking for updates. Are you a Facebook addict? Read the list below to find out.


You know you are addicted to Facebook if:
You check your Facebook page before having your first cup of coffee or even before going to the bathroom in the morning.
Stopping before you leave the house to inform everyone that you are about to leave the house.
You are spending more time changing your status update than actually doing anything worth commenting on.
You are changing your profile picture every time you change your clothes to keep it recent.
You start using Facebook as a verb. As in "I'm going to "Facebook" so and so or I was "Facebooking" last night.
If you interrupt an actual conversation that you are having with a person and tell them "you know what, why don't I just "Facebook" you later...
Every time you take a picture you wonder if it is going to be Facebook worthy.
You leave a party early because you can't wait to get all of the pictures you just took up on the computer and tagged.
You plan all of your social activities on Facebook instead of using the phone.
You get jealous of other peoples plans and feel left out even though you don't personally know them.
You are unsure whether you are actually "in" a relationship until the other person makes it Facebook official in the Relationship Status section.
You feel you might need therapy because someone you barely knew 20 years ago won't accept you as a friend.
You get mortally offended if no one responds to the clever quote it took you 20 minutes to come up with.
You wonder how you could have possibly wronged a person who is on a mutual friend's page but not on yours. Such as "What did I ever do to them that they don't want to be my friend too?"
You purposely try to recruit people you do not even know to up your "friends count".
You pretend that you are doing some really exciting things so others will find you interesting enough to want to be your friend too.
You engage in a "war of wills" not wanting to be the one to actually invite someone to be your friend and wondering how long it will take for them to ask you.
You invite someone you can't stand to be your friend because you simply must know what they are up to or because you simply cannot miss out on anything.
You actually click the Wall To Wall on other peoples' pages because you absolutely have to know the entire conversation they were having.
You want to throw something at the computer when you can't find the original question that was asked that elicited an interesting response from someone.
You are looking forward to your birthday for the first time in years because you want to see how many wall posts you will get that day. Which then leads to....
Getting angry at people who didn't wish you a Happy Birthday because "C'mon...it's on Facebook!...There is no excuse for forgetting!"
Instead of looking forward to your vacation, you are more worried about what you are going to miss on your computer while you are gone. Which then leads to....
Completely changing your cell phone plan and your cell phone because your current one doesn't have access to Facebook.
You have to pretend you don't know someone when meeting them for the first time, yet you know their deepest, darkest secrets thanks to a mutual friends' pages.
You only check your email to see if you have an update on Facebook.
You suddenly have 200 emails in your inbox and they are all Facebook updates. Which then leads to...
Spending two hours going through each email making sure you didn't miss anything when you checked your profile page. Which then leads to....
Feeling horrendously guilty that you didn't immediately respond to a comment someone left for you 2 days ago. How could you possibly have missed it?
You get insane if your friend number drops and you go crazy trying to figure out who deleted you.
If your Facebook wall looks like it is covered with graffiti because you have so many applications on it.
Your usual bedtime is now two hours later than it has been in years.
As soon as you meet someone the first thing you do is go home and "Facebook" them.
Not having access to someone else's profile can push you over the edge. Which then leads to:
Trying to come up with creative ways you can create a new Facebook account and become their friend so they will not know it is you trying to spy on them.
You start losing huge chunks of time and wonder where on Earth the day went.
You find yourself making up lies about what you "did all day" to compensate for all those lost hours.
Your house is getting messier as the weeks go by and you have no clean laundry.
You are one of the few people who uses the Facebook chat option.
You can't stop nagging other reasonable people to join Facebook. Like teenage peer pressure, it's o.k. for you to do it as long as others are doing it as well.
You call into work sick because you just came across all of your old photos and have a ton of scanning and tagging to do.
You visit sites and articles that list the reasons you are addicted to Facebook.