From 968d94d4710616ebf94cde4f3c35d469e227e910 Mon Sep 17 00:00:00 2001 From: Jim Shaver Date: Tue, 17 Mar 2015 00:26:42 -0400 Subject: Removes all of the platform specific certificate installation instructions. --- doc-src/tutorials/gamecenter.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'doc-src/tutorials') diff --git a/doc-src/tutorials/gamecenter.html b/doc-src/tutorials/gamecenter.html index 5998f889..b51b6faf 100644 --- a/doc-src/tutorials/gamecenter.html +++ b/doc-src/tutorials/gamecenter.html @@ -2,9 +2,8 @@ ## The setup In this tutorial, I'm going to show you how simple it is to creatively -interfere with Apple Game Center traffic using mitmproxy. To set things up, I -registered my mitmproxy CA certificate with my iPhone - there's a [step by step -set of instructions](@!urlTo("certinstall/ios.html")!@) elsewhere in this manual. I then +interfere with Apple Game Center traffic using mitmproxy. To set things up, +you must install the [mitmproxy root certificate](@!urlTo("certinstall/webapp.html")!@) elsewhere in this manual. I then started mitmproxy on my desktop, and configured the iPhone to use it as a proxy. -- cgit v1.2.3 From f3dab52a6297d4ea2fe0f0bc444bf0a3265e887a Mon Sep 17 00:00:00 2001 From: Jim Shaver Date: Tue, 17 Mar 2015 00:30:18 -0400 Subject: Better english --- doc-src/tutorials/gamecenter.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc-src/tutorials') diff --git a/doc-src/tutorials/gamecenter.html b/doc-src/tutorials/gamecenter.html index b51b6faf..d192232c 100644 --- a/doc-src/tutorials/gamecenter.html +++ b/doc-src/tutorials/gamecenter.html @@ -3,7 +3,7 @@ In this tutorial, I'm going to show you how simple it is to creatively interfere with Apple Game Center traffic using mitmproxy. To set things up, -you must install the [mitmproxy root certificate](@!urlTo("certinstall/webapp.html")!@) elsewhere in this manual. I then +you must install the [mitmproxy root certificate](@!urlTo("certinstall/webapp.html")!@). I then started mitmproxy on my desktop, and configured the iPhone to use it as a proxy. -- cgit v1.2.3 From e0e36f5dae4572ea4053821e6fef1487de87642e Mon Sep 17 00:00:00 2001 From: Jim Shaver Date: Wed, 18 Mar 2015 00:22:18 -0400 Subject: consolidated down all SSL documentation into one document --- doc-src/tutorials/gamecenter.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc-src/tutorials') diff --git a/doc-src/tutorials/gamecenter.html b/doc-src/tutorials/gamecenter.html index d192232c..8d2e9bc5 100644 --- a/doc-src/tutorials/gamecenter.html +++ b/doc-src/tutorials/gamecenter.html @@ -3,7 +3,7 @@ In this tutorial, I'm going to show you how simple it is to creatively interfere with Apple Game Center traffic using mitmproxy. To set things up, -you must install the [mitmproxy root certificate](@!urlTo("certinstall/webapp.html")!@). I then +you must install the [mitmproxy root certificate](@!urlTo("certinstall/ssl.html")!@). I then started mitmproxy on my desktop, and configured the iPhone to use it as a proxy. -- cgit v1.2.3 From a9f6d53562b8020b87a8feaba2ac1d16d0d869ee Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 18 May 2015 12:05:29 +1200 Subject: certificate docs: reorg, wording, tweaks --- doc-src/tutorials/gamecenter.html | 14 +++++------ doc-src/tutorials/transparent-dhcp.html | 41 ++++++++++++++++----------------- 2 files changed, 26 insertions(+), 29 deletions(-) (limited to 'doc-src/tutorials') diff --git a/doc-src/tutorials/gamecenter.html b/doc-src/tutorials/gamecenter.html index 8d2e9bc5..15380c20 100644 --- a/doc-src/tutorials/gamecenter.html +++ b/doc-src/tutorials/gamecenter.html @@ -2,10 +2,9 @@ ## The setup In this tutorial, I'm going to show you how simple it is to creatively -interfere with Apple Game Center traffic using mitmproxy. To set things up, -you must install the [mitmproxy root certificate](@!urlTo("certinstall/ssl.html")!@). I then -started mitmproxy on my desktop, and configured the iPhone to use it as a -proxy. +interfere with Apple Game Center traffic using mitmproxy. To set things up, +install the [mitmproxy root certificate](@!urlTo("certinstall.html")!@). Then +start mitmproxy on your desktop, and confige the iPhone to use it as a proxy. ## Taking a look at the Game Center traffic @@ -13,7 +12,7 @@ proxy. Lets take a first look at the Game Center traffic. The game I'll use in this tutorial is [Super Mega Worm](http://itunes.apple.com/us/app/super-mega-worm/id388541990?mt=8) - a -great little retro-apocalyptic sidescroller for the iPhone: +great little retro-apocalyptic sidescroller for the iPhone:
@@ -90,7 +89,7 @@ now fire up. Lets bump the score up to something a bit more ambitious: -Save the file and exit your editor. +Save the file and exit your editor. The final step is to replay this modified request. Simply press __r__ for replay. @@ -102,7 +101,7 @@ replay.
And that's it - according to the records, I am the greatest Super Mega Worm -player of all time. +player of all time. There's a curious addendum to this tale. When I first wrote this tutorial, all the top competitors' scores were the same: 2,147,483,647 (this is no longer the @@ -118,4 +117,3 @@ phone, then 2^31-1 might well be the maximum score you could get. Then again, if the game itself stores its score in a signed 32-bit int, you could get the same score through perfect play, effectively beating the game. So, which is it in this case? I'll leave that for you to decide. - diff --git a/doc-src/tutorials/transparent-dhcp.html b/doc-src/tutorials/transparent-dhcp.html index ce8a10fd..c34dd700 100644 --- a/doc-src/tutorials/transparent-dhcp.html +++ b/doc-src/tutorials/transparent-dhcp.html @@ -1,27 +1,27 @@ This walkthrough illustrates how to set up transparent proxying with mitmproxy. We use VirtualBox VMs with an Ubuntu proxy machine in this example, but the general principle can be applied to other setups. -1. **Configure VirtualBox Network Adapters for the proxy machine** - The network setup is simple: `internet <--> proxy vm <--> (virtual) internal network`. - For the proxy machine, *eth0* represents the outgoing network. *eth1* is connected to the internal network that will be proxified, using a static ip (192.168.3.1). +1. **Configure VirtualBox Network Adapters for the proxy machine** + The network setup is simple: `internet <--> proxy vm <--> (virtual) internal network`. + For the proxy machine, *eth0* represents the outgoing network. *eth1* is connected to the internal network that will be proxified, using a static ip (192.168.3.1).
VirtualBox configuration:

