This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run the last command as root | |
sudo !! | |
# Serve current directory tree at http://$HOSTNAME:8000/ | |
python -m SimpleHTTPServer | |
# Save a file you edited in vim without the needed permissions | |
:w !sudo tee % | |
# change to the previous working directory | |
cd - | |
# Runs previous command but replacing | |
^foo^bar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use Cwd qw(); | |
my $path = Cwd::cwd(); | |
if ( $path !~ m/metasploit/ ) { | |
print("err: Your current working directory must be metasploit's.\n"); | |
exit(1); | |
} | |
print("autopreter by oxagast\n"); | |
if ( $#ARGV < 1 ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description= Guest VM %I | |
After=network.target vboxdrv.service | |
Before=runlevel2.target shutdown.target | |
[Service] | |
User=marshall | |
Group=vboxusers | |
Type=forking | |
TimeoutSec=5min |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require "rss" | |
urlbase = "https://oxasploits.com" | |
rss = RSS::Maker.make("atom") do |maker| | |
maker.channel.author = "oxagast" | |
maker.channel.updated = Time.now.to_s | |
maker.channel.about = urlbase + "/exploits/" | |
maker.channel.title = "The Oxasploits Exploit Feed" | |
Dir.glob('sploits/*.md') do |md_filename| | |
maker.items.new_item do |item| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creator: oxagast | |
# | |
# usage: | |
# ansible-playbook -i inventory.yml conn_chk.yml --extra-vars "hostname=google.com" | |
# or.. | |
# ansible-playbook -i inventory.yml conn_chk.yml | |
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# ./makeitrain.sh bitcoin-qt.crashdump.core | |
# __ _ _ __ ___ __ ____ ____ | |
# / ( \/ )/ _\ / __)/ _\/ ___(_ ) | |
# ( O ) (/ ( (_ / \___ \ )( | |
# \__(_/\_\_/\_/\___\_/\_(____/(__) | |
# | |
# Donations: | |
# btc: 34fDhMUkvGVr1s2jQvhwmBfw1xqjstrLed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function theme_precmd { | |
HOSTLEN=$(hostname -f|wc -c); | |
FREEM=$(free -h | tail -n 2 | head -n 1| awk '{print $4}' | cut -d "G" -f 1); | |
FREEMSP=$( echo $FREEM | wc -c); | |
FREEMS=$(( $FREESP + 5)); | |
FREEH=$(df -h | grep /home$ | awk '{print $5}'); | |
FREEHSP=$(echo $FREEH | wc -c); | |
local TERMWIDTH=$(( COLUMNS - ${ZLE_RPROMPT_INDENT}+$HOSTLEN-$FREEMS-$FREEHS+21 )) | |
PR_FILLBAR="" | |
PR_PWDLEN="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zsh function alias that helps you remember where you left off working in a directory. | |
# useage: leftoff /etc | |
leftoff() { e=$(pwd);cd $1; IFS=$'\n' d=($(ls -t -1 $(pwd) | head -n 5));for a in ${d}; do c=$(ls -t ${a} | head -n 1); echo "${a}/${c}"; done;cd ${e} } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Image size reducing script | |
# | |
# oxagast <=> Mark Stealer Whitehall | |
trap cleanup INT | |
function cleanup() | |
{ | |
echo "Cleaning up..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# pujack | |
# a Jekyll static site pusher | |
# | |
# Designed by Marshall Whittaker / oxagast | |
# marshall@oxasploits.com | |
procs=4 | |
clvl=32 |
NewerOlder