after then converted and then output | programmtのブログ

programmtのブログ

ブログの説明を入力します。

This article was originally known almost to answer a question, but I have five elements missing due diligence, so they did not write (in fact, forget the =. =), Here is one of my experiment, how squid molested by those who rub network. No technical content, please do Michael Kors Bedford Gusset Medium Purple Crossbody Bags Michael Kors Bedford Large Red Shoulder Bags not joke ~ Daniel Disclaimer: This experiment only as a technology sharing, what a knife is used to cut, to you. First on the effect: Is not it a bit mean? There is also need to explain the purpose of this article is to share one thing, in a way is a big foreign Pete practice, good results, http: //www.ex-parrot.com/pete/upside-down-ternet.html but This is not the repeat-create the wheel, it is too brief written Pete Monk first, Michael Kors Accessories as the protagonist of the event actually was a passing squid, squid represent quite uncomfortable (╯ `□ ') ╯(┻━┻. If you can achieve this effect described above and do not look down my nonsense the ~ if you're like me started experiencing the problem, then follow me go ~ Let me talk about a Michael Kors Crossbody Bags rough idea. Since it is on the Web for images you want to operate, then We first need to download the pictures to a local, after then converted and then output to the client machine above, to achieve a picture of the flip, watermark, blur and other effects make fun of people. Of course, even if the function is much more than this, more Multi-function, we may wish to dig after reading it, I do not much nonsense - OK, so here we started 0 × 01 experimental environment Let me talk about my test environment:! Host: ubuntu virtual machine: windowsXP ( vbox) Software: squid, apache topology of the environment is not much nonsense, my side is wlan0 host through the Internet, a virtual machine select Host-Only mode, connect to the host vboxnet0 interface (the default, I did not modify) .0 × 02 System configuration Here, we should first network forwarding system is turned on, you can use the echo 1 \u0026 gt; / proc / sys / net / ipv4 / ip_forward enabled temporarily, of course, you can also modify sysctl.conf permanently forwarded Then, the virtual machine. ip settings, I am here to set 192.168.56.21, subnet mask 255.255.255.00 × 03 software settings let the software setup .apache much to say, you can specify a local path as the network sharing address, the role of the main is to publish revised picture, here is the path I choose / mydoc / test / followed by squid. installed on squid is not the point here, there are many online tutorials, we say emphatically configuration .Squid configuration file is in / etc / . squid (3) The following squid.conf looks to highlight to get my high cold temperament (the landlord has Guards degree of narcissism ... (_ _) Techno | wall), the point I have been focusing on the configuration write uploaded file inside, I will give the address at the end of Michael Kors Clutches the text, we can look at here is the key reason why the squid is because we mainly use the redircetor Michael Kors Outlet features squid, that we often say redirector function can Redirector url rewrite the received redirect, and support python, perl, C, etc. redirect script written language (program), the function is very powerful, the students might be Michael Kors Bedford Logo Large Black Crossbody Bags interested to play here - here labeled 'squid authority Guide 'on the detailed description of squid, there are problems you can consult here: http: //zyan.cc/book/squid/chap11.html Then, we put the script file in the location specified in the configuration file, I was put here In the / etc / Michael Kors Bedford Signature Large White Totes squid3 / below, to note here is that the file permissions problem, because squid is squid default user permission to run, under the squid group (squid3 is proxy user, proxy groups), so if you do not have permission to perform the script file squid when it is being given for. Here's the script file directly using a perl script I greatly Pete were given a little modification, it may Michael Kors Accessories be because Pete directly from the local test, the script has a little bit of small problems, we are also available from the URL given on my download. We then configure the virtual machine proxy. Because here I did not use iptables traffic forwarding, for convenient, direct configuration of the browser's proxy configuration, where the proxy IP Michael Kors Berkley Logo Large Beige Clutches 192.168.56.1:8080, of course, we can also use the iptables forwarding, so it. Finally, we restart the squid. sudo service squid restart (squid3 service name is squid3), where attention for any actions squid must remember to use sudo to perform, otherwise it will error. 0 × 04 test the effect this time we open the virtual machine, enter http://www.baidu.com, you should see baidu's logo is reversed, and open more pages try it ~ is not very fun ʱ?? 23333. Of course, the script simply uses the Michael Kors Bedford Logo Large Gold Crossbody Bags flip option, of course, there is not recommended to use too complicated commands, the browser will respond too slowly. For more results imagemagic can consult online, it is a very powerful command-line image control software. 0 × 05 more conjecture experiment has been successful, then we say back to our topic today MITM above. Some students might ask: Do you have to have to get too much, how application ah? I am here to provide a small way, appetizers: You can buy a Raspberry Pi, buy a usb card, a Michael Kors Bedford Large Orange Shoulder Bags China Unicom or China Telecom card, Michael Kors Bedford Gusset Medium Blue Crossbody Bags buy a wireless network card, Michael Kors Bedford Logo Medium Black Satchels with the airport to build a wireless signal, buy a power supply, installed linux configured squid, of course, can also open sniff, with a good reception data server. ʱ?? The rest is: back up your backpack, walked silently Star Michael Kors Bedford Logo Large Pink Crossbody Bags Bacchus, a cup of coffee with a straw slowly savor this bitter tea, rose, flower beds and look out the window, and my heart silently thinking about the TA. ʱ?? ʱ?? Said here, we may think of pineapple, in fact, because the pineapple using openwrt streamlined system, a lot of things can not be used, and the configuration a little lower than the Raspberry Pi, large quantities of image manipulation makes it easy for CPU hurricane, comes The MITM recent seemingly not used? However, it is recommended Geek own hands - if they have more ideas, we exchange. 0 × 06 Caution because I was doing the experiment process also encountered a lot of problems, some common questions posted here, Daniel skip it ~:) 1, note received permissions and belong to the Pictures folder of the user, preferably with squid users the same user group. If not, you can use the chown be modified. Example: chown proxy.proxy xxx2, pay attention to the script file permissions. The script file must be user squid can be performed. 3, note that the log file permissions on a total of three log file, located in / var / log / squid3 / under, respectively cache.log, store.log, access.log, these three files must be written, You can also change the user all the permissions directly chown. 4, a problem more virtual machines can not open a web page, you can consult /var/log/squid3/cache.log, here we will give a very detailed description. Here I can think of being on so much, then what other problems we can communicate together, I've got a handful of soap. ʱ?? ʱ?? 0 × 07 Written in the last final, has nothing to say, and attach link: https: //github.com/linvex/MITM-squid/tree/master few pictures on it - How to correct posturerub network who molested?