- +
Proxy VM: - +
-2. **Configure DHCP and DNS** - We use dnsmasq to provide DHCP and DNS in our internal network. - Dnsmasq is a lightweight server designed to provide DNS (and optionally DHCP and TFTP) services to a small-scale - network. +2. **Configure DHCP and DNS** + We use dnsmasq to provide DHCP and DNS in our internal network. + Dnsmasq is a lightweight server designed to provide DNS (and optionally DHCP and TFTP) services to a small-scale + network. - - Before we get to that, we need to fix some Ubuntu quirks: - **Ubuntu >12.04** runs an internal dnsmasq instance (listening on loopback only) by default + - Before we get to that, we need to fix some Ubuntu quirks: + **Ubuntu >12.04** runs an internal dnsmasq instance (listening on loopback only) by default [1]. For our use case, this needs to be - disabled by changing
`dns=dnsmasq` to `#dns=dnsmasq` in */etc/NetworkManager/NetworkManager.conf* + disabled by changing
`dns=dnsmasq` to `#dns=dnsmasq` in */etc/NetworkManager/NetworkManager.conf* and running `sudo restart network-manager` afterwards. - - Now, dnsmasq can be be installed and configured: - `sudo apt-get install dnsmasq` - Replace */etc/dnsmasq.conf* with the following configuration: + - Now, dnsmasq can be be installed and configured: + `sudo apt-get install dnsmasq` + Replace */etc/dnsmasq.conf* with the following configuration:
\# Listen for DNS requests on the internal network
         interface=eth1
         \# Act as a DHCP server, assign IP addresses to clients
