Skip to content

Instantly share code, notes, and snippets.

View filippovitale's full-sized avatar

Filippo Vitale filippovitale

View GitHub Profile
@filippovitale
filippovitale / extract_lucify_rsrcs.py
Last active August 20, 2020 13:29 — forked from 0xd0cf11e/extract_lucify_rsrcs.py
Scripts for extracting payloads from Lucifer's resources.
import pefile
import argparse
def decrypt_one_byte(b):
key = 0x58 # The xor key hasn’t changed
xor = (b ^ key) & 0xff
return (xor + key) & 0xff
@filippovitale
filippovitale / Snake.scala
Created February 27, 2017 14:14 — forked from densh/Snake.scala
Snake game in 200 lines of Scala Native and SDL2 as demoed during Scala Matsuri 2017
import scalanative.native._
import SDL._
import SDLExtra._
@extern
@link("SDL2")
object SDL {
type Window = CStruct0
type Renderer = CStruct0
@filippovitale
filippovitale / java-signals-test.sh
Created January 3, 2017 16:00 — forked from nicoulaj/java-signals-test.sh
What signals can your JRE handle ?
#!/bin/bash
# Get temp dir
tmpdir=$(mktemp -d)
# Generate test
cat > ${tmpdir}/ListenToSignal.java <<EOF
import sun.misc.Signal;
import sun.misc.SignalHandler;
public class ListenToSignal {
@filippovitale
filippovitale / folds.scala
Last active August 29, 2015 14:26 — forked from tonymorris/folds.scala
Fold exercises in Scala
trait MyOption[A] {
def fold[B](n: => B, s: A => B): B
// Define the usual Option API.
//
// * Constructors (on the object)
// some
// none
// * methods
// map
  1. General Background and Overview