dns spoof

C

cr4kb0y

hello everyone!
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)+sizeof(arp));//
if(PacketSendPacket(lpadapter,lppackets,TRUE)==FALSE)
{
printf("PacketSendPacket in arpspoof Error: %d
\n",GetLastError());
return -1;
}
it can't send packets out.
and the error number is 0.
Can anybody here give me some hints!
 
J

Jens Thoms Toerring

cr4kb0y said:
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)+sizeof(arp));//
if(PacketSendPacket(lpadapter,lppackets,TRUE)==FALSE)
{
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
 
C

cr4kb0y

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

Thanks for your suggestions!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,169
Latest member
ArturoOlne
Top