Scripts written by Steve Stonebraker for Administration & Simluations
==============
Will add the ${PATH} of the current shell to the crontab
NTP Reflection and Amplification attack simlator
Requires:
- Net::RawIP
- System capable of sending raw packets
Generates a lambdaguard report for all profiles listed in ~/.aws/config
Displays currently installed perl modules
This has only been tested on an Ubuntu precise (12.04) server. This script will:
- Download the source code for Modsecurity version 2.7.4
- Ensure all required prerequisites are installed
- Install ModSecurity to /opt/modsecurity
- Create the recommended folder structure (from the ModSecurity book) under /opt/modsecurity
- Enable the relevant Apache Modules
Install the jwall audit console for modsecurity on an Ubuntu 12.04 machine
Converts a text file with a list of CIDR ip blocks in to a saved hashset.
Sample lists of CIDR blocks available for US, Great Britain, Spain, Italy, and France
Performs the following:
- Download your compressed rule hashes from an s3 bucket
- Decompress
- Install ipset
- Add rules
- Modify iptables to use the new rules
Easily change your hostname on any debian based distribution
- install_aws_elasticsearch_cluster_node.sh
- upgrade_logstash_to_1.1.13.sh
- install_kibana3.sh
- Add two network interface in ubuntu 12.04 in aws and route traffic properly to either ip
- Scope: Amazon EC2 Attach Elastic Network Interface (VPC)
- Start AMI in VPC
- After boot attach secondary nic
- Ensure both nic's have an external IP associated with it
- configure new /etc/network/interfaces
- restart networking
- stop network-manger
- ssh back in (ssh will flip to the other elastic ip)
- add new ip route
- flush ip route table
- restart networking
More details at http://brakertech.com/aws-add-two-network-interfaces-in-ubuntu-12-04-precise/
Example script will shred itself once ran
Example script will shred itself and the current directory (if empty)