|
Hi,
Even I got same error when the project got converted to VS 2005.
I corrected it , You can type cast the error code with decimal
index = (int)System.Math.Floor((decimal)this.rnd.Next(this.al_full_scan_infos.Count));
Ranjan.D
|
|
|
|
|
index = (int)System.Math.Floor((decimal)this.rnd.Next(this.al_full_scan_infos.Count));
thank you
|
|
|
|
|
VS2005, I think that it is not very useful, i am waiting for the VS 2008.^_^.
111
|
|
|
|
|
I was going to give a thumbs up, but realized there are some serious threading issues with the VS 2003 source. BTW, i am using VS2005.
Two thumbs down!!!
Greg Cadmes
Greg cadmes
|
|
|
|
|
Hi,
Only multithreading troubles are present only with user interface. Other class can be used without changes.
I've tried it with VS 2005, and you're right, there's lot of multithreading troubles with Windows.Form due to Microsoft changes. A lot of them can be resolved by using microsoft solution (see msdn) but in easiest way, as a lot of access are done only to read interface text fields or option, you have to make new var for each field. It's quite long and boring. I will do it, but I've another project to finish taking 3 months, so I won't write a 2005 version before.
Another point you will notice, is that VS2005 install require SP2, and SP2 doesn't allow packet forging. For more informations see http://jacquelin.potier.free.fr/networkstuff/#known_troubles
Best regards
Jacquelin
|
|
|
|
|
good job. thank you very much
111
|
|
|
|
|
Hello,
Firstly - congrats on your efforts with this project!
Secondly, has anyone experienced any issues with packet generation on Windows XP SP2? I'm assuming the closure of Raw Sockets for sending might be related.
Can anyone confirm?
|
|
|
|
|
does it work behind a router
I can not get async to work behind a router
any idea's
thanks
|
|
|
|
|
Router should be transparent for all your computer network applications based on IP stack or upper. Check router config and if there's no firewall on it.
|
|
|
|
|
tcp/ip socket with proxy support using the great proxy library found in mentalis.org?
Regards,
unruledboy@hotmail.com
|
|
|
|
|
exception throws: missing types
in following source code lines:
this.stats_perf_counter_array=new System.Diagnostics.PerformanceCounter[10]
{
new System.Diagnostics.PerformanceCounter( "TCP","Segments Received/sec"),
new System.Diagnostics.PerformanceCounter( "TCP","Segments Sent/sec"),
new System.Diagnostics.PerformanceCounter( "IP","Datagrams Received/sec"),
new System.Diagnostics.PerformanceCounter( "IP","Datagrams Sent/sec"),
new System.Diagnostics.PerformanceCounter( "UDP","Datagrams Received/sec"),
new System.Diagnostics.PerformanceCounter( "UDP","Datagrams Sent/sec"),
new System.Diagnostics.PerformanceCounter( "ICMP","Messages Received/sec"),
new System.Diagnostics.PerformanceCounter( "ICMP","Messages Sent/sec"),
new System.Diagnostics.PerformanceCounter("Network Interface", "Bytes Received/sec", this.comboBox_stat_interface.Text),
new System.Diagnostics.PerformanceCounter("Network Interface", "Bytes Sent/sec", this.comboBox_stat_interface.Text)
};
something is missing in my windows 2003 server
Regards,
unruledboy@hotmail.com
|
|
|
|
|
Hi
PerformanceCounter is not supported by win98 and win CE (next version of networkstuff will avoid to throw error); but should be supported by 2003 server. To check available PerformanceCounter on your machine, just launch perfmon.msc (windows/run). Next, under system monitor, click the add button to add a graph: all available performance counter will be shown. you can use the perfom c# sample available in the msdn 2003 (PerfMon sample [C#] in the index). Tell me if some of counter are missing
Best regards
|
|
|
|
|
I am using win 2003! but I am not sure whether I have installed the performance counter, it is default installation of windows 2003
Regards,
unruledboy@hotmail.com
|
|
|
|
|
this.stats_perf_counter_array=new System.Diagnostics.PerformanceCounter[10]
{
new System.Diagnostics.PerformanceCounter( "TCPv4","Segments Received/sec"),
new System.Diagnostics.PerformanceCounter( "TCPv4","Segments Sent/sec"),
new System.Diagnostics.PerformanceCounter( "IPv4","Datagrams Received/sec"),
new System.Diagnostics.PerformanceCounter( "IPv4","Datagrams Sent/sec"),
new System.Diagnostics.PerformanceCounter( "UDPv4","Datagrams Received/sec"),
new System.Diagnostics.PerformanceCounter( "UDPv4","Datagrams Sent/sec"),
new System.Diagnostics.PerformanceCounter( "ICMP","Messages Received/sec"),
new System.Diagnostics.PerformanceCounter( "ICMP","Messages Sent/sec"),
new System.Diagnostics.PerformanceCounter("Network Interface", "Bytes Received/sec", this.comboBox_stat_interface.Text),
new System.Diagnostics.PerformanceCounter("Network Interface", "Bytes Sent/sec", this.comboBox_stat_interface.Text)
};
|
|
|
|
|
Hello Jacquelin,
I downloaded the VS 2002 code, builded the solution and got the following message: ...'arp_header.cs' could not be opened ('The system cannot find the file specified. ')
Please advise what I'm doing wrong?
Thanks, Roelf
|
|
|
|
|
just remove it from project. Arp can't be forge from windows API (windows just allows to access IP stack). It was a try before a removal. I do appoligize it still in vs2002 source code. Remember the vs 2002 project is no more maintained and still contains severals bugs removed in the 2003 projects.
Best Regards
Jacquelin
|
|
|
|
|
Hello Jacquelin,
I downloaded the VS 2002 code and got the following message:
arp_header.cs' could not be opened ('The system cannot find the file specified. ')
|
|
|
|
|
It could be a stupid question, but how could I display and act on the Routing Windows Table? My application must change Windows' routes, depending on running process. But I can't manage to do that!
I use the FX Beta 2.0...
Thanks for helpin'
|
|
|
|
|
take a look at MSDN SDK
"Routing Protocol Interface Functions"
AddInterface
ConnectClient
DeleteInterface
DisconnectClient
DoUpdateRoutes
GetEventMessage
GetGlobalInfo
GetInterfaceInfo
GetMfeStatus
GetNeighbors
InterfaceStatus
MibCreate
MibDelete
MibGet
MibGetFirst
MibGetNext
MibSet
MibSetTrapInfo
QueryPower
RegisterProtocol
SetGlobalInfo
SetInterfaceInfo
SetPower
StartComplete
StartProtocol
StopProtocol
UnbindInterface
If the routing protocol supports service handling, implement the following function in addition to those listed preceding:
DoUpdateServices
|
|
|
|
|
The problem is that the indicated solution is available only on Windows Servers...
But you put me on solution way, and I manage to find that :
GetIpForwardTable, in the "IP Helper" MSDN SDK Section. But it seems to be really complex to interface it with C# code...
There is non easier solution, directly integrated in the C# FX 2.0?
|
|
|
|
|
Hi all,
I was trying the packet forging method.
But in the line
socket.SendTo(this.encode(),new IPEndPoint(new IPAddress(network_convert.switch_UInt32(this.destination_address)),remote_port));
it is throwing the following exception.
"A blocking operation was interrupted by a call to WSACancelBlockingCall".
Thanks in advance.
|
|
|
|
|
The Socket trys to Blocking the thread by this operations.
If you set Socket.Blocking = false, this exception is thrown.
-- modified at 4:43 Monday 12th June, 2006
|
|
|
|
|
I am trying to write a firewall with packet filtering capability and i found your project very usefull.it helps me a lot to understand how this level of sniffing is possible with C#.
is it possible to block(Filter) Packets with Socket?
|
|
|
|
|
Since you chose the GPL license, does that really mean I'd have to provide the complete source code for any app I make that includes any of the classes you've provided? If so, I really hope this doesn't become a trend here at CodeProject; they'll need a filter to hide articles with GPL code then
|
|
|
|
|
extract of the gpl faq:
"I'd like to incorporate GPL-covered software in my proprietary system. Can I do this?
You cannot incorporate GPL-covered software in a proprietary system. The goal of the GPL is to grant everyone the freedom to copy, redistribute, understand, and modify a program. If you could incorporate GPL-covered software into a non-free system, it would have the effect of making the GPL-covered software non-free too.
A system incorporating a GPL-covered program is an extended version of that program. The GPL says that any extended version of the program must be released under the GPL if it is released at all. This is for two reasons: to make sure that users who get the software get the freedom they should have, and to encourage people to give back improvements that they make.
However, in many cases you can distribute the GPL-covered software alongside your proprietary system. To do this validly, you must make sure that the free and non-free programs communicate at arms length, that they are not combined in a way that would make them effectively a single program.
The difference between this and "incorporating" the GPL-covered software is partly a matter of substance and partly form. The substantive part is this: if the two programs are combined so that they become effectively two parts of one program, then you can't treat them as two separate programs. So the GPL has to cover the whole thing.
If the two programs remain well separated, like the compiler and the kernel, or like an editor and a shell, then you can treat them as two separate programs--but you have to do it properly. The issue is simply one of form: how you describe what you are doing. Why do we care about this? Because we want to make sure the users clearly understand the free status of the GPL-covered software in the collection.
If people were to distribute GPL-covered software calling it "part of" a system that users know is partly proprietary, users might be uncertain of their rights regarding the GPL-covered software. But if they know that what they have received is a free program plus another program, side by side, their rights will be clear."
You're quite fun: you like to download sources made by others but don't want to share your one...
|
|
|
|
|