few more fixes,picture mod

This commit is contained in:
kira0204 2018-02-25 22:52:12 +05:30
parent f31ce49aa5
commit 93ce72d0b1
9 changed files with 8 additions and 8 deletions

BIN
docs/raw/proxy-modes.vsdx Normal file → Executable file

Binary file not shown.

View File

@ -106,7 +106,7 @@ sudo iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 443 -j REDIRECT --to-p
Finally, we can run mitmproxy in transparent mode with Finally, we can run mitmproxy in transparent mode with
{{< highlight bash >}} {{< highlight bash >}}
mitmproxy -T mitmproxy --mode transparent
{{< / highlight >}} {{< / highlight >}}
The proxied machine cannot to leak any data outside of HTTP or DNS requests. If The proxied machine cannot to leak any data outside of HTTP or DNS requests. If

View File

@ -58,7 +58,7 @@ dropped privileges. It can be used as follows:
gcc examples/complex/full_transparency_shim.c -o mitmproxy_shim -lcap gcc examples/complex/full_transparency_shim.c -o mitmproxy_shim -lcap
sudo chown root:root mitmproxy_shim sudo chown root:root mitmproxy_shim
sudo chmod u+s mitmproxy_shim sudo chmod u+s mitmproxy_shim
./mitmproxy_shim $(which mitmproxy) -T --spoof-source-address ./mitmproxy_shim $(which mitmproxy) --mode transparent --set spoof-source-address
{{< / highlight >}} {{< / highlight >}}
@ -112,10 +112,10 @@ something like this:
You probably want a command like this: You probably want a command like this:
{{< highlight bash >}} {{< highlight bash >}}
mitmproxy -T --host mitmproxy --mode transparent --showhost
{{< / highlight >}} {{< / highlight >}}
The `-T` flag turns on transparent mode, and the `--host` argument tells The `--mode transparent` option turns on transparent mode, and the `--showhost` argument tells
mitmproxy to use the value of the Host header for URL display. mitmproxy to use the value of the Host header for URL display.
### 6. Finally, configure your test device ### 6. Finally, configure your test device
@ -163,10 +163,10 @@ doas pfctl -e
You probably want a command like this: You probably want a command like this:
{{< highlight bash >}} {{< highlight bash >}}
mitmproxy -T --host mitmproxy --mode transparent --showhost
{{< / highlight >}} {{< / highlight >}}
The `-T` flag turns on transparent mode, and the `--host` argument tells The `--mode transparent` option turns on transparent mode, and the `--showhost` argument tells
mitmproxy to use the value of the Host header for URL display. mitmproxy to use the value of the Host header for URL display.
### 6. Finally, configure your test device ### 6. Finally, configure your test device
@ -245,10 +245,10 @@ tighten the restriction up to the user running mitmproxy.
You probably want a command like this: You probably want a command like this:
{{< highlight bash >}} {{< highlight bash >}}
mitmproxy -T --host mitmproxy --mode transparent --showhost
{{< / highlight >}} {{< / highlight >}}
The `-T` flag turns on transparent mode, and the `--host` argument tells The `--mode transparent` flag turns on transparent mode, and the `--showhost` argument tells
mitmproxy to use the value of the Host header for URL display. mitmproxy to use the value of the Host header for URL display.
### 6. Finally, configure your test device ### 6. Finally, configure your test device

BIN
docs/src/static/schematics/proxy-modes-reverse.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

BIN
docs/src/static/schematics/proxy-modes-transparent-2.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 17 KiB

BIN
docs/src/static/schematics/proxy-modes-transparent-3.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 11 KiB

BIN
docs/src/static/schematics/proxy-modes-upstream.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 11 KiB