Skip to content

Instantly share code, notes, and snippets.

View XayOn's full-sized avatar
🐍

David Francos XayOn

🐍
View GitHub Profile
@XayOn
XayOn / pylist.py
Created August 24, 2014 04:43
PyList
#!/usr/bin/python
import sys
import time
import os
import optparse
import pdb
import Tool80211
airmonitor = Tool80211.Airview(sys.argv[1])
airmonitor.start()
@XayOn
XayOn / vim_starter.sh
Created December 13, 2011 00:40
Vim Starter.
plugins=( "python.vim" "pydoc.vim" "The-NERD-tree" "minibufexpl.vim" "fugitive.vim" "Better-CSS-Syntax-for-Vim" "Syntastic" "Conque-Shell" "vimblog.vim" "mru.vim" "The-NERD-Commenter" "pythonhelper" "pythoncomplete" "taglist.vim" "TagHighlight" "snipMate" )
# Make a backup of all old stuff
[[ -e .vim ]] && mv .vim vim-backup; [[ -e .vimrc ]] && mv .vimrc vimrc-backup
# Get pathogen.
wget --no-check-certificate -nd -P ~/.vim/autoload https://github.com/vim-scripts/pathogen.vim/raw/master/plugin/pathogen.vim
# Download local-vimrc plugin (not available in an easy-to-get source
wget http://lh-vim.googlecode.com/svn/misc/trunk/plugin/local_vimrc.vim -nd -P ~/.vim/bundle/local_vimrc/plugin/
@XayOn
XayOn / .vimrc
Created December 13, 2011 11:48
My new Vimrc made from scratch
call pathogen#infect()
" Clever Tab from VIM Help
function! CleverTab()
if strpart(getline("."), 0, col('.')-1) =~ '^\s*$'
return "\<TAB>"
else
return "\<C-N>"
endfunction
@XayOn
XayOn / gist:1705151
Created January 30, 2012 16:04
torrent_shorting_hat
#!/bin/bash
id=$1; name=$2; path=$3; source ~/.torrent-aliases
type=$(file -b --mime-type $path |cut -d/ -f1)
for dest_dir in ${!regexes[@]}; do mkdir -p ~/Media/$type/$dest_dir; [[ $path =~ ${regexes[$dest_dir]} ]] && { mv $path ~/Media/$type/$dest_dir/; exit; }; done
mv $path ~/Media/$type/$dest_dir # Fallback
@XayOn
XayOn / Subversion-with-everything.sh
Created January 31, 2012 13:58
Install aircrack-ng from subversion with everything
apt-get install subversion build-essential libpcap0.8 libssl1.0.0 zlib1g wireless-tools xterm python graphviz macchanger dsniff hydra zenity pyrit sslstrip wkhtmltopdf john libpcap0.8-dev libssl-dev libsqlite3-dev libnl-dev
svn co http://trac.aircrack-ng.org/trunk/
make -C trunk unstable=true ext_scripts=true sqlite=true
make -C trunk install unstable=true ext_scripts=true sqlite=true
@XayOn
XayOn / gist:1716957
Created February 1, 2012 13:31
Degeneratedlabs aircrack-ng package creation
# First, we download lastest trunk and create an orig tar.gz package
svn co http://trac.aircrack-ng.org/svn/trunk aircrack-ng-1.1
cd aircrack-ng-1.1
rm -rf `find . -name .svn` && tar czvf ../aircrack-ng_1.1.orig.tar.gz *; &>/dev/null
# Clone the debian/ dir
git clone http://github.com/XayOn/Aircrack-ngDebian debian &>/dev/null
# vim debian/changelog # Do it before, trought git interface!! =)
# Build and upload
git clone git@repo.foobar.com/FooBar
cd FooBar
git remote add github git@github.com:XayOn/FooBar
# Remember to replace XayOn for your username and FooBar for your github repo name
@XayOn
XayOn / gist:2110670
Created March 19, 2012 12:43
Airoscript-ng debug
# This file sources all the stuff sourced in airoscript
_source(){ for cfile in $@; do if [ -f $cfile ] && [ -O $cfile ]; then source $cfile; else if [ "$debug" == 1 ]; then echo "Could not load $cfile"; sleep 0.2 ;fi; fi; done; }
_source "./airoscript-ng.conf.devel ~/.airoscript-ng/airoscript-ng.conf /etc/airoscript-ng.conf /usr/local/etc/airoscript-ng.conf"
_source "./airoscript-ng_advanced.conf.devel ~/.airoscript-ng_advanced/airoscript-ng_advanced.conf /etc/airoscript-ng_advanced.conf /usr/local/etc/airoscript-ng_advanced.conf"
_source "$path/_internal $path/menu $path/interface"
_source "$path/themes/$theme" || default_theme
@XayOn
XayOn / lighttpd-proxy.conf
Created July 24, 2012 00:50
Degeneratedlabs proxy lighttpd configuration
$HTTP["host"] !~ "(^|wiki\.|www\.)degeneratedlabs.net$" {
proxy.server = (
"" => (
(
"host" => "192.168.1.72",
"port" => 80
),
)
)
@XayOn
XayOn / conf-enabled_per_user.pl
Created July 24, 2012 01:01
Degeneratedlabs per-user confis for lighttpd
#!/usr/bin/perl -wl
use strict;
use File::Glob ':glob';
my $confdir = shift || "/etc/lighttpd/conf-enabled/";
my $enabled = "users/*.conf";
chdir($confdir);
my @files = bsd_glob($enabled);