Skip to content

Instantly share code, notes, and snippets.

@emboss
emboss / analysis.rb
Last active August 29, 2015 14:00
castealer.rb analysis
# Original castealer.rb with analysis
#####################################################################################
require 'rubygems' #redundant
require 'openssl'
require 'digest/md5' #redundant
key = OpenSSL::PKey::RSA.new(2048)
cipher = OpenSSL::Cipher::AES.new(256, :CBC) #redundant
ctx = OpenSSL::SSL::SSLContext.new #redundant
==> openssl-build.bash <==
#!/bin/bash
set -e -x
export CFLAG="-g"
export CFLAGS="-g"
# Debugging Target
# debug-linux-elf-noefence
@emboss
emboss / gist:506f0976c7a46068b35a
Created January 29, 2015 09:56
Kill thread that spawned a process
t = Thread.new do
pid = Process.fork do
loop do
puts "Hi"
sleep 0.5
end
end
puts "Use 'kill -9 #{pid}' to kill me!"
Process.wait pid
end