Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

How to get Local IP and MAC address ?

Hi ✌
I want to share with you what i have tested on my PC with Windows 7 32 bits (French Machine) and of course i wonder if this same script will work or not on other machines (English, German and so on .....)
Here is the script :
Get_IP_MAC.bat
Spoiler (Click to View)
So, i'm waiting for your testing and your feed back 👍
Thank you ✌
It works but you have a typo in the ping command. Should be ping -4
There's no place like ~/
Too few people (myself included) take advantage of the usefulness of FOR statements. Error catching would be a solid idea.
(Mar 8, 2017 04:56 PM)b00st3d Wrote:  It works but you have a typo in the ping command. Should be ping -4
Thank you for the remark !
Yes i edit my post and i correct it ✌
Sorry do you mean public IP address or ipv4? Can't you just use ipconfig and findstr?
(Mar 20, 2017 07:09 PM)Advertisement Wrote:  Sorry do you mean public IP address or ipv4? Can't you just use ipconfig and findstr?

Yes ipconfig is the proper way of doing this. I didn't look at the values before, but you're showing me the wrong IP address and MAC. ipconfig /all will take a little work to pull the correct IP. In my case, I have a virtualBox Host-Only adapter and a Local Area Connection both with different IP addresses. I also have 5 additional interfaces with ipv6 for VPN.
There's no place like ~/


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by samir50Sep 24, 2018 12:33 PM 3 262 Sep 24, 2018 12:33 PM
Last Post: ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™
[Python] by anoniminTRApr 29, 2018 05:01 AM 4 127 Apr 29, 2018 05:01 AM
Last Post: anoniminTR
[.NET] by shroomkidhackerJul 31, 2013 03:18 AM 2 121 Jul 31, 2013 03:18 AM
Last Post: getkilled22