Examples of incrementPosition()


Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

                if ((sec_flags & SEC_LICENCE_NEG) != 0) {
                    licence.process(buffer);
                    continue;
                }
                if ((sec_flags & SEC_ENCRYPT) != 0) {
                    buffer.incrementPosition(8); //signature
                    byte[] data = new byte[buffer.size() - buffer.getPosition()];
                    buffer.copyToByteArray(data, 0, buffer.getPosition(), data.length);
                    byte[] packet = this.decrypt(data);

                    buffer.copyFromByteArray(packet, 0, buffer.getPosition(), packet.length);
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        data.setLittleEndian16(length);

        data.setLittleEndian16(1);
        data.setLittleEndian16(LICENCE_TOKEN_SIZE);
        data.copyFromByteArray(token, 0, data.getPosition(), LICENCE_TOKEN_SIZE);
        data.incrementPosition(LICENCE_TOKEN_SIZE);

        data.setLittleEndian16(1);
        data.setLittleEndian16(LICENCE_HWID_SIZE);
        data.copyFromByteArray(crypt_hwid, 0, data.getPosition(), LICENCE_HWID_SIZE);
        data.incrementPosition(LICENCE_HWID_SIZE);
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        data.incrementPosition(LICENCE_TOKEN_SIZE);

        data.setLittleEndian16(1);
        data.setLittleEndian16(LICENCE_HWID_SIZE);
        data.copyFromByteArray(crypt_hwid, 0, data.getPosition(), LICENCE_HWID_SIZE);
        data.incrementPosition(LICENCE_HWID_SIZE);

        data.copyFromByteArray(signature, 0, data.getPosition(), LICENCE_SIGNATURE_SIZE);
        data.incrementPosition(LICENCE_SIGNATURE_SIZE);
        data.markEnd();
        secure.send(data, sec_flags);
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        data.setLittleEndian16(LICENCE_HWID_SIZE);
        data.copyFromByteArray(crypt_hwid, 0, data.getPosition(), LICENCE_HWID_SIZE);
        data.incrementPosition(LICENCE_HWID_SIZE);

        data.copyFromByteArray(signature, 0, data.getPosition(), LICENCE_SIGNATURE_SIZE);
        data.incrementPosition(LICENCE_SIGNATURE_SIZE);
        data.markEnd();
        secure.send(data, sec_flags);
    }

    /**
 
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        s.setLittleEndian32(1);
        s.setLittleEndian16(0);
        s.setLittleEndian16(0x0201);

        s.copyFromByteArray(client_random, 0, s.getPosition(), Secure.SEC_RANDOM_SIZE);
        s.incrementPosition(Secure.SEC_RANDOM_SIZE);
        s.setLittleEndian16(0);
        s.setLittleEndian16((Secure.SEC_MODULUS_SIZE + Secure.SEC_PADDING_SIZE));
        s.copyFromByteArray(rsa_data, 0, s.getPosition(), Secure.SEC_MODULUS_SIZE);
        s.incrementPosition(Secure.SEC_MODULUS_SIZE);
        s.incrementPosition(Secure.SEC_PADDING_SIZE);
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

     * @param length Desired length of PDU
     * @return Packet configured as ISO PDU, ready to write at higher level
     */
    public RdpPackage init(int length) {
        RdpPackage data = new RdpPackage(length + 7);//getMemory(length+7);
        data.incrementPosition(7);
        data.setStart(data.getPosition());
        return data;
    }

    /*
 
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

            if (s == null) {
                return null;
            }
            version = s.get8();
            if (version == 3) {
                s.incrementPosition(1); // pad
                length = s.getBigEndian16();
            } else {
                length = s.get8();
                if ((length & 0x80) != 0) {
                    length &= ~0x80;
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        }
        s.get8();
        type[0] = s.get8();

        if (type[0] == DATA_TRANSFER) {
            s.incrementPosition(1); // eot
            return s;
        }

        s.incrementPosition(5); // dst_ref, src_ref, class
        return s;
View Full Code Here

Examples of com.lixia.rdp.Package.RdpPackage.incrementPosition()

        if (type[0] == DATA_TRANSFER) {
            s.incrementPosition(1); // eot
            return s;
        }

        s.incrementPosition(5); // dst_ref, src_ref, class
        return s;
    }

    /**
     * Disconnect from an RDP session, closing all sockets
View Full Code Here

Examples of net.sf.rej.java.instruction.DecompilationContext.incrementPosition()

          }

          list.add(cd);
          mdr.addCodeRow(cd);

          dc.incrementPosition(instruction);
        }

      }

      list.add(new MethodDefRow(cf, method, false, true));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.