Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:
Permalink: git.io/vps
| Provider | Type | RAM | Cores | Storage | Transfer | Network | Price |
|---|
| require 'net/http' | |
| require 'json' | |
| require 'uri' | |
| require 'yaml' | |
| ## | |
| # Make a certain obfuscated js less obnoxious to analyze. | |
| # | |
| class Obfuscated | |
| attr_accessor :script |
| from threading import Lock,Condition | |
| import Queue | |
| import time | |
| class TimedQueue: | |
| def __init__(self): | |
| self.itemqueue=Queue.PriorityQueue() | |
| self.getlock=Lock() | |
| self.itemlock=Lock() | |
| self.itemconfirm=Condition(self.itemlock) | |
| def get(self,nowait=False): |
| import requests | |
| import sys | |
| from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
| requests.packages.urllib3.disable_warnings(InsecureRequestWarning) | |
| FIRSTNAME="John" | |
| LASTNAME="Doe" | |
| def f(sess,username,password): | |
| global FIRSTNAME,LASTNAME | |
| sess.get("http://www.nike.com/us/en_us") | |
| e=sess.post("https://unite.nike.com/loginWithSetCookie?appVersion=287&experienceVersion=249&uxid=com.nike.commerce.nikedotcom.web&locale=en_US&backendEnvironment=identity&browser=Google%20Inc.&os=undefined&mobile=false&native=false",data='{"username":"'+username+'","password":"'+password+'","keepMeLoggedIn":true,"client_id":"HlHa2Cje3ctlaOqnxvgZXNaAs7T9nAuH","ux_id":"com.nike.commerce.nikedotcom.web","grant_type":"password"}',headers={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36","X-Requested-With":"XMLHttpRequest","Content-Type":"text/plain","Origin":"http://www.nike.com","Referer":"http://www.nike.com/us/en_us","Accept":"*/*","Acc |
Permalink: git.io/vps
| Provider | Type | RAM | Cores | Storage | Transfer | Network | Price |
|---|
| # Configuration file for runtime kernel parameters. | |
| # See sysctl.conf(5) for more information. | |
| # See also http://www.nateware.com/linux-network-tuning-for-2013.html for | |
| # an explanation about some of these parameters, and instructions for | |
| # a few other tweaks outside this file. | |
| # See evil packets in your logs. | |
| net.ipv4.conf.all.log_martians = 1 |
| #!/bin/bash -eux | |
| // set $DATADOGKEY to your API key | |
| DATE=$(date +%s) | |
| HOSTNAME=`hostname` | |
| cat /proc/net/sockstat | grep TCP | cut -d":" -f2 |sed 's/^ //g' | awk '{print $1, $2"\n"$3, $4"\n"$5,$6"\n"$7,$8"\n"$9,$10}' > /tmp/stats.tmp | |
| while read LINE; do | |
| METRIC=$(echo $LINE | cut -d" " -f1) | |
| VALUE=$(echo $LINE | cut -d" " -f2) | |
| curl -X POST -H "Content-type: application/json" \ |
| function FindProxyForURL( url, host ) { | |
| var debugging = false; | |
| var debugPAC; | |
| if (debugging) { | |
| debugPAC = "host: "+ host +"\n"; | |
| debugPAC += "url: "+ url +"\n"; | |
| debugPAC += "dnsDomainIs(host, 'devtree.opentreeoflife.org'): "+ dnsDomainIs(host, "devtree.opentreeoflife.org") +"\n"; | |
| debugPAC += "dnsDomainIs( host, '.devtree.opentreeoflife.org' ): "+ dnsDomainIs( host, '.devtree.opentreeoflife.org' ) +"\n"; | |
| debugPAC += "shExpMatch(host, 'devtree.opentreeoflife.org'): "+ shExpMatch(host, "devtree.opentreeoflife.org") +"\n"; | |
| } |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This Gist is created in 2014, and it's highliy outdated now, according to one of mitmproxy's manjor contributor (check his comment below). Thanks for letting us know, @mhils!
Modern applications usually make use of back-end API servers to provide their services. With a non-transparent HTTPs proxy, which intercepts the communication between clients and servers (aka the man-in-the-middle scheme), you can easily manipulate both API requests and responses.