You've probably noticed that all of our attacks that we've performed in this course where on our local
up so many we were using two computers.
This is the Carly server here and the a machine which lie on the same subnet or network.
Now if you want to take things to the next level you want to perform these types of attack over the
Internet.
You need to do one more configuration to that we will be using our public IP here to compile the malware
that we are creating in our Carly taking for example malware compiled on metals ploy.
We are using our local IP and local port.
Now we will only change the local IP from a private IP to a public IP.
All of the other things stay still.
We will not do any kind of configuration except changing this private IP to this public IP.
Now on our daughter once the victim presses on the malware our public IP will be resolved so that traffic
will come here.
Now we will have the port behind the traffic so we have different computers and devices behind this
public IP here.
Where will the traffic go for this purpose.
We need to configure port forwarding on our outer to tell the for example that on Port 444 4 which is
the port we compiled our malware with.
If traffic comes here with port 444 just redirected to this computer here which is our county server
or the command and control server.
It's a very easy thing to do and it's pretty straightforward.
First open your browser and type what is my IP you will see here your public IP.
So just take that.
Compile your malware with and every other single configuration stays the same.
Now go to your router here log and go to advanced.
Go to the port forwarding settings under firewall.
Now you need to enable the port forwarding option.
Just press on that and you need to put the IP of the Cali server here.
So let's go here to Cali and check the private IP of that
it is 1 2 1 0 8.
So output here 1 and 2 2 1 6 8 0 1 or 1 0 8.
And now I'll specify the port that I've compiled my malware with.
So the traffic that comes to my router using this port redirected to this IP and the traffic shall be
on the TCB protocol.
Just press on apply changes you will see that a new record will be created here which explains what
you've just said.
Now going back to this drawing again all the traffic that will come here will hit our colleagues server
using the port forwarding configuration on our router.
So actually now your Cally machine is accessible from the Internet.