Sinisterly
[Batch] Get IP and save to file - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Coding (https://sinister.ly/Forum-Coding--71)
+--- Thread: [Batch] Get IP and save to file (/Thread-Batch-Get-IP-and-save-to-file)

Pages: 1 2


RE: [Batch] Get IP and save to file - Liyan Oz - 04-19-2011

hahahaha. loo so cool... use command ipconfig /all in cmd...

nice post sir


RE: [Batch] Get IP and save to file - 1234hotmaster - 04-19-2011

(04-19-2011, 02:23 PM)DeM0STheneS Wrote:
(03-29-2011, 03:45 PM)1234hotmaster Wrote: what! you just gave me an epic idea too! grabbing the ip without the whatsmyip automation page!!!

you can shell it and then extract the ip in vb!! Biggrin

This is brilliant. As an amateur, this is a perfect way to learn. If you have the time, could you, or someone, possibly list some steps on doing more with this code.

Reluctantly, I must admit that I don't know what it means to shell something. The only thing I can think of is running the code off the cmd line or the shell in Linux. That I might be able to do..... Any input?

For now, it can be used as a quick way to get all the information possible about a server/ip just by entering domain. (whois)

Thank you for sharing the code, gives me something to ponder today !
:thumbs:

well, thanks but i meant this in Windows OS not linux Smile

i can use the Shell( ,appwinstyle.hide) command to get the user's IP without connecting to internet, filter extra info of it and grab the IP Biggrin




RE: [Batch] Get IP and save to file - bar771 - 06-21-2011

nice but is is a low level, i use in this code "ipconfig /all >ip.txt"
this is very nice


RE: [Batch] Get IP and save to file - blowdoof - 06-21-2011

Quote:what! you just gave me an epic idea too! grabbing the ip without the whatsmyip automation page!!!
... ipconfig gives you the internal ip, whatsmyip gives you the public ip.. could be a huge difference when behind a router