Skip to content

Instantly share code, notes, and snippets.

View Itay2805's full-sized avatar
๐Ÿ…
Tomato

Itay Almog Itay2805

๐Ÿ…
Tomato
View GitHub Profile
@Itay2805
Itay2805 / cwmp.py
Created August 18, 2023 10:27
A CWMP server to traverse and dump properties of a client
import dataclasses
import logging
import socket
import threading
import urllib.request
from typing import List
import inflection as inflection
from datetime import datetime
import coloredlogs
@Itay2805
Itay2805 / mangler.py
Last active August 18, 2023 10:28
Visual C++ name manglerfor fun and profit
from curses.ascii import isalnum
class CppNameMangler:
KNOWN_TYPES = {
# Basic types
'signed char': 'A',
'char': 'D',
'unsigned char': 'E',
'short': 'F',
#include <string.h>
#include <cinttypes>
#include <cmath>
#define SECTOR_SIZE (512)
#define DATA_SIZE (508)
char disk[SECTOR_SIZE * 50];
enum class INodeType : uint32_t {
class Main {
str : String <- "This is a test\n";
test : Test <- new Test;
main() : Object {
test.method();
print(str);
abort();
};