Tampilkan postingan dengan label Social Engineering. Tampilkan semua postingan

Selasa, 24 September 2013

DNS HiJacking ( Introduction )

  Tidak ada komentar
17.45

Hello GreenHackerz Readers...

DNS hijacking (sometimes referred to as DNS redirection) is a type of malicious attack that overrides a computer’s TCP/IP settings to point it at a rogue DNS server, thereby invalidating the default DNS settings. In other words, when an attacker takes control of a computer to alter its DNS settings, so that it now points to a rogue DNS server, the process is referred to as DNS hijacking.

As we all know, the “Domain Name System (DNS)” is mainly responsible for translating a user friendly domain name such as “google.com” to its corresponding IP address “74.125.235.46″. Having a clear idea of DNS and its working can help you better understand what DNS hijacking is all about.


How DNS Hijacking Works?

As mentioned before, DNS is the one that is responsible for mapping the user friendly domain names to their corresponding IP addresses. This DNS server is owned and maintained by your Internet service provider (ISP) and many other private business organizations. By default, your computer is configured to use the DNS server from the ISP. In some cases, your computer may even be using the DNS services of other reputed organizations such as Google. In this case, you are said to be safe and everything seems to work normally.




But, imagine a situation where a hacker or a malware program gains unauthorized access to your computer and changes the DNS settings, so that your computer now uses one of the rogue DNS servers that is owned and maintained by the hacker. When this happens, the rogue DNS server may translate domain names of desirable websites (such as banks, search engines, social networking sites etc.) to IP addresses of malicious websites. As a result, when you type the URL of a website in the address bar, you may be taken to a fake website instead of the one you are intending for. Sometimes, this can put you in deep trouble!


What are the Dangers of DNS Hijacking?

The dangers of DNS hijacking can vary and depend on the intention behind the attack. Many ISPs such as “OpenDNS” and “Comcast” use DNS hijacking for introducing advertisements or collecting statistics. Even though this can cause no serious damage to the users, it is considered as a violation of RFC standards for DNS responses.

Other dangers of DNS hijacking include the following attacks:

Pharming: This is a kind of attack where a website’s traffic is redirected to another website that is a fake one. For example, when a user tries to visit a social networking website such as Facebook.com he may be redirected to another website that is filled with pop-ups and advertisements. This is often done by hackers in order to generate advertising revenue.
Phishing: This is a kind of attack where users are redirected to a malicious website whose design (look and feel) matches exactly with that of the original one. For example, when a user tries to log in to his bank account, he may be redirected to a malicious website that steals his login details.


How to Prevent DNS Hijacking?

In most cases, attackers make use of malware programs such as a trojan horse to carry out DNS hijacking. These DNS hijacking trojans are often distributed as video and audio codecs, video downloaders, YoTube downloaders or as other free utilities. So, in order to stay protected, it is recommended to stay away from untrusted websites that offer free downloads. The DNSChanger trojan is an example of one such malware that hijacked the DNS settings of over 4 million computers to drive a profit of about 14 million USD through fraudulent advertising revenue.
Also, it is necessary to change the default password of your router, so that it would not be possible for the attacker to modify your router settings using the default password that came with the factory setting. For more details on this topic you can read my other post on How to Hack Ethernet ADSL Router.
Installing a good antivirus program and keeping it up-to-date can offer a great deal of protection to your computer against any such attacks.


What if you are already a victim of DNS hijacking?

If you suspect that your computer is infected with a malware program such as DNSChanger, you need not panic. It is fairly simple and easy to recover from the damage caused by such programs. All you have to do is, just verify your current DNS settings to make sure that you are not using any of those DNS IPs that are blacklisted. Otherwise re-configure your DNS settings as per the guidelines of your ISP.

Read More

Kamis, 03 Mei 2012

Buffer Overflow Exploitation [Theory]

  Tidak ada komentar
02.50


Hello GreenHackerz Readers.............

This is a series I am starting and it might not be 100% correct, if mistakes are spotted please comment and I will correct them. I figure the best place to start with this series is to explain what a buffer overflow is and how it can lead to someone compromising your system. This is just theory, as it is all of just the section of the series, there is a second half to this called [Practical]. We will go on them in next article.


So lets start.

0 X 01 - What is a buffer?
Well a buffer is a section of memory that can be allocated either through programming or automatically. If poor programming practices have been used there then it may be a way for us to go beyond that set of buffer and can access other memory. Once we access the other memory, we can write our data to it in many ways, but this will be discussed later on "How to write?". Basically when we overflow the buffer we have the ability to insert our own commands and using a thing called "Shell Code", we can establish a connection between us and the client.

0X02 - Where do buffer overflows exist?
This depends on whether our attack is remote or local. Generally a buffer is set wherever user input is taken, this is where most exploits lay. So lets take a remote attack as an example, to be remote simply means that this is an application that uses the Internet in someway allowing us to connect to it and attack remotely. An example of this is Kolibri Web Server, this web server sets a buffer for the HEAD section of the HTTP Request, so we have to craft our exploit into a HTTP Header and send it over port 80. This attack will overflow the buffer and create a connection (using shell) to that machine. This specific attack uses SEH Exploitation which we will cover soon.

