in reply to arp request forging

Well, for one thing, an ARP packet isn't a type of IP packet, so you can't set its IP src and dst addresses like that.

But do you really want to be forging ARP requests?

Dave.

Replies are listed 'Best First'.
Re^2: arp request forging
by goony (Initiate) on Jun 03, 2004 at 18:56 UTC
    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
      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?