Government Security
Network Security Resources

Jump to content

Photo

Send Syn In Vb.net?

- - - - -
  • Please log in to reply
5 replies to this topic

#1 qazwsx

qazwsx

    Private First Class

  • Members
  • 20 posts

Posted 14 January 2008 - 06:30 PM

Is it possible to send a SYN packet in vb.net? And if so how?

#2 Kenny

Kenny

    Former Commander In Chief

  • Retired Admin
  • 6,747 posts

Posted 15 January 2008 - 09:59 AM

if your using Windows... i dont think you can anymore ..i read a year or two back that M$ was disabling raw socket access which i gather they have

option is move away from M$ to linux ;)
Kenny aka ComSec

Please read the Forum Rules !!!

______________________

#3 secware

secware

    Private

  • Members
  • 5 posts

Posted 15 January 2008 - 11:48 PM

Hi

According to Microsoft[1,2], raw socket support exists, however
restricted to ICMP and IGMP protocols (and, maybe, UDP). I actually
created a raw socket ping in VB.NET, very similar to this one[3].

Anyway, a recent post[4] shows in C# that you actually can craft tcp
packages for raw sockets (I assume XPSP2 here). If this works in C#,
I don't see why it should not work for VB.NET. Be careful with the checksum,
which is not as trivial as with ICMP packages. I made one a while ago[5]
(in c, but you may be able to port it to VB.NET).


Cheers, and keep us updated.



[1] http://msdn2.microso...ype(VS.80).aspx
[2] http://technet.micro...y/bb457156.aspx (Restricted traffic over raw sockets)
[3] http://www.developer...o.uk/show/2857/
[4] http://www.dotnetmon...ets-on-a-socket
[5] http://antionline.co...904&postcount=6

#4 Kenny

Kenny

    Former Commander In Chief

  • Retired Admin
  • 6,747 posts

Posted 16 January 2008 - 07:31 AM

thanks for the heads up on that secware... i remember reading about it long time back and am sure it was to do with sp2 with the restrictions being applied..you have filled in the missing pieces...cheers
Kenny aka ComSec

Please read the Forum Rules !!!

______________________

#5 H0LL0W

H0LL0W

    Private

  • Members
  • 12 posts

Posted 16 January 2008 - 07:49 AM

Thx 4 Linkz @ Info
Ill open it for input :)

507703

#6 bini

bini

    Private

  • Members
  • 1 posts

Posted 06 January 2009 - 09:35 PM

Hi

I believe the following article could help you; I used it to send raw packets on windows.

http://www.codeproje...IP/sniffer.aspx