Skip to content

How to actually - "Handle/modify incoming and outgoing data"? #39

@SiriusED

Description

@SiriusED

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions