This Python script combines text content, retrieves the local IP address, and outputs the result to the console and clipboard. (For more info check the About section on this repo)
Must have python https://www.python.org/downloads/
Ensure you have the required package installed by running: pip install -r requirements.txt
on your termninal
Windows - Install my repo from the zip file
Mac - Install my repo using from the zip file
Linux and Mac by termninal
git clone https://github.com/Umar-Ahamed/ip-grabber.git
Run the script using the following command: python main.py
or run the file
1.) Installing Required Packages:
The script checks for the presence of the pyperclip
package and installs it if necessary.
2.) Getting Local IP Address:
The get_local_ip()
function retrieves the local IP address using a socket connection to the Google DNS server (8.8.8.8
).
3.) Text Content:
Two sets of text content are predefined (usernames_text
and greeting_names_text
). You can customize these variables with your own content.
4.) Combining Content and Local IP:
The script combines the usernames_text
, local IP address, and greeting_names_text
into a single string (combined_output
).
5.)
Printing and Copying to Clipboard:
The combined output is printed to the console, and it's also copied to the clipboard using the pyperclip
library.
Please do not use this for any suspicious use.
This project is licensed under the MIT License.
I'm a highschooler who is intrested in coding and cybersecurity
(Javascript, HTML, CSS, python) beginner
I know the basics of bash, linux commands.
For support, email umardev89@gmail.com