flat assembler
Message board for the users of flat assembler.

Index > Windows > generate ip packet

Author
Thread Post new topic Reply to topic
bcdsys



Joined: 04 Aug 2008
Posts: 41
bcdsys 20 Dec 2008, 00:47
how do I do raw socket in winxp sp2? I need TOTAL ACCESS TO CREATE IP PACKET, NOT IDIOT RESCRITED VERSION LIKE RAWSOCKET IN SP2
what is easiest way to generate completly unrestricted ip packet?
Post 20 Dec 2008, 00:47
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20684
Location: In your JS exploiting you and your system
revolution 20 Dec 2008, 00:56
bcdsys wrote:
what is easiest way to generate completly unrestricted ip packet?
Write you own network driver. But, of course, many users don't run as admin so there may be no solution that is satisfactory.

Seriously, you will always face this situation. When your clients are using Vista then things get even more bleak because you need to have your driver signed by MS.

Another suggestion is to run Linux. It would be easier to do your own driver there. Lots of free source code available for such purposes.

Although, I am curious as to why you need such functionality? The only uses I have known up till now are 1) for malware infection and 2) security research into problems with current driver/OS network stacks allowing malware infection.
Post 20 Dec 2008, 00:56
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4623
Location: Argentina
LocoDelAssembly 20 Dec 2008, 02:50
Quote:

Another suggestion is to run Linux. It would be easier to do your own driver there. Lots of free source code available for such purposes.


AFAIK Linux does not need anything special since they never removed raw sockets support.
Post 20 Dec 2008, 02:50
View user's profile Send private message Reply with quote
asmcoder



Joined: 02 Jun 2008
Posts: 784
asmcoder 20 Dec 2008, 11:40
[content deleted]


Last edited by asmcoder on 14 Aug 2009, 14:54; edited 1 time in total
Post 20 Dec 2008, 11:40
View user's profile Send private message Reply with quote
bcdsys



Joined: 04 Aug 2008
Posts: 41
bcdsys 20 Dec 2008, 16:12
http://msdn.microsoft.com/en-us/library/ms740548.aspx

Note The Microsoft implementation of TCP/IP on Windows is capable of opening a raw UDP or TCP socket based on the above restrictions. But other Winsock providers may not support the use of raw sockets.

HOW DOES TCPIP STACK DO IT!? Is code in ws2_32.dll or tcpip.sys? if dll then can be done in usermode, if raw sender in tcpip.sys then need driver. does driver for unrestricted rawsocket exist? if so, where download? if dll, then how does ws2_32.dll generate rawsocket?
what about network card device and ioctl? can i write to network card from usermode?
Post 20 Dec 2008, 16:12
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.