Skip to content

Instantly share code, notes, and snippets.

@aidnzz
aidnzz / hello_world.asm
Last active September 13, 2018 21:24
A tiny hello world in nasm
section .data
hello db "Hello, World!", 0xa
len equ $ - hello
section .code
global _start
_start:
mov dl, len
mov ecx, hello
# -*- coding: utf-8 -*-
from requests import Session
from enum import IntEnum, unique
from functools import wraps, lru_cache
class Basic:
def __init__(self, proxy=None):
self.session = Session()
@aidnzz
aidnzz / main.cpp
Created July 25, 2019 14:11
C++ remote shell.
#include <WS2tcpip.h>
#include <PathCch.h>
#pragma comment(lib, "Ws2_32.lib")
class Shell
{
public:
Shell(LPCSTR addr) noexcept
: m_addr{}
@aidnzz
aidnzz / dllmain.cpp
Last active August 6, 2025 10:44
Injecting raw input into roblox
#define NOMINMAX
#include <mutex>
#include <string_view>
#include <windows.h>
#include "minhook.h"
#pragma comment(lib, "libminhook-x86")
@aidnzz
aidnzz / Guessing_game_2.py
Last active March 12, 2022 17:33
PicoCTF Guessing Game 2 - Solution
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from io import BytesIO
from pwn import *
from typing import Union, BinaryIO
from itertools import chain, islice
def create_rop_chain(stack_cookie: int, stager: BinaryIO) -> bytes:
@aidnzz
aidnzz / tictactoe.py
Last active April 7, 2023 11:49
TicTacToe with d̵u̵m̵b̵ smart AI
# -*- coding: utf-8 -*-
__author__ = "aidnzz"
import pygame
import logging
import numpy as np
from io import StringIO
from abc import ABC, abstractmethod