Hack Forums
[.NET] [Rel] ShockWare.Tools (Common tools, including Packet Editor) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [Rel] ShockWare.Tools (Common tools, including Packet Editor) (/showthread.php?tid=1362047)



[Rel] ShockWare.Tools (Common tools, including Packet Editor) - Venom Page - Jun 8, 2011

This post will be updated regulary
[img]http://npshare.de/files/d869eb6b/sw.png[/img]
This is my common library for reusable components, I hope it may be useful for you.
Components
UploadedLib (Shockware.Tools.UploadedTo) - A simple Uploaded.to libary, supports listing files and adding items to the remote-upload queue.
TcpInterceptor (Shockware.Tools.TcpInterceptor) - Used for packet capturing/editing by opening a local TCP server that simply forwards all traffic to a chosen remote server, you can define callbacks for incoming and outgoing packets and edit/dump them. Originally used for Minecraft-TV.

The DLL file is not protected in any way, you're free to use a decompiler to take a look at the source. I wouldn't post the source here though.

Compiled DLL: http://ul.to/duj12h1s
PDB (for debugging): http://ul.to/vg0ruokv


* - Aeonhack Archivist - Jun 8, 2011

Thanks for the share MrX3N.


* - DragQueen - Jun 8, 2011

(Jun 8, 2011 11:13 AM)alecn1519 Wrote:  Thanks for the share MrX3N.

bad tcpinte.. libary
i tried it now and it send the packet over and over
without let me
change it or send it local / remote

i have another 2 libaries that do same
without any problem ..
fix it :P


* - Venom Page - Jun 9, 2011

(Jun 8, 2011 12:44 PM)DragQueen Wrote:  bad tcpinte.. libary
i tried it now and it send the packet over and over
without let me
change it or send it local / remote

i have another 2 libaries that do same
without any problem ..
fix it :P

Code
static TcpInterceptor interc = new TcpInterceptor();

  static void Main(string[] args)
  {

    interc.OnPacketFromLocal += new ProcessPacket(interc_OnPacketFromLocal);
    interc.OnPacketFromRemote += new ProcessPacket(interc_OnPacketFromRemote);
    interc.OnClientConnected += new Action(interc_OnClientConnected);
    interc.OnReconnect += new Action(interc_OnReconnect);
    interc.StartServer(9999, "localhost", 25565); //This is the configuration for a local minecraft server.
  }

  static void interc_OnReconnect()
  {
    //reconnecting to remote server
  }

  static void interc_OnClientConnected()
  {
    //Client connects
  }

  static byte[] interc_OnPacketFromRemote(byte[] data)
  {
    //Edit data
    return data;
  }

  static byte[] interc_OnPacketFromLocal(byte[] data)
  {
    //Edit data
    return data;
  }

(and yep, I know byte[] is always a reference, but you may wanna replace it entirely)


* - DragQueen - Jun 9, 2011

i dont 😏
i want check that packet
and if this packet can harm me
[tell the server that my program trial end]
so >> end the send.
and return to program
'hi all ok dont warry'