Skip to content

Instantly share code, notes, and snippets.

View rshipp's full-sized avatar
🍉
drop ICE. defund police.

Ryan Shipp rshipp

🍉
drop ICE. defund police.
View GitHub Profile
@rshipp
rshipp / wwwextract.py
Created March 4, 2019 16:05
extract iocs from urls
#!/usr/bin/env python2
# dependencies: pip install requests bs4 iocextract
# usage: python wwwextract.py URL
import sys
import requests
import bs4
import iocextract
response = requests.get(sys.argv[1])
import sys
import time
import pprint
from sandboxapi import vmray
# connect to the sandbox
sandbox = vmray.VMRayAPI('MY_KEY')
# verify connectivity
@rshipp
rshipp / hbuild.sh
Created May 14, 2016 21:53
Haskell helper
#!/bin/bash
name=$1
version=$(wget http://hackage.haskell.org/package/$name -qO- | grep Change\ log | sed 's,^.*<strong>\([0-9\.]*\)</strong></td></tr><tr><th>Change.*$,\1,')
echo Building $name-$version
cp -R haskell-conduit haskell-$name
cd haskell-$name
sed -i s/conduit/$name/g PKGBUILD
@rshipp
rshipp / Dockerfile
Created December 13, 2015 17:30
insecure-tomcat-ssh
FROM tomcat
RUN apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd
RUN echo 'root:password' | chpasswd
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
@rshipp
rshipp / notes.sh
Created September 25, 2015 11:44
take daily encrypted notes
#!/bin/bash
# take notes
IDENT= # put your gpg key id (email) here
NOTES_DIR=~/.n
TMP_DIR=/dev/shm/.n
GPG=gpg
mkdir -p "$NOTES_DIR" || exit $?
@rshipp
rshipp / forvo_scraper.sh
Last active March 23, 2023 12:17
Scrape the highest rated MP3 from Forvo.com for a given word
#!/bin/bash
# Forvo scraper
language=${FORVO_LANG:-fr}
BASEURL="http://forvo.com/search/"
AUDIOURL="http://audio.forvo.com/mp3/"
word=$1
if [[ -z $word ]]; then
echo "usage: "
echo "FORVO_LANG=languagecode ./forvo_scraper.sh myword"
@rshipp
rshipp / bettysh
Created April 8, 2015 02:18
An interactive shell for Betty - https://github.com/pickhardt/betty
#!/bin/bash
# interactive betty shell
BETTYSH_PS1=${BETTYSH_PS1:-betty$ }
install_betty() {
echo "==> Installing betty..."
git clone https://github.com/pickhardt/betty ~/.betty || return $?
echo "==> Done."
}
@rshipp
rshipp / gradehelper-04
Last active January 22, 2016 05:57
Grading helper script for CSCI446 Unit4.
#!/bin/bash
# unit4 autograder helper script
# usage:
# ./gradehelper-u04 username
[[ -z $1 ]] && exit 1
cd $1
main() {
# Link and update the git repo
@rshipp
rshipp / gradehelper-u03
Last active January 22, 2016 05:57
Grading helper script for CSCI446 Unit3.
#!/bin/bash
# unit3 autograder helper script
# usage:
# ./gradehelper-u03 username
[[ -z $1 ]] && exit 1
cd $1
main() {
# Clone the git repo

Keybase proof

I hereby claim:

  • I am rshipp on github.
  • I am rshipp (https://keybase.io/rshipp) on keybase.
  • I have a public key whose fingerprint is C1E4 46BF AC0D 6882 8EDD 98D1 9985 DAD9 D417 608D

To claim this, I am signing this object: