fix syntax highlighting for countershape urls by using different quotes

This commit is contained in:
Maximilian Hils 2014-01-14 17:58:42 +01:00
parent 92966e7c48
commit 779e303dfe
6 changed files with 16 additions and 16 deletions

View File

@ -6,7 +6,7 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</a> </a>
<a class="brand" href="@!urlTo("/index.html")!@">mitmproxy</a> <a class="brand" href="@!urlTo('/index.html')!@">mitmproxy</a>
<div class="nav"> <div class="nav">
<ul class="nav"> <ul class="nav">
<li $!'class="active"' if this.match("/index.html", True) else ""!$> <a href="@!top!@/index.html">home</a> </li> <li $!'class="active"' if this.match("/index.html", True) else ""!$> <a href="@!top!@/index.html">home</a> </li>

View File

@ -9,7 +9,7 @@ documentation from any __mitmproxy__ screen.
The flow list shows an index of captured flows in chronological order. The flow list shows an index of captured flows in chronological order.
<img src="@!urlTo("screenshots/mitmproxy.png")!@"/> <img src="@!urlTo('screenshots/mitmproxy.png')!@"/>
- __1__: A GET request, returning a 302 Redirect response. - __1__: A GET request, returning a 302 Redirect response.
- __2__: A GET request, returning 16.75kb of text/html data. - __2__: A GET request, returning 16.75kb of text/html data.
@ -32,7 +32,7 @@ interfaces.
The __Flow View__ lets you inspect and manipulate a single flow: The __Flow View__ lets you inspect and manipulate a single flow:
<img src="@!urlTo("screenshots/mitmproxy-flowview.png")!@"/> <img src="@!urlTo('screenshots/mitmproxy-flowview.png')!@"/>
- __1__: Flow summary. - __1__: Flow summary.
- __2__: The Request/Response tabs, showing you which part of the flow you are - __2__: The Request/Response tabs, showing you which part of the flow you are
@ -65,13 +65,13 @@ At the moment, the Grid Editor is used in four parts of mitmproxy:
If there is is no data, an empty editor will be started to let you add some. If there is is no data, an empty editor will be started to let you add some.
Here is the editor showing the headers from a request: Here is the editor showing the headers from a request:
<img src="@!urlTo("screenshots/mitmproxy-kveditor.png")!@"/> <img src="@!urlTo('screenshots/mitmproxy-kveditor.png')!@"/>
To edit, navigate to the key or value you want to modify using the arrow or vi To edit, navigate to the key or value you want to modify using the arrow or vi
navigation keys, and press enter. The background color will change to show that navigation keys, and press enter. The background color will change to show that
you are in edit mode for the specified field: you are in edit mode for the specified field:
<img src="@!urlTo("screenshots/mitmproxy-kveditor-editmode.png")!@"/> <img src="@!urlTo('screenshots/mitmproxy-kveditor-editmode.png')!@"/>
Modify the field as desired, then press escape to exit edit mode when you're Modify the field as desired, then press escape to exit edit mode when you're
done. You can also add a row (_a_ key), delete a row (_d_ key), spawn an done. You can also add a row (_a_ key), delete a row (_d_ key), spawn an

View File

@ -3,7 +3,7 @@ achieve transparent mode.
<ol class="tlist"> <ol class="tlist">
<li> <a href="@!urlTo("ssl.html")!@">Install the mitmproxy <li> <a href="@!urlTo('ssl.html')!@">Install the mitmproxy
certificates on the test device</a>. </li> certificates on the test device</a>. </li>
<li> Enable IP forwarding: <li> Enable IP forwarding:
@ -40,4 +40,4 @@ iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8
</ol> </ol>
For a detailed walkthrough, have a look at the <a href="@!urlTo("tutorials/transparent-dhcp.html")!@"><i>Transparently proxify virtual machines</i></a> tutorial. For a detailed walkthrough, have a look at the <a href="@!urlTo('tutorials/transparent-dhcp.html')!@"><i>Transparently proxify virtual machines</i></a> tutorial.

View File

@ -7,7 +7,7 @@ OSX.
<ol class="tlist"> <ol class="tlist">
<li> <a href="@!urlTo("ssl.html")!@">Install the mitmproxy <li> <a href="@!urlTo('ssl.html')!@">Install the mitmproxy
certificates on the test device</a>. </li> certificates on the test device</a>. </li>
<li> Enable IP forwarding: <li> Enable IP forwarding:

View File

@ -17,14 +17,14 @@ 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:
<center> <center>
<img src="@!urlTo("tutorials/supermega.png")!@"/> <img src="@!urlTo('tutorials/supermega.png')!@"/>
</center> </center>
After finishing a game (take your time), watch the traffic flowing through After finishing a game (take your time), watch the traffic flowing through
mitmproxy: mitmproxy:
<center> <center>
<img src="@!urlTo("tutorials/one.png")!@"/> <img src="@!urlTo('tutorials/one.png')!@"/>
</center> </center>
We see a bunch of things we might expect - initialisation, the retrieval of We see a bunch of things we might expect - initialisation, the retrieval of
@ -99,7 +99,7 @@ replay.
## The glorious result and some intrigue ## The glorious result and some intrigue
<center> <center>
<img src="@!urlTo("tutorials/leaderboard.png")!@"/> <img src="@!urlTo('tutorials/leaderboard.png')!@"/>
</center> </center>
And that's it - according to the records, I am the greatest Super Mega Worm And that's it - according to the records, I am the greatest Super Mega Worm

View File

@ -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`. 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). 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).
<hr>VirtualBox configuration: <hr>VirtualBox configuration:
<img src="@!urlTo("tutorials/transparent-dhcp/step1_vbox_eth0.png")!@"/><br><br> <img src="@!urlTo('tutorials/transparent-dhcp/step1_vbox_eth0.png')!@"/><br><br>
<img src="@!urlTo("tutorials/transparent-dhcp/step1_vbox_eth1.png")!@"/> <img src="@!urlTo('tutorials/transparent-dhcp/step1_vbox_eth1.png')!@"/>
<br>Proxy VM: <br>Proxy VM:
<img src="@!urlTo("tutorials/transparent-dhcp/step1_proxy.png")!@"/> <img src="@!urlTo('tutorials/transparent-dhcp/step1_proxy.png')!@"/>
<hr> <hr>
2. **Configure DHCP and DNS** 2. **Configure DHCP and DNS**
We use dnsmasq to provide DHCP and DNS in our internal network. 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` `sudo service dnsmasq restart`
<hr> <hr>
Your proxied machine's network settings should now look similar to this: Your proxied machine's network settings should now look similar to this:
<img src="@!urlTo("tutorials/transparent-dhcp/step2_proxied_vm.png")!@"/> <img src="@!urlTo('tutorials/transparent-dhcp/step2_proxied_vm.png')!@"/>
<hr> <hr>
3. **Set up traffic redirection to mitmproxy** 3. **Set up traffic redirection to mitmproxy**
@ -46,7 +46,7 @@ This walkthrough illustrates how to set up transparent proxying with mitmproxy.
-j REDIRECT --to-port 8080 -j REDIRECT --to-port 8080
</pre> </pre>
4. If required, <a href="@!urlTo("ssl.html")!@">install the mitmproxy 4. If required, <a href="@!urlTo('ssl.html')!@">install the mitmproxy
certificates on the test device</a>. certificates on the test device</a>.
5. Finally, we can run <code>mitmproxy -T</code>. 5. Finally, we can run <code>mitmproxy -T</code>.