If it is local attack then the user generally has to open a file that will have the payload inside it. For instance the software AutoPlay allows users to easily create the ‘autoplay.ini’ file that is present on a lot of CD and USB devices. The vulnerability exists in opening an ‘autoplay.ini’ file that has added information (Shell Code) allowing the user to spawn a shell. Why would this be used (I am thinking this myself) I can only imagine that this kind of attack could be used on a system that is on lock down. If you have gained access to a workstation on your clients network and their OS is locked down so no shell allowed, if the user has access to this program we could still spawn a shell on that computer through this method. Another reason could be to gain access remotely by using this technique in combination with social engineering and of course local exploits are great for privilage escalation. Take the recent Adobe Reader exploits, a user could craft a special PDF file and trick someone into downloading it, when they open it they see their normal PDF content but unbeknownst to them a shell has been spawned on their machine.

You are likely to see the term ‘PoC’ quite a bit when we start researching other peoples exploits, this means Proof Of Concept. Basically the user will craft the exploit that works but instead of including Shell Code to spawn a shell, they will simply perform a execution task such as start ‘calc.exe’ (Windows Calculator). This is generally used to deter script kiddies from just launching the exploit without understanding it. A lot of the time people who code Buffer Overflows will also put the wrong offset in so the attack will not work without some modification by the user, testing the knowledge and again deterring script kiddies. Sometimes a Proof  of Concept can also simply be a file that successfully crashes the application, the rest of the work is normally left up to someone else to create.

A buffer overflow exploit can be coded in pretty much in any language but it mainly done in Python. And I find this easier than any other language (it is the modification of C language), I do not have really much programming experience but I do not feel it drastically important, you should still be able to follow along. It is essential to understand the basic concepts of programming though i.e. Variables, take user input, sockets, libraries… This will all be explained in dumbed down terms in the Python section of the series.

Good websites to look at Buffer Overflow code.

http://www.exploit-db.com – Awesome resource, I believe owned by the extremely skilled hacker Muts.

http://nvd.nist.gov/ – Another great resource, one of the best ways to learn is to look at other code.

http://osvdb.org/

So, I hope you now know what Buffer Overflows is and what are the result of the attack. We will learn a lot more when we progress into the actual attacks, but it is essential to have a firm understanding in basic concepts.

espérons qu'il vous plaira.
Enjoy the article.

Read More

Selasa, 15 November 2011

How To Find IP Address of Remote Machine

  Tidak ada komentar
12.54


Hello GreenHackerz Readers...............
This is the article about getting the IP address of the remote computer i.e in terms of hacking getting the IP address of the victim computer.


Before proceeding lets know something about IP address.

0x01-What is IP address?
IP address means Internet Protocol address - An Internet Protocol address (IP address) is a numerical label assigned to each device (e.g., computer, printer etc.) participating in a computer network that uses the Internet Protocol for communication. 
IP address serves for two basic purposes:
1. Host or network interface identification
2. Location Addressing

Now lets move to our moto..........

0x02-How to get IP address of remote computer or victim computer?
There are four techniques to get the IP address of remote computer or victim computer. These are as follows:
  1. Using PHP notification script.
  2. Sniffing during chat sessions.
  3. Using Blogs and Websites.
  4. Using read notify service.
Now lets go in detail one by one ....................

1.  Using PHP notification script.
Using this Notification script you can get the IP address in just seconds.
Steps of using this PHP script: 
   a) First download the PHP Notification Script and extract it.
       You can download this script by click the below download link.
       Download: Click Here
   b) Now you will get two files IP.html and index.php.
   You need to upload these two files to any free web hosting servers.
   Here is the list of some free web
       hosting servers.
       www.my3gb.com
       x10hosting.com
       www.freehostia.com
       www.ripway.com   etc.....
       you can find more on web.
   c) To upload these files you have to first sign up in the website. After uploading the file you will get a link
       of your uploading files.
       Suppose you open a new account in www.my3gb.com with the subdomain as xyz, then your IP link
       would be   http://www.xyz.my3gb.com/index.php
   d) Now you will need to send the link of index.php to the victim whose IP address you want to get.
   e) Now when the victim opens the above link nothing will open but his Ip address is written into the   
       ip.html file. So open the ip.html file to get his IP address.
   f) That’s all about this method… hope you understood it.

2. Sniffing during chat sessions.
With the help of Sniffers like wireshark etc. you can sniff the Gmail, and yahoo or any other chat sessions while we are chatting to any of your friend and extract the IP address from there. You can read about the tool wireshark  by clicking on the below link.
http://www.greenhackerz.com/2011/09/wireshark.html

3. Using Blogs and Websites.
This method is for those who have their blogs or websites. Normal users can also do this as blog is free to make. Make a new blog and use any stats service like histats or any other stats widget. Just add a new widget and put histats code there and save template. And send the link of your blog to your friend and get his IP.

4. Using read notify service.
Using read notify service is an email based service.
Steps to use Read Notify service is as follows:
   a) First open the Read Notify website : RCPT
   b) Now register on this website and then it will send you confirmation mail. Verify your account.
   c) Once your account is activated. Do the following steps to use this service:
  1. Compose your email just like you usually would in your own email or web email program.
  2. Type: .readnotify.com on the end of your recipients email address (don’t worry, that gets removed before your recipients receive the email). Like this: hackersfind@gmail.com.readnotify.com .
  3. Send your email.
Some things to remember:
  • don’t send to and from the same computer.
  • if your email program ‘auto-completes’ email addresses from your address book, you’ll need to keep typing over the top of the auto-completed one to add the .readnotify.com .
  • if you are cc-ing your email to other readers, you must add tracking to all of them.   
I hope this article is beneficial for you. Enjoy the tips and tricks. 

Read More