Skip to content

Instantly share code, notes, and snippets.

View jsyeo's full-sized avatar
💭
💍 𝔁𝓾𝓮🥶𝓱𝓾𝓪:female_fairy:𝓹𝓲𝓪𝓸😻𝓹𝓲𝓪𝓸👣

Jason Yeo jsyeo

💭
💍 𝔁𝓾𝓮🥶𝓱𝓾𝓪:female_fairy:𝓹𝓲𝓪𝓸😻𝓹𝓲𝓪𝓸👣
View GitHub Profile
@jsyeo
jsyeo / Dockerfile
Created February 1, 2018 13:24
Building spectrecoin wallet in a docker container
FROM ubuntu:artful
RUN apt update
RUN apt install -y build-essential libssl1.0-dev libevent-dev libseccomp-dev libcap-dev libboost-all-dev pkg-config git autoconf
RUN git clone --recursive https://github.com/XSPECOfficial/spectre
WORKDIR /spectre
RUN bash ./autogen.sh
RUN bash ./configure
RUN make -j2
{
"header": {
"Name": "MDErgo1",
"Layout": "Default",
"Base": "Blank",
"Version": "0.1",
"Author": "HaaTa (Jacob Alexander) 2015",
"KLL": "0.3c",
"Date": "2015-09-12",
"Generator": "KIICONF 0.2"
@jsyeo
jsyeo / Bridge.java
Created October 25, 2016 11:21
bridge method
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Visitor<Integer> intVisitor = new Visitor<Integer>() {
@Override
public Integer visitInt() {
System.out.println("LOL");
return null;
@jsyeo
jsyeo / hs_err_pid43902.log
Created September 23, 2016 07:54
SIGSEGV in JVM while running jruby
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fff9b562f49, pid=43902, tid=0x0000000000000b23
#
# JRE version: Java(TM) SE Runtime Environment (8.0_102-b14) (build 1.8.0_102-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.102-b14 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libsystem_platform.dylib+0x4f49] _platform_memmove$VARIANT$Haswell+0x29
#
@jsyeo
jsyeo / Main.java
Created September 3, 2015 00:57
Reflection
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class Reflection {
public static void vulnerableMethod() {
}
public void reflectVulnerableMethod() throws ClassNotFoundException, NoSuchMethodException, SecurityException,
#!/usr/bin/env python
## WARNING: This file is generated
#!/usr/bin/env python
"""Create a "virtual" Python installation
"""
__version__ = "13.1.2"
virtualenv_version = __version__ # legacy
import base64
@jsyeo
jsyeo / debug.java
Created January 4, 2016 15:12
debug print
private String debugString(CallChain cc) {
StringBuilder sb = new StringBuilder();
for (CallSite cs : cc) {
sb.append(cs.getCaller().getClassName());
sb.append(".");
sb.append(cs.getCaller().getMethodName());
sb.append("->");
}
sb.append(cc.last().getCallee().getMethodName());
@jsyeo
jsyeo / Main.java
Created January 4, 2016 07:23
Two Inner Classes
public class Main {
public static void main(String[] args) {
a().evaluate();
}
public static Expression a() {
final Expression e = SimpleExpression.builder();
return new Expression() {
@Override
@jsyeo
jsyeo / gettyp.ml
Created October 25, 2013 08:36
Get types in OCaml
let _ =
let open Typedtree in
let open Types in
let types_from_arrow ty =
let rec helper ty =
match ty.desc with
| Tlink ty -> helper ty
| Tarrow (_, t1, t2, _) -> helper t1 @ helper t2
| Tconstr (Path.Pident id, _, _) -> [Ident.name id]
| _ -> failwith "oops" in
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# web site for more information on licensing and terms of use.
#
# http://metasploit.com/
##
require 'shellwords'
class Metasploit3 < Msf::Exploit::Local