Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[Rel] ShockWare.Tools (Common tools, including Packet Editor)

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
Thanks for the share MrX3N.
(Jun 8, 2011 11:13 AM)Aeonhack Archivist 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
(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)
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'


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by SkofosAug 20, 2019 09:56 AM 49 1,635 Aug 20, 2019 09:56 AM
Last Post: MavenGradle
[Shell] by SkofosJul 19, 2019 06:19 PM 2 221 Jul 19, 2019 06:19 PM
Last Post: Skofos
[.NET] by evilgaiaAug 6, 2015 02:08 PM 2 313 Aug 6, 2015 02:08 PM
Last Post: evilgaia