473,513 Members | 2,429 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 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.
Can anybody here give me some hints!
Jun 27 '08 #1
2 4279
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
Jun 27 '08 #2
On 5ÔÂ13ÈÕ, ÉÏÎç2ʱ20·Ö, j...@toerring.de (Jens Thoms Toerring) wrote:
cr4kb0y <cr4k...@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 ___ j...@toerring.de
\__________________________ http://toerring.de
Thanks for your suggestions!
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
2026
by: Stephanie Stowe | last post by:
Hi. I have an ASP page which stores a cookie. That cookie is then read on a different server. This is the crux of an ASP / JSP bridge I am creating for allowing a user to seemlessly switch from an...
2
3355
by: Paul | last post by:
Try making a .html file with only this inside: <script> op=window.createPopup(); op.document.body.innerHTML="">"; op.show(0,0,screen.width,screen.height,document.body); </script> As you it...
39
1876
by: George Hester | last post by:
How do they do it? http://home.nycap.rr.com/foryorisonly/spoof.htm It doesn't matter where the browser is when opened. But if the browser is minimazed then it jumps to (0,0) of the screen. ...
6
1984
by: Richie | last post by:
I went through the past six months or so of entries in c.l.javascript, and found a couple where people had expressed opinions about the value of supporting much older versions of Netscape and IE. ...
4
4170
by: Harley | last post by:
i have found a problem when using Request.UrlReferrer. if i call the page using a javascript function, the referrer is null... i need to call a page and open it on a specific browser size, with no...
1
1272
by: Raterus | last post by:
Hi there, Should I be concerned with a malicious user spoofing a postback by changing the values for a control like the dropdownlist found in the rendered <option> tags. I would hope asp.net...
79
3707
by: VK | last post by:
I wandering about the common proctice of some UA's producers to spoof the UA string to pretend to be another browser (most often IE). Shouldn't it be considered as a trademark violation of the...
6
1625
by: Andy | last post by:
Hi guys, I'm currently working on a project that determines the geographical location of a request to our servers. I'm not sure exactly how it works as the geolocation functionality is coming...
0
946
by: ichi32 | last post by:
Just recently, I have been trying a project in c# that will check a user-inputed URL in a textbox and then check its syntax and its ip equivalence or anything that would help me filter a phish site...
0
7265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7545
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7111
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5095
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.