Results 1 to 3 of 3
  1. #1
    Arsenius's Avatar
    Join Date
    Oct 2016
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    1
    My Mood
    Relaxed

    NodeJS Packet Function

    Thought I would release this to help you out

    Since NodeJS is so popular and cross platform thought you would need it you can use this to decrypt and send the packets

    Code:
    function EncryptDecrypt(data) {
        let numArray = Buffer.from([ 250, 158, 179]);
        for (var i = 0; i < data.length; i++) {
            if (data[i] != numArray[i % numArray.length]) {
                data[i] = (data[i] ^ numArray[i % numArray.length]);
            }
        }
        return data;
    }
    
    function SendMessage(message, type=255, cmd=255){
        message = Buffer.from(message);
        let length = message.length;
        let bArray = Buffer.alloc(length + 3);
        bArray[0] = type;
        bArray[1] = cmd;
        message.copy(bArray, 2);
        EncryptDecrypt(bArray);
        bArray[length + 2] = 0;
        return bArray;
    }

  2. The Following User Says Thank You to Arsenius For This Useful Post:

    [MPGH]JamesBond (3 Weeks Ago)

  3. #2
    aleve123's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    Jakarta
    Posts
    51
    Reputation
    10
    Thanks
    7
    My Mood
    Relaxed
    I have no idea what this is

  4. #3
    cjmaravilla's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Location
    Somewhere 420
    Posts
    64
    Reputation
    10
    Thanks
    2
    My Mood
    Mellow
    How to use this code?

Similar Threads

  1. packet editing
    By terence in forum Hack Requests
    Replies: 1
    Last Post: 09-23-2007, 07:51 AM
  2. Packets & Visual Basic
    By BadBob in forum Hack Requests
    Replies: 5
    Last Post: 07-20-2006, 09:28 PM
  3. Flying / Jump Packet
    By Bull3t in forum WarRock - International Hacks
    Replies: 14
    Last Post: 01-16-2006, 06:32 PM
  4. warrock wpe packet info
    By kvmn8 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 01-04-2006, 08:36 PM
  5. Sugestion--Post Saved packets (WR)
    By wardo1926 in forum General Game Hacking
    Replies: 12
    Last Post: 01-03-2006, 10:41 AM