hi! i wanted to send a custom ethernet layer packet to the network! for example sending a packet with a custom Source IPaddress and Custom MAC Address... i have found that NDIS (Driver) interface or WinPCap can do this for me , but i don't want to use third party applications and drivers,...
spiritboy
Posts
-
Sending a Custom Ethernet packet -
How to animate To/From an Auto value?for example i want to animate the width of grid from 0 to its Auto Value! i've searched alot but cannot find anything, thanks in advance!
-
Managing Roles and Permissions for a an enterprise applicationhi , i am developing a large and multi-user accounting application, users logs in and will see the subsets of controls that have permissions to see, i want to have a good permission structure, permissions should be applied to data(view ,read and write)and elements(Buttons and ...), is there any tutorial or a good explained article about this purpose? i have some approaches in mind, but i am open to receive any advice from others to take best of them...
-
How to use DbLinq that suport Linq To Oracle?Oracle is Not supported!
-
Commiunicating with (Dial up or ADSL) Modem (or Wireless Card ) using Serial PortI am sorry for this, again! i said my modem is connected to the internet!!! when it is connected to internet i can not Open its port since it is connected to the internet, i am not trying to open port for second time! all i need is to send packets over dialup. more explanation: when i go to StartMenu\Connect to\My dial up Connection\Dial then i can not Open the modem Port. i do not have a second program running and using the port. the process that is using the port is one of windows processes. i did not contradict myself, i said: while modem is connected (by StartMenu\Connect to\My dial up Connection\Dial) i want to send packets! the way i found is to use serial port, but while my modem is connected i cannot Open its port in my program unless , myself in the program dial and connect to the ISP.(not using StartMenu\Connect to\My dial up Connection\Dial)
-
Commiunicating with (Dial up or ADSL) Modem (or Wireless Card ) using Serial Portthe Exception is IOExceptio and telling : "The process cannot access the port 'COM1' because it is being used by another process." the reason is that my modem is already connected to the internet (so is under used by another process), and i want to send packets to it. when the modem is not connected i can successfully Open the port. to make it more clear, i do not have another program that opened this port!
-
Commiunicating with (Dial up or ADSL) Modem (or Wireless Card ) using Serial Porti didn't ask what to send to modem, i have asked how to communicate when the port is opened by another process and i want to open() it and send AT Commands!??
-
Commiunicating with (Dial up or ADSL) Modem (or Wireless Card ) using Serial Porthi there, i have recently posted a Question asking how to send and recieve raw ethernet packets (bits on the wire) to the dialup (or any kind of modem) Modem's Connection, i have searched a lot and found and downloaded a Library Called SharpPcap (managed code for WinPcap) that can exactly do what i want, but only over Lan Connection and when i was trying to send packets over Dialup connection it fails, someone answers me and tell me to send packets using SerialPort class, since Modems are connected to the computer using serial ports(like COM1 or COM2) now suppose that my dial up modem is connected to the internet and is at port COM1, i'll wrote something like this:
SerialPort sp = new SerialPort("COM1",9600); sp.DtrEnable = true; sp.DataReceived += new SerialDataReceivedEventHandler(sp_DataReceived); sp.Open();//Throws an exception Here sp.Write(....My Packet);
as i specify it throws me an exception, since this port is Opened now and is owned by a process, and as long as ports(such as COM1) can only be used by one and only one process, i can not do any thing... is there another way or something else, i've searched for 2 or more weeks ... :( -
SQL Connection Problemtry
new SqlConnection(@"Server = .\sqlexpress; database = YourDbName ; integrated security = sspi;");
-
How to implement a socket (IP layer) packets using C# ?there is a unmanage library Called WinPcap, search google, download it from http://www.winpcap.org/ then it adds some function to API that you can use them, if you don't know anything about PInvoke, use SharpPcap (Managed Code for winpcap) it is simply a DLL that you can add as reference for your application and use it(Search SourceForge.net to download it), for IP or Ethernet Packet Capturing and sending
-
Remote Connection in Sql Server with C#:D
-
problem with client/server applicationTry creating a TcpListener , listening at a local endpoint and accepting tcp connections TcpListener listener = new TcpListener(YOUR EndPoint here(new LocalEndPoint(....))); listener.Start(); Listener.AcceptTcpConnections... //Wait for new Connection from Client Then at the Client Side you should simply create a TcpClient and connect To a RemoteEndPoint which is what u've created as localEndpoint at your server side, TcpClient tcpc = new TcpClient(remoteEndPoint); then you can send objects to server and obtain responses try http://www.google.com/search?hl=en&source=hp&q=simple+Client+Server+C%23&aq=f&oq=&aqi=
-
interacting with windows servicewould you specify the type of exception? maybe you do not have sufficient privileges to execute the commands, for gaining privileged u should add a manifest file to your project
-
Sending Raw Ethernet packet over Dial up (Modem)but when i am connected at the internet through dialup, i can not bind to its com port, and open the port to send and recieve.
-
Sending Raw Ethernet packet over Dial up (Modem)i don't think that we can communicate with 56-Kbps Dial up Modem using cat3 twisted pair(telephone line ) with SerialPort! , by the way thanks
-
Sending Raw Ethernet packet over Dial up (Modem)hi there, i have an application that i want to send raw packets through dial up, i have a lan that i can send packets to easily, but it does not work for dial up i know the ways such as WinPcap, SharpPcap(managed code working with WinPcap), NDIS Driver API, that allows to send and capture packets but they only can send raw packets to lan! not to my dial up connection! any one knows how to do that?
-
How To Capture and alter the incoming packets from my connectionbut it's some times a good idea! do u know about NAT server? it changes the Packet's spurce ip address and port! providing port translation! i am trying to create a custom NAT! so i need to change Packet's fields accordingly
-
How To Capture and alter the incoming packets from my connectionI knew these libraries , they are all about monitoring analizing and sniffing the network packets! i need a way to alter these packets and resend them! these won't help me.
-
How To Capture and alter the incoming packets from my connectionhi there , i have 1 internet connection(Public connection) and 1 LAN connection(Private Connection) i want to capture all incoming packets from both connections at the network layer and alter some of its fields such as source ip, source port, dest. port and dest. ip. i know i should use low level sockets to read all incoming packets at network layer! but how to do that? any one know?
-
Create a Custom NAT serviceHi there , i am currently working on a project that is to share internet connection over a LAN, and i should write a custom NAT service! any one can help me where to start, offer me some references? any ebooks?... just thanks!