This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.zihad.util | |
interface Event |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("Loading script..."); | |
var getaddrinfoPtr = Module.findExportByName(null, 'getaddrinfo') | |
var connectPtr = Module.findExportByName(null, 'connect') | |
var sendPtr = Module.findExportByName(null, 'send') | |
var recvPtr = Module.findExportByName(null, 'recv') | |
var getaddrinfoFunction = new NativeFunction(getaddrinfoPtr, 'int', ['pointer', 'pointer', 'pointer', 'pointer']) | |
var connectFunction = new NativeFunction(connectPtr, 'int', ['int', 'pointer', 'int']) | |
var sendFunction = new NativeFunction(sendPtr, 'int', ['int', 'pointer', 'int', 'int']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void IncrementNonce(this byte[] nonce, int timesToIncrease = 2) | |
{ | |
for (int j = 0; j < timesToIncrease; j++) | |
{ | |
ushort c = 1; | |
for (ushort i = 0; i < nonce.Length; i++) | |
{ | |
c += nonce[i]; | |
nonce[i] = (byte)c; | |
c >>= 8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int __fastcall sub_1AB46A(_DWORD *a1, unsigned int a2) | |
{ | |
unsigned int v2; // r4 | |
_DWORD *v3; // r5 | |
int result; // r0 | |
int v5; // r2 | |
int v6; // r1 | |
int v7; // r0 | |
int v8; // r0 | |
int v9; // r0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const net = require('net') | |
const Processor = require('./Packets/processor') | |
const Session = require('./session') | |
const ByteBuffer = require('bytebuffer') | |
const server = new net.Server() | |
const PacketReceiver = require('./Utils/packetreceiver') | |
server.listen(9339) | |
let sessions = [] | |
let crypto = new (require('./Packets/crypto')) |