 |
|
 |
Hello, I've got mistake when I compile porject in snifferdlg.h file.
It tells me that there is error in line
"SOCKADDR_STORAGE m_saSourceAddress, // Source address to filter
m_saDestinationAddress; // Destination address to filter"
Please help.
|
|
|
|
 |
|
|
 |
|
 |
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\atlcore.h(35): fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.
Please help. I'm beginner in C++
|
|
|
|
 |
|
 |
In 'stdafx.h', there is a variable _WIN32_WINNT. You must set this to the appropriate value. Take a look at this site:
http://msdn.microsoft.com/en-us/library/aa383745(v=vs.85).aspx[^]
Also, since you're a beginner, I recommend using Google when you have a programming problem. You can find many answers by doing this.
Regards,
Mike
|
|
|
|
 |
|
 |
hey.... pls help me how to run this project... ih've visual studio6.0 but i don't know how to run this
soruce file.. this program run between the server and client or single system
|
|
|
|
 |
|
 |
just double click the .sln file and it will be opened up in visual studio then build solution
|
|
|
|
 |
|
|
 |
|
 |
Dear sir ,Your code is excellent but one is missing that if some packet is comming how can we know that this packet/packets is for this GET ,
how can we arrange the incommingpackets in order.
sathish
ya
|
|
|
|
 |
|
 |
hey im sorry to bother u... needed ur help... I m developing a software in c#.net where i need to capture data of selected network adaptor. I wanted to ask u is this possible by not using winPcap? If yes how?
waiting for ur help.
Thank u!
|
|
|
|
 |
|
 |
Good Project, what is the format to save? does it support Packetbone?
|
|
|
|
 |
|
 |
please tell me with which compiler can you compile this nice code?
|
|
|
|
 |
|
 |
The original compiler was VC6 I think, but you can run it under any VS compiler you want, it will convert automatically.
Eran Aharonovich (eran.aharonovich@gmail.com )
Noviway
|
|
|
|
 |
|
 |
i'm new, doing final year project on sniffer. can u tell me
1> requirements for compilation
2> steps for execution
My e-mail id is: rahul.csit@gmail.com
|
|
|
|
 |
|
 |
Hi, Israel!
Nice, work!! Hey, It is possible to do the same thing in Visual C++ 6.0?
How?
Regards,Uriel
|
|
|
|
 |
|
 |
I'm sorry. I havn't seen your project converter. I hope it works
Greetings!!
Uriel
|
|
|
|
 |
|
 |
1- can I get code in visual basic for get IP for All computer if so please send to me 2- can I get information about How can Setting wireless NIC to promiscuous mod
|
|
|
|
 |
|
 |
Hi, I want to catch TCP and UDP packet. Can you show me how to do? Thanks
AS84
|
|
|
|
 |
|
 |
Never tried UDP before....sorry.
Eran Aharonovich (eran.aharonovich@gmail.com )
Noviway
|
|
|
|
 |
|
 |
hey eran... hey im sorry to bother u... needed ur help... I m developing a software in c#.net where i need to capture data of selected network adaptor. I wanted to ask u is this possible by not using winPcap? If yes how?
waiting for ur help.
Thank u!
|
|
|
|
 |
|
 |
Hi,
I'm not using this code but I'm using something similar. I need to get the IP address of where I'm listening from. However, the inet_ntoa command always returns IP address as 0.0.0.0.
here are parts of the code... please let me know if I'm doing something wrong. I'm using Visual Studio C++. Is it possible that I might be missing a header file or something? I think it would give an error if that was the case. I have this in my code: #pragma comment(lib, "Ws2_32.lib")
Thanks!
SOCKADDR_IN recv_addr;
SOCKET sock;
WSADATA data;
if (WSAStartup(MAKEWORD(2,2), &data) != 0) return(0);
int ret;
sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (!sock)
{
WSACleanup();
return(0);
}
recv_addr.sin_family = AF_INET;
recv_addr.sin_addr.s_addr = INADDR_ANY;
recv_addr.sin_port = htons(APP_PORT);
ret = bind(sock, (SOCKADDR *)&recv_addr, sizeof(SOCKADDR));
if (ret)
{
WSACleanup();
return(false);
}
case WM_SOCKETREAD:
{
SOCKADDR from;
char buffer[256];
int len = sizeof(SOCKADDR);
memset(buffer, '\0', 256);
recvfrom(sock, buffer, 256, 0, &from, &len);
SetDlgItemText(hDlg, IDC_MESSAGE, buffer);
char* Recv_IP= ReadIP();
}break;
char* ReadIP()
{
int length = sizeof(recv_addr);
getsockname(sock, (SOCKADDR*)&recv_addr, &length);
MessageBox(hDlg, inet_ntoa((in_addr)recv_addr.sin_addr), "IP Address", MB_OK);
return(inet_ntoa((in_addr)recv_addr.sin_addr));
}
|
|
|
|
 |
|
 |
Hi;
I catch only traffic sent to me, but not sent from me. This problem appeared only on XP SP2. Do you have any idea how to fix this, or we just drop it
Thanks;
|
|
|
|
 |
|
 |
i download the code but i couldn't run the code what should i do....
plz help..
ujjwal
|
|
|
|
 |
|
 |
Did you manage to compile the code?
What was the error message?
Eran Aharonovich (eran.aharonovich@gmail.com )
Noviway
|
|
|
|
 |
|
 |
i did with borland c++ compiler do i need visual c++...
do u have idea to converts packets's data in readable form...i am trying it with java...and got the result in hexadecimal form and so on..
ujjwal
|
|
|
|
 |
|
 |
i am new to mfc c++ and i really need help
Instead of displaying the mac and ip address, i want to display the number of packets. And when the packets reach 50 i want it auto delete.
hope to hear from the experts soon. thanks
|
|
|
|
 |