Skip to content

Instantly share code, notes, and snippets.

View meowmeowxw's full-sized avatar
🤔
Always thinking

Giovanni Di Santi meowmeowxw

🤔
Always thinking
View GitHub Profile
@meowmeowxw
meowmeowxw / README.md
Last active March 3, 2024 20:00
GCC CTF 2024 | Array programming rocks

Array Programming Rocks

The challenge is written in https://www.uiua.org/, a fun stack based, array-oriented programming language. The source code is:

F ← -@\0 &sc
N ← ⧻F
[⍥(⍉↻1⍉.)] N . F
@meowmeowxw
meowmeowxw / sanity_check.ipynb
Last active January 19, 2024 14:33
Sanity Check with GIG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@meowmeowxw
meowmeowxw / vaddress-to-mapping.py
Last active October 30, 2023 19:39
gdb-vaddress-to-mapping
import gdb
import re
# usage:
# (gdb) vaddr-to-mapping 0x7ffff7e15100
class VaddressToMapping(gdb.Command):
def __init__ (self):
super(VaddressToMapping, self).__init__("vaddr-to-mapping", gdb.COMMAND_USER)
@meowmeowxw
meowmeowxw / explorer.js
Last active November 28, 2022 20:57
Nodejs simple ast parser
const {Parser} = require("acorn")
const recast = require("recast")
const fs = require("fs");
const ast = Parser.parse(fs.readFileSync("./request.js").toString(), Parser.Options = {
ecmaVersion: "latest"
});
const functionNames = [];
const dependencies = [];
@meowmeowxw
meowmeowxw / find_images_in_subdirectories.sh
Created July 27, 2022 17:34
Find images in subdirectories
#!/bin/bash
mkdir images
for f in $(find . -type f); do file $f | grep image; [ $? -eq 0 ] && cp $f ./images/$(date '+%F' -d "@$( stat -c '%Y' "$f";)")_$(basename $f);done
@meowmeowxw
meowmeowxw / fill.ino
Last active October 29, 2020 19:55
Fill the heap of arduino
class Counter {
public:
int count;
Counter(int value){
count = value;
}
~Counter(){
@meowmeowxw
meowmeowxw / dns-requester.py
Created March 10, 2020 17:23
dig without all options
#!/usr/bin/env python3
from scapy.all import *
import sys
if len(sys.argv) > 4:
sys.stderr.out("error: ./dns-request.py query nameserver-ip [-a]")
sender = IP()/UDP()/DNS(qd=DNSQR(qname=sys.argv[1]))
print(sys.argv)
if len(sys.argv) > 3:
@meowmeowxw
meowmeowxw / vimrc
Last active January 9, 2020 13:24
Minimal vim
"Created by @meowmeowxw
"Vim behaviour
set background=dark
colorscheme evening
"set termguicolors
set hls!
set laststatus=2
set tabstop=4
set softtabstop=4
set shiftwidth=4