Arp request to get MAc Adress with IP address - Python

This is a discussion on Arp request to get MAc Adress with IP address - Python ; Hello, I have a network on same subnet. I have an ip address of a machine. but i need to get its MAC Adress. Sendingf ARP request is the way i am taking. IS there any other way to get ...

+ Reply to Thread
Results 1 to 3 of 3

Arp request to get MAc Adress with IP address

  1. Default Arp request to get MAc Adress with IP address

    Hello,
    I have a network on same subnet. I have an ip address of a machine.
    but i need to get its MAC Adress.
    Sendingf ARP request is the way i am taking.

    IS there any other way to get this MAC Adress in python.??

    Also does python go down to level 2 of TCP/IP model??


    Sorry if i am to naive. Just learning python

    thanks


  2. Default Re: Arp request to get MAc Adress with IP address

    On Oct 30, 1:57 pm, amjad...@gmail.com wrote:
    > Hello,
    > I have a network on same subnet. I have an ip address of a machine.
    > but i need to get its MAC Adress.
    > Sendingf ARP request is the way i am taking.
    >
    > IS there any other way to get this MAC Adress in python.??
    >
    > Also does python go down to level 2 of TCP/IP model??
    >


    When you start talking about this kind of low-level stuff, you really
    need to start thinking about your OS, not Python. How would you do
    this task if you had to write in in C? Which system calls would you
    need to make?

    Once you figure that out, then it's a question how to make those
    system calls from Python.


  3. Default Re: Arp request to get MAc Adress with IP address

    amjadcsu@gmail.com wrote:
    > Hello,
    > I have a network on same subnet. I have an ip address of a machine.
    > but i need to get its MAC Adress.
    > Sendingf ARP request is the way i am taking.
    >
    > IS there any other way to get this MAC Adress in python.??
    >
    > Also does python go down to level 2 of TCP/IP model??
    >
    >
    > Sorry if i am to naive. Just learning python
    >
    > thanks
    >


    Python's standard libs don't do that, but you can probably work out
    something with sockets.

    However, I do recommend you take a look at Scapy, which is just great
    for network protocol manipulation. http://www.secdev.org/projects/scapy/

    I hadn't used it in a while, but when I last tried it, it was very
    promising.

+ Reply to Thread

Similar Threads

  1. [feature request] using the address book to editing it
    By Application Development in forum Pine
    Replies: 6
    Last Post: 07-08-2007, 02:44 PM
  2. Deleting an adress from address book
    By Application Development in forum Pegasus
    Replies: 1
    Last Post: 02-19-2006, 05:34 AM
  3. Feature request: search fullname field of address books
    By Application Development in forum Pine
    Replies: 0
    Last Post: 01-28-2006, 06:35 AM
  4. Feature request: shared address
    By Application Development in forum Mutt
    Replies: 30
    Last Post: 05-08-2005, 03:05 PM