Skip to content

Instantly share code, notes, and snippets.

View lieanu's full-sized avatar
🎯
Focusing

Yue Liu lieanu

🎯
Focusing
View GitHub Profile
@lieanu
lieanu / ARMDebianUbuntu.md
Created May 16, 2018 11:41 — forked from Liryna/ARMDebianUbuntu.md
Emulating ARM on Debian/Ubuntu

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

@lieanu
lieanu / deployment-tool-ansible-puppet-chef-salt.md
Created April 3, 2018 01:16 — forked from jaceklaskowski/deployment-tool-ansible-puppet-chef-salt.md
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution

#!/usr/bin/env python2
from pwn import *
from z3 import *
fd = open("./Crackme_6.exe", "rb")
data = fd.read()[0x1400:0x1490]
d = []
#!/usr/bin/env python2
from pwn import *
from z3 import *
fd = open("./Crackme_6.exe", "rb")
data = fd.read()[0x1400:0x1490]
d = []
#!/usr/bin/env python2
from pwn import *
from z3 import *
flag = ""
fd = open("./Crackme_6.exe", "rb")
data = fd.read()[0x1400:0x1490]
import sys
import amoco
import amoco.system.raw
import amoco.system.core
def sym_exec_gadget_and_get_mapper(code, cpu):
'''Taken from https://github.com/0vercl0k/stuffz/blob/master/look_for_gadgets_with_equations.py'''
p = amoco.system.raw.RawExec(
amoco.system.core.DataIO(code), cpu
#!/usr/bin/env python2
import profile
from pwn import *
from pprint import pprint
def ttt4():
rop = ROP(ELF.from_assembly(
'''
pop eax; ret
import amoco
import amoco.system.raw
import amoco.system.core
def sym_exec_gadget_and_get_mapper(code, cpu):
'''Taken from https://github.com/0vercl0k/stuffz/blob/master/look_for_gadgets_with_equations.py'''
p = amoco.system.raw.RawExec(
amoco.system.core.DataIO(code), cpu
Running Sphinx v1.2.3
loading pickled environment... done
building [doctest]: targets for 2 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
running tests...
Document: rop/rop
-----------------
**********************************************************************
#!/usr/bin/env python2
import profile
from pwn import *
from pprint import pprint
def f1():
context.clear(arch='i386')
binary = ELF.from_assembly('add esp, 0x10; ret')