Skip to content

Instantly share code, notes, and snippets.

View oogali's full-sized avatar

Omachonu Ogali oogali

  • Ordinary Stack
  • Princeton, NJ
  • 05:22 (UTC -04:00)
View GitHub Profile
@oogali
oogali / metasploit-install-on-centos.sh
Last active September 5, 2021 23:27
Install Ruby 2.1.5 via rbenv, then Metasploit on CentOS
# install build deps
sudo yum install gcc gcc-c++ make expat-devel gettext-devel libcurl-devel \
libffi-devel libxml2-devel libxslt-devel libyaml-devel postgresql-server \
postgresql-devel readline-devel sqlite-devel openssl-devel ruby-devel \
rubygems autoconf automake bison libtool libpcap-devel
# install rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
@oogali
oogali / install-gnuradio-on-yosemite.sh
Last active August 29, 2015 14:09
Installing GNU Radio on Yosemite (in progress)
sudo pip install virtualenv
brew install boost cppunit fftw gsl libusb orc qt qwt sdl sip swig zeromq wxpython
( cd /usr/local/include && curl -LO https://github.com/zeromq/cppzmq/raw/master/zmq.hpp)
curl -L http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.2/PyQt-mac-gpl-4.11.2.tar.gz | tar zxvf -
cd PyQt-mac-gpl-4.11.2/
python configure-ng.py
make -j2
@oogali
oogali / visa-phishing.txt
Created October 18, 2014 21:49
Telephone phishing attempt
I just received a call from an automated system with caller ID of (949) 930-2782 purporting to be VISA security.
The automated message stated that my card has been restricted from making online payments, and I should
press 1 to be connected with the security department. VISA doesn't issue credit cards directly, so this
made me suspect it was a phishing attempt.
I pressed 1, and was prompted to continue with the automated activation process for my card. I pressed
1 to continue again.
The system then started "glitching", as the voice prompts started taking longer and longer to play out,
@oogali
oogali / 0-interactive.sh
Last active January 19, 2017 23:22
The quick and lazy way to learn Python basics (assuming you have background in another similar language)
# Python is present by default on all Mac OS X systems
# It's typically present on Linux and BSD systems as well, but you can always install it via packages/ports
# Python 2.4, 2.5, 2.6, and 2.7 will work, but avoid Python 3.x for the mean time
# (but you really want Python 2.6 and above once you really get cranking)
# The interactive Python Interpreter (python) is what you'll be using for these examples
# Let's get started
oogali@marvin$ python
@oogali
oogali / 0-interactive.sh
Last active January 19, 2017 23:22
The quick and lazy way to learn Ruby basics (assuming you have background in another similar language)
# Ruby is present by default on all Mac OS X systems
# It may or may not be default on Linux/BSD systems, but you can always install it via packages/ports
# Ruby 1.8, 1.9, or 2.0 will work, so don't worry about having the right version
# The Interactive Ruby Interpreter (irb) is what you'll be using for these examples
# Let's get started
oogali@marvin$ irb
irb(main):001:0>
@oogali
oogali / poc.py
Last active August 29, 2015 14:04
Yamaha HTTP Control PoC
#!/usr/bin/env python
import sys
import time
import curses
import signal
import requests
from lxml import etree
@oogali
oogali / gist:c3bd6534abe98b912421
Created July 23, 2014 17:16
Ye olde basic Python script
import sys
def main(argv=None):
if argv is None:
argv = sys.argv
# do some stuff
return 0
@oogali
oogali / git-flow-draft.md
Last active August 29, 2015 14:03
Draft of Git-Flow instructions

How I Git-Flow

This document assumes you've read Vincent Driessen's document titled, "A successful Git branching model", and you are familar with the following concepts:

  • Git (branching, merging, pushing)
  • Git-Flow

Branches

  • Production (always deployable): prod
@oogali
oogali / is-my-heart-bleeding.sh
Created April 8, 2014 15:55
Quick and dirty Heartbleed test from CLI
echo | openssl s_client -connect some.site.com:443 -tlsextdebug 2>&1 | grep '"heartbeat"'
@oogali
oogali / 10-year-yields.ipynb
Last active January 4, 2016 12:49
10-year treasury yields
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.