in reply to Re: arp request forging
in thread arp request forging

Ok, I'm not sure of this. But I thinked that if I want send an arp request to an host, I must specify mac address destination and peraphs its ip address.

I know that in C language is possible forging arp packets. In Net::RawIP I read:

The ARGOFDEST and the ARGOFSOURCE can be given as a string which contain just 6 bytes of the real ethernet address or like the output of the ifconfig(8) e.g. 00:00:E8:43:0B:2A or just an ip address or a hostname of a target, then a mac address will be discovered automatically.

Can you help me? tnx very much

Replies are listed 'Best First'.
Re^3: arp request forging
by dave_the_m (Monsignor) on Jun 03, 2004 at 20:50 UTC
    Ok, I'm not sure of this
    Well, if you're not sure of this, then are you really in a postition to be sending out faked ARP packets onto the wire? I can't think of any reason why someone would normally want to do this, so unless you can convince me that (a) you aren't up to no good, (b) there is a valid reason for doing this, then I'm not keen to help you further.
    Sorry,

    Dave.

      My purposes could be.. arp poisoning, create an arp proxy.. and I would like to write a script for a
      gatway to permit to a host with different ip address (different classes) to connect.. etc. etc..
      a strange project of my friend.

      Can you help me?
        Hmmm... well since ARP isn't an IP type but sits directly on top of the ethernet layer, you need to create a raw ethernet packet. I've never used Net::RawIP, but a quick look at the documentation seems to imply the ethset, ethsend, and/or send_eth_frame methods may be what you need. You'll need to construct the raw ARP packet yourself.

        Dave.