Skip to content

Instantly share code, notes, and snippets.

View zihadmahiuddin's full-sized avatar
🏠
Working from home

Zihad zihadmahiuddin

🏠
Working from home
View GitHub Profile
@zihadmahiuddin
zihadmahiuddin / Event.kt
Created June 23, 2021 15:04
Simple Event Emitter for Kotlin
package dev.zihad.util
interface Event
@zihadmahiuddin
zihadmahiuddin / AUTO_DEPLOY.md
Last active May 27, 2024 06:21
GitHub Auto Deploy for NodeJS apps using Webhooks
@zihadmahiuddin
zihadmahiuddin / networking.js
Last active December 8, 2023 20:46
A Frida script for native networking functions (getaddrinfo, connect, send and recv)
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'])
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;
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
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'))