Named Pipes? menu

User Tag List

Thread: Named Pipes?

Results 1 to 4 of 4
  1. #1
    xzidez's Avatar Member
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    136
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Named Pipes?

    hmm back after a break

    Anyways. I was thinking of an idea to get rid of all those injections for LUA.. So Named Pipes?
    good or bad?.. And should wow be my server or client?
    Anyone who have tried this?

    Named Pipes?
  2. #2
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't remember the named pipes nomenclature, but WoW should definitely initiate the connection. That way you can and should use randomly named pipes to avoid the stupidly-easy way of detection.

    Named pipes are fine; for message-oriented communication on-box, they're probably a little easier, and a little faster, than sockets.

    If you have dynamic code, you can keep your number of hooks to a bare minimum (and, IMO, that's a good design, if you can get the "dynamic code" bit working properly; good luck with that).
    Don't believe everything you think.

  3. #3
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should create the server in the bot atleast that's my opinion and that's what i did in my first attempts.
    If ure using C# it's terribly easy to create a pipeserver just a couple of rows.

    Code:
    using System;
    using System.IO;
    using System.IO.Pipes;
    
    class PipeServer
    {
      static void Main()
      {
        NamedPipeServerStream pipeServer =
            new NamedPipeServerStream("testpipe", PipeDirection.Out))
        
          Console.WriteLine("NamedPipeServer created.");
    
          Console.Write("Waiting for client connection...");
          pipeServer.WaitForConnection();
    
          Console.WriteLine("Client connected.");
          pipeServer.WriteByte(0xFF);
      }
    }


    So that's the C# part now you just need to connect to it from C++ your dll or w/e language you are using.

    Here's some code to chew make the best of it

    Code:
       
      HANDLE hPipe;
    
       if( ! WaitNamedPipe("\\\\.\\pipe\\testpipe", 25000) ){
          //Error waiting for pipe
          return 1;
       }
    
       hPipe = CreateFile("\\\\.\\pipe\\testpipe",
                           GENERIC_READ | GENERIC_WRITE,
                           0, NULL, OPEN_EXISTING, 0, NULL);
       
        if( hPipe == INVALID_HANDLE_VALUE )
        {
          //"Error: cannot open named pipe\n";
          return;
        }
    
       char  buf[1024];
       DWORD bread;
       for(int i=0;i<15;i++)
       {
          if( ReadFile(npipe, (void*)buf, 1023, &bread, NULL) )
          {
             buf[bread] = 0;
             cout<<"Received: '"<<buf<<"'"<<endl;
          }
    
          Sleep(750);
       }


    Hope this helps some here's some links too

    A little example using pipes with .Net 3.5 -
    .NET 3.5 Adds Named Pipes Support | Switch on the Code

    Some examples on how to do it with C++ -
    Advanced C++ Programming: Named pipes.


    Last edited by Nesox; 05-14-2009 at 04:47 PM.

  4. #4
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, just discovered that Unix supports named pipes too (in fact, it's even easier than in Windows). There goes my last justification for making my bot send data using sockets...
    Don't believe everything you think.

Similar Threads

  1. Named Pipes C++
    By drognir in forum WoW Memory Editing
    Replies: 3
    Last Post: 07-28-2009, 06:16 PM
  2. Named Pipes (slow?)
    By jockel in forum WoW Memory Editing
    Replies: 9
    Last Post: 06-11-2009, 09:07 PM
  3. [Exploit] Name Change
    By Ced in forum World of Warcraft Exploits
    Replies: 22
    Last Post: 09-02-2006, 03:00 AM
  4. Buying Colour in your name
    By Cush in forum Community Chat
    Replies: 8
    Last Post: 07-08-2006, 10:58 PM
  5. Name Change Exploit
    By Matt in forum World of Warcraft Exploits
    Replies: 3
    Last Post: 05-16-2006, 12:50 PM
All times are GMT -5. The time now is 03:02 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search