Skip to main content

What is my IP Address - using script to Display public IP address and Geo-location


 



Below given codes will display the Public IP address of the site visitor or who wants to know the public IP of them. 


Here I am using ipapi 's free API plan to grab the IP address and further information on Geolocation.







Once you input this code below output you able to see on the webpage.

We can add multiple elements by Filtering the original output of how I did in the above script. 






Modify the Attributes by following the below section of code.

// Setting text of element P with id ipp 
$("#ipp").html(data.ip);
$("#ipversion").html(data.version); 
$("#ccity").html(data.city); 
$("#cregion").html(data.region); 
$("#country").html(data.country_name); 
}) 
</script> 
<center>  
<h1><b><p id="ipp"></p></b></h1>  
<h4>IP Version:<p id="ipversion"></p></h4>
<h4>City:<p id="ccity"></p></h4>
<h4>Region:<p id="cregion"></p></h4>
<h4>Country:<p id="country"></p></h4>
</center>



Comments

Popular posts from this blog

KARMA - Search for leaked Emails and Passwords

Hi Everyone, In this article we going to introduce the tool is KARMA.Its used to collect pwned Email address and passwords from pwndb. The tool is written in python3. So, you must need Python3 inside your machine . INSTALL sudo apt install tor python3 python3-pip git clone https :// github . com / decoxviii / karma . git ; cd karma sudo -H pip3 install -r requirements.txt python3 bin/karma.py --help TEST All the tests were done in  Debian/Ubuntu . Search emails with the password:  123456789 python3 bin/karma.py search '123456789' --password -o test1 Search emails with the local-part:  johndoe python3 bin/karma.py search 'johndoe' --local-part -o test2 Search emails with the domain:  hotmail . com python3 bin/karma.py search ' hotmail . com ' --domain -o test3 Search email password:  johndoe@unknown.com python3 bin/karma.py target 'johndoe@unknown.com' -o test4 DEMO VIDEO