PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > dns spoof
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
dns spoof

Réponse
 
LinkBack Outils de la discussion
Vieux 12/05/2008, 09h54   #1
cr4kb0y
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut dns spoof

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 .
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.
Can anybody here give me some hints!
  Réponse avec citation
Vieux 12/05/2008, 19h20   #2
Jens Thoms Toerring
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: dns spoof

cr4kb0y <cr4kb0y@gmail.com> wrote:
> 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 .
> 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
  Réponse avec citation
Vieux 13/05/2008, 08h07   #3
cr4kb0y
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: dns spoof

On 5ÔÂ13ÈÕ, ÉÏÎç2ʱ20·Ö, j...@toerring.de (Jens Thoms Toerring) wrote:
> cr4kb0y <cr4k...@gmail.com> wrote:
> > 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 .
> > 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 ___ j...@toerring.de
> \__________________________ http://toerring.de


Thanks for your suggestions!
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 14h10.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08992 seconds with 11 queries