218
◾
Ethical Hacking and Penetration Testing Guide
1. Configuring the SET to Ask for Public IP
The set_config file has an option called AUTO_DETECT. When the option is set to
“ON,” the SET
does not ask for the public IP; it will automatically use our private IP for the
reverse handler. As we want to use the SET to attack over the Internet, we would need to set
the AUTO_DETECT to “OFF” as we want the SET to ask for our public IP. The set_config
file is located in the
/pentest/exploits/set/config
directory. You
can use any text
editor to edit it.
2. Making Your IP Address Static
The second step would be to set your IP static. On Windows, you can do it by access-
ing the properties of your network adapter and then clicking on the appropriate “Internet
Protocol Version 4 (TCP/IPV4) Properties.” Here is an example:
Client Side Exploitation
◾
219
Since our attacker machine is a “BackTrack 5” machine, we
would be only interested in
making its IP static. We can do it by accessing the WICD manager. We can access it by
going to Application
→
Internet
→
WICD Network Manager.
Under WICD Network Manager, select the appropriate network interface and click on
its properties and fill in the appropriate details (see the following screenshot).
3. Opening
Ports on the Router
Next, you need to open up two ports on your router: first, the one which the SET external
webserver would be listening on (by default the SET webserver listens on port 80, but you
can change it in the set_config file if you would like to), second, the one on which you would
receive connections. The method for opening ports might differ based on what type of router
you have. You can also use netcat to open up ports.
Command
:
nc –lvp 80//For
SET webserver
nc –lvp 4444 | For Reverse Handler
Make sure that you have disabled your antivirus and firewall, when opening the ports.
220
◾
Ethical Hacking and Penetration Testing Guide
We can verify the open ports by using a free website called canyouseeme.org. We will check if
your ports are opened.
Note
: You really don’t need to open port 80, as the SET will automatically open it up for you.
Dostları ilə paylaş: