mitmproxy is an excellent console app written in Python.
It is easy to use on Linux and OS X.
Use brew install mitmproxy to install it on OS X.
| #! /bin/bash | |
| #==================================================================== | |
| # vps_auto_backup.sh | |
| # | |
| # Copyright (c) 2011, WangYan <[email protected]> | |
| # All rights reserved. | |
| # Distributed under the GNU General Public License, version 3.0. | |
| # | |
| # vps automatic local and offsite backup shell cript | |
| # |
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
| #!/usr/bin/env ruby | |
| # | |
| # Proof-of-Concept exploit for Rails Remote Code Execution (CVE-2013-0156) | |
| # | |
| # ## Advisory | |
| # | |
| # https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion | |
| # | |
| # ## Caveats | |
| # |
mitmproxy is an excellent console app written in Python.
It is easy to use on Linux and OS X.
Use brew install mitmproxy to install it on OS X.
| #!/usr/bin/env python | |
| # coding:utf-8 | |
| import sys | |
| import os | |
| try: | |
| import gevent | |
| import gevent.queue | |
| import gevent.monkey |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| net.core.wmem_max = 12582912 | |
| net.core.rmem_max = 12582912 | |
| net.ipv4.tcp_rmem = 10240 87380 12582912 | |
| net.ipv4.tcp_wmem = 10240 87380 12582912 | |
| net.ipv4.ip_local_port_range = 18000 65535 | |
| net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait = 1 | |
| net.ipv4.tcp_window_scaling = 1 | |
| net.ipv4.tcp_max_syn_backlog = 3240000 | |
| net.core.somaxconn = 3240000 | |
| net.ipv4.tcp_max_tw_buckets = 1440000 |
Located in alphabetical order (not prefer)
Cab), also designed as a more modern replacement, written in Cgolang)