@@ -30,15 +30,15 @@ This walkthrough illustrates how to set up transparent proxying with mitmproxy.
         dhcp-option=option:router,192.168.3.1
         dhcp-option=option:dns-server,192.168.3.1
         
- Apply changes: + Apply changes: `sudo service dnsmasq restart`
Your proxied machine's network settings should now look similar to this:
-3. **Set up traffic redirection to mitmproxy** - To redirect traffic to mitmproxy, we need to add two iptables rules: +3. **Set up traffic redirection to mitmproxy** + To redirect traffic to mitmproxy, we need to add two iptables rules:
     iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 \
         -j REDIRECT --to-port 8080
@@ -46,9 +46,8 @@ This walkthrough illustrates how to set up transparent proxying with mitmproxy.
         -j REDIRECT --to-port 8080
     
-4. If required, install the mitmproxy +4. If required, install the mitmproxy certificates on the test device. -5. Finally, we can run mitmproxy -T. +5. Finally, we can run mitmproxy -T. The proxied machine cannot to leak any data outside of HTTP or DNS requests. - -- cgit v1.2.3 From 2135bcec61cf346555f8fd1e24bbb9267d002502 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 24 May 2015 14:09:51 +1200 Subject: docs: styles now live in www.mitproxy.org repo, make images responsive --- doc-src/tutorials/gamecenter.html | 6 +++--- doc-src/tutorials/transparent-dhcp.html | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'doc-src/tutorials') diff --git a/doc-src/tutorials/gamecenter.html b/doc-src/tutorials/gamecenter.html index 15380c20..af11b5bb 100644 --- a/doc-src/tutorials/gamecenter.html +++ b/doc-src/tutorials/gamecenter.html @@ -15,14 +15,14 @@ Worm](http://itunes.apple.com/us/app/super-mega-worm/id388541990?mt=8) - a great little retro-apocalyptic sidescroller for the iPhone:
- +
After finishing a game (take your time), watch the traffic flowing through mitmproxy:
- +
We see a bunch of things we might expect - initialisation, the retrieval of @@ -97,7 +97,7 @@ replay. ## The glorious result and some intrigue
- +
And that's it - according to the records, I am the greatest Super Mega Worm diff --git a/doc-src/tutorials/transparent-dhcp.html b/doc-src/tutorials/transparent-dhcp.html index c34dd700..6c648c0d 100644 --- a/doc-src/tutorials/transparent-dhcp.html +++ b/doc-src/tutorials/transparent-dhcp.html @@ -4,10 +4,10 @@ This walkthrough illustrates how to set up transparent proxying with mitmproxy. The network setup is simple: `internet <--> proxy vm <--> (virtual) internal network`. For the proxy machine, *eth0* represents the outgoing network. *eth1* is connected to the internal network that will be proxified, using a static ip (192.168.3.1).
VirtualBox configuration: -

- +

+
Proxy VM: - +
2. **Configure DHCP and DNS** We use dnsmasq to provide DHCP and DNS in our internal network. @@ -34,7 +34,7 @@ This walkthrough illustrates how to set up transparent proxying with mitmproxy. `sudo service dnsmasq restart`
Your proxied machine's network settings should now look similar to this: - +
3. **Set up traffic redirection to mitmproxy** -- cgit v1.2.3 From a05a70d8168a07c92b2a3ecbbb1958d85532efe3 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 30 May 2015 12:03:28 +1200 Subject: Add coding style check, reformat. --- doc-src/tutorials/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc-src/tutorials') diff --git a/doc-src/tutorials/index.py b/doc-src/tutorials/index.py index 1cb04679..3bfe7c12 100644 --- a/doc-src/tutorials/index.py +++ b/doc-src/tutorials/index.py @@ -4,4 +4,4 @@ pages = [ Page("30second.html", "Client playback: a 30 second example"), Page("gamecenter.html", "Setting highscores on Apple's GameCenter"), Page("transparent-dhcp.html", "Transparently proxify virtual machines") -] \ No newline at end of file +] -- cgit v1.2.3