| | |
finding all the IP & MAC addresses of a network
![]() |
•
•
Join Date: Jun 2009
Posts: 6
Reputation:
Solved Threads: 0
Hi!
I want to write a program that can find all of the IP and Mac addresses and the processes nember connected to a network, fro example an ISP.
for writing this i must know the neccery APIs for finding IP and Mac address.
PLZ help me to start my work. did you know any thing about these APIs or what should i do?
i can program in c# or java.
I want to write a program that can find all of the IP and Mac addresses and the processes nember connected to a network, fro example an ISP.
for writing this i must know the neccery APIs for finding IP and Mac address.
PLZ help me to start my work. did you know any thing about these APIs or what should i do?
i can program in c# or java.
Unless you work for the ISP then you are out of luck. The mac address of connected computers can be easily hidden or altered if someone is running a home network:
http://en.wikipedia.org/wiki/Data_Link_Layer
http://en.wikipedia.org/wiki/Data_Link_Layer
•
•
Join Date: Jun 2009
Posts: 14
Reputation:
Solved Threads: 0
If you are just looking to find IP and MAC address on a network that is easy, but you can't lookup all IP and MAC addresses from an ISP unless you have access to the server(s). There are tons of programs out there that will find all connections to a single IP. Almost all servers have network tools that will show all incoming connections.
If you want to query your DNS for all IP addresses that have names
try this
i=1
while [ i -lt 255 ]; do
nslookup XXX.XX.XX.$i | grep -i name
(( i = i + 1 ))
done
If you want to find all IP addresses currently active on your subnet
# ping XXX.XX.XX.XXX
If you want to query your DNS for all IP addresses that have names
try this
i=1
while [ i -lt 255 ]; do
nslookup XXX.XX.XX.$i | grep -i name
(( i = i + 1 ))
done
If you want to find all IP addresses currently active on your subnet
# ping XXX.XX.XX.XXX
Last edited by quibbie; Jun 30th, 2009 at 12:42 pm.
If you think something is impossible, don't bother the person trying to accomplish it. (Me) www.quibbie.com
Yes but what are you really trying to do because it doesn't make sense. You can send traffic at the broadcast address for your subnet then look at your ARP table.
Note that 10.2.5.255 is the broadcast address.
dos Syntax (Toggle Plain Text)
C:\>ping 10.2.5.255 Pinging 10.2.5.255 with 32 bytes of data: Ping statistics for 10.2.5.255: Packets: Sent = 2, Received = 2, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms Control-C ^C C:\>arp -a Interface: 10.2.5.215 --- 0x2 Internet Address Physical Address Type 10.2.5.2 00-xx-xx-d3-xx-13 dynamic 10.2.5.4 00-xx-xx-6f-xx-ac dynamic 10.2.5.5 00-xx-xx-ec-xx-10 dynamic 10.2.5.10 00-xx-xx-be-xx-17 dynamic 10.2.5.50 00-xx-xx-34-xx-5c dynamic 10.2.5.104 00-xx-xx-c5-xx-5f dynamic 10.2.5.212 00-xx-xx-00-xx-70 dynamic 10.2.5.253 00-xx-xx-06-xx-5d dynamic C:\>
Note that 10.2.5.255 is the broadcast address.
•
•
Join Date: Jun 2009
Posts: 6
Reputation:
Solved Threads: 0
I want to write a program (pereferably in c# or java) that can find all IP and mac addresses connected to my subnet when i'm connected to that subnet.
with sending traffic to the network i just can learn some of the addresses not all of them.
thanks alot for your attention. I'm a newbie and already i'm enjoying my membership here!!!!
with sending traffic to the network i just can learn some of the addresses not all of them.
thanks alot for your attention. I'm a newbie and already i'm enjoying my membership here!!!!
•
•
•
•
with sending traffic to the network i just can learn some of the addresses not all of them.
See:
http://social.msdn.microsoft.com/for...-5f9d65facfcf/
and
http://groups.google.com/group/DotNe...d69fec7e56d166
They provided a script:
Code Snippet @echo off endlocal set IPtoCheck=10.0.0.21 ping -n 1 %IPtoCheck% >nul arp -a | findstr %IPtoCheck% endlocal
If you had a managed switch then you should automate logging in to the device and downloading the ARP table or possibly querying it with SNMP.
Everything I have discussed thus far was referring to devices on your same network segment (subnet/LAN).
![]() |
Similar Threads
- add security to wireless network (Network Security)
- Hello Everybody! (Community Introductions)
- Advice for Wireless Router for PC & Mac (Apple Hardware)
- network i-mac, pc, cable modem and router (Networking Hardware Configuration)
- Is the MAC wireless Authorization safe/secure? (Network Security)
- setting up a wireless network (Networking Hardware Configuration)
- Question? (Windows NT / 2000 / XP)
- MAC/XP Home Network (Networking Hardware Configuration)
Other Threads in the Network Security Forum
- Previous Thread: WARNING: Adobe Acrobat, Flash and Reader Zero Day Vulnerability
- Next Thread: Media FAIL: Twitter not hacked
| Thread Tools | Search this Thread |
2008 adobe advice antivirus apple banking blackhat botnet breach browser business china confidentiality crack crime cybercrime daniweb data database dataloss dataprotection development email emailretention encryption exploit facebook fail firefox flash forensic fraud gadget gartner google government hack hacker hacking hardware homelandsecurity idtheft information internet iphone kaspersky kernel koobface law linux malware mcafee mckinnon microsoft military mobile music nasa nationalsecurity network news obama password passwords pentagon phishing phone politics privacy report research review sans satnav scam school search security skype socialnetworking software sophos spam sqlinjection survey symantec terrorism terrorist trends trojan twitter uk usb virus vulnerability web wireless worm yahoo youtube






