Skip to content

Instantly share code, notes, and snippets.

View Morsmalleo's full-sized avatar

Morsmalleo

View GitHub Profile
@Morsmalleo
Morsmalleo / Create a seperate `smali_classesX` directory for android payload files.md
Last active August 10, 2023 16:09
A function to create a `smali_classesX` folder (where `X` corresponds to the folders numbering) inside a decompiled APK directory.

Smali Payload Directory Creator

This is a function I created called the createPayloadDirectory function. This function determines the appropriate name for a directory where payload files will be placed within an Android APK. It does so by analyzing the existing directories in the decompiled APK and creating a new directory name based on the naming

Full socket.io client and server example

Last updated: 2021-02-21, tested with socket.io v3.1.1

This is the simplest implementation you will find for a client/server WebSockets architecture using socket.io.

To see a full explanation, read my answer on SO here: https://stackoverflow.com/a/24232050/778272.

If you're looking for examples using frameworks, check these links: