-
Notifications
You must be signed in to change notification settings - Fork 161
Open
Description
Basically subject.. How to do it? I tried to use plugin DataHandlerExample and tried to receive data in the OnServerDataReceived(object? sender, DataEventArgs e) by using PacketDotNet library, but can't read any IPPackets from the e.Buffer. Here is my code I tried to read packets through this plugin:
public override void OnServerDataReceived(object? sender, DataEventArgs e)
{
var packet = Packet.ParsePacket(LinkLayers.Ethernet, e.Buffer); // This reads Ethernet packet
// Then I try to extract IPPacket
var ipPacket = packet.Extract<IPPacket>();
// But getting `ipPacket` always null
}
So, how to read and modify data between Client and Server sockets in this SOCKS server?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels