cr4kb0y <cr*****@gmail.comwrote:
I am stdudying the dns spoof,and i got a source code about dns
spoof,but it can't run normaly,
I don't know why.so I come here for help.
the problem is :
PacketInitPacket(lppackets,sendbuf,sizeof(eth)+siz eof(arp));//
if(PacketSendPacket(lpadapter,lppackets,TRUE)==FAL SE)
{
printf("PacketSendPacket in arpspoof Error: %d
\n",GetLastError());
return -1;
}
it can't send packets out.
and the error number is 0.
Unfortunately, in clc you're wrong since your question seems to be
about some functions concerning networking, using some third-party
and probably system-specific library but not about the language C
(which hasn't any built-in support for networking and you don't
seem to have any obvious problems with C in what you posted).
Some functions look a bit as if they are from the WinPcap library
while another seems to be Windows specific (GetLastError()), so
asking in a group dedicated to programming under Windows will
probably be the best choice. If you do so it may be of advantage
if you give a bit more information (which system you're on, what
libraries you use and perhaps a bit more of source code).
Regards, Jens
--
\ Jens Thoms Toerring ___
jt@toerring.de
\__________________________
http://toerring.de