Skip to content

Instantly share code, notes, and snippets.

View ocean1's full-sized avatar
🐶
I may be slow to respond.

_ocean ocean1

🐶
I may be slow to respond.
View GitHub Profile
@ocean1
ocean1 / noise.sh
Created April 27, 2019 13:18 — forked from rsvp/noise.sh
noise : relaxing ambient Brown noise generator (cf. white noise) | Linux bash script using sox | CogSci notes
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2019-01-02
#
# _______________| noise : ambient Brown noise generator (cf. white noise).
#
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave]
# ^minutes can be any positive integer.
# Command "noise 1" will display peak-level meter.
#
# Dependencies: play (from sox package)
@ocean1
ocean1 / rename_functions.py
Last active September 13, 2018 17:37
rename symbols in IDA using nm
# rename functions loading addresses using nm
import idaapi
import idc
from subprocess import Popen, PIPE
def make_func(addr):
idc.MakeCode(addr)
idc.MakeFunction(addr)
@ocean1
ocean1 / mixer.clr
Created November 19, 2016 02:02
dark theme for IDA
[DISASM]
000000 //
aaaaaa //Default color
ffffff //Regular comment
7e6082 //Repeatable comment
666666 //Automatic comment
ffffff //Instruction
b9ebeb //Dummy Data Name
b9ebeb //Regular Data Name
bbecff //Demangled Name
@ocean1
ocean1 / i3.conf
Created October 1, 2015 15:35 — forked from diyan/i3.conf
i3 tiling window manager configuration
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@ocean1
ocean1 / rop.py
Created September 5, 2016 11:38 — forked from st4rk/rop.py
'''
ROP Analyze
Written by St4rk
The code is a total mess and I don't know python (it's one of many reasons
that I decided to use python here, to learn)
Feel free to modify and do whatever you want
'''
# imports
@ocean1
ocean1 / thing2.exe.rb
Created May 21, 2016 11:15 — forked from dwendt/thing2.exe.rb
thing2.exe - legitbs defcon quals 2015 - 4pt pwnable
#!/usr/bin/env ruby
require 'socket'
#require 'hexdump'
$dbg = false
$sock = TCPSocket.new("localhost", 4141)
def recv_until(str)
data = ""
while tmp = $sock.recv(1024) and not tmp.empty?
from pwn import *
import re
context.update(arch='arm', os='linux', endian='little')
thumbjmp = asm("""
add r6, pc, #1
bx r6""")
@ocean1
ocean1 / brightness.py
Created October 1, 2015 20:52 — forked from rbrito/brightness.py
Script to control monitor brightness
#!/usr/bin/env python
"""
Python script to essentially perform the same as:
gdbus call \
--session \
--dest org.gnome.SettingsDaemon \
--object-path /org/gnome/SettingsDaemon/Power \
--method org.gnome.SettingsDaemon.Power.Screen.SetPercentage 75

Keybase proof

I hereby claim:

  • I am ocean1 on github.
  • I am oce4n (https://keybase.io/oce4n) on keybase.
  • I have a public key whose fingerprint is AD2F 69FC 908C 05C4 EE1C A1F7 5B7C EDEB A937 0413

To claim this, I am signing this object:

# patching the vulnerable binary just requires to reduce the size of the read up to 0x200 :)
from pwn import *
context(arch='i386', os='linux', log_level="info")
DEBUG = False
HOST = "cybergrandsandbox_e722a7ec2ad46b9fb8472db37cb95713.quals.shallweplayaga.me"
PORT = 4347