Skip to content

Instantly share code, notes, and snippets.

View arrase's full-sized avatar
🏠
Working from home

Juan Ezquerro LLanes arrase

🏠
Working from home
View GitHub Profile
#!/bin/bash
modprobe libcomposite
cd /sys/kernel/config/usb_gadget/
mkdir -p g1
cd g1
echo 0x1d6b > idVendor # Linux Foundation
echo 0x0104 > idProduct # Multifunction Composite Gadget
echo 0x0100 > bcdDevice # v1.0.0
echo 0x0200 > bcdUSB # USB2
@arrase
arrase / masscan-banners.sh
Created March 23, 2017 15:23
Masscan with banners
#!/bin/bash
iptables -N LOGGING
iptables -A LOGGING -m limit --limit 200/min -j LOG --log-prefix "SHELLSHOCK: " --log-level 7
iptables -A LOGGING -j RETURN
iptables -A INPUT -s 10.0.0.0/8 -p icmp --icmp-type echo-request -j LOGGING
iptables -A INPUT -p tcp --dport 60000 -j DROP
masscan 10.0.0.0/8 -p80 --banners --source-port 60000
@arrase
arrase / bettercap_pi.sh
Created March 23, 2017 01:15
Install script for Bettercap in Raspbian
#!/bin/bash
aptitude install rbenv git vim
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
read -d '' String <<"EOF"
# rbenv
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
EOF
@arrase
arrase / install_ruby_rpi.sh
Created March 22, 2017 18:39 — forked from pedrocarrico/install_ruby_rpi.sh
A Bash script to install Ruby 2.2 on the Raspberry Pi (Raspbian).
#!/bin/bash
# -----------------------------------------------------------------------
# Installs Ruby 2.2 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
#
# Run from the web:
# bash <(curl -s raw_script_url_here)
# -----------------------------------------------------------------------
# Set up variables
@arrase
arrase / gist:26464766eeb578cd28b1bdf28008a905
Last active February 14, 2017 08:42
Raspberry Pi - Spoof mac address
Edit
/boot/cmdline.txt
and add:
smsc95xx.macaddr=xx:xx:xx:xx:xx:xx