Internet upside down

    Good afternoon, approaching April 1, and I really would not want this day to be the same as the rest, so I offer a special, IT fun. This is a translation of an article accidentally found on the Internet, in fact, translated it a11aud , but he lacks karma for the post, so I write (a11aud will be very grateful for karma :))

    1) Introduction

    My neighbors are stealing my wireless internet. Yes, I could start encrypting, but you can get a lot of pleasure from the contemplation of perplexity on their faces!

    2) Share the network!

    I started by dividing the network into two parts: trusted and untrusted. The trustee had its share of the network, the untrusted had its own. We use a DHCP server to identify poppy addresses for separation into appropriate groups.


    ddns-updates off;
    ddns-update-style interim;

    shared-network local {

        subnet *.*.*.* netmask {
            range *.*.*.* *.*.*.*;
            option routers *.*.*.*;
            option subnet-mask;
            option domain-name "XXXXX";
            option domain-name-servers *.*.*.*;
            deny unknown-clients;

            host trusted1 {
                hardware ethernet *:*:*:*:*:*;
                fixed-address *.*.*.*;

        subnet netmask {
            option routers;
            option subnet-mask;
            option domain-name-servers;
            allow unknown-clients;


    * This source code was highlighted with Source Code Highlighter.

    3) IPtables - it's funny!

    Suddenly, everything became cats! Koshkanet.

    / sbin / iptables -A PREROUTING -s -p tcp -j DNAT --to-destination

    For the uninitiated, this redirects all traffic to kittenwar

    PS I suggest http: // www /

    For added fun, you can configure iptables to forward everything to a transparent squid proxy running on port 80.

    / sbin / iptables -A PREROUTING -s -p tcp -m tcp --dport 80 -j DNAT --to-destination Squid is turned

    on this car with a banal redirect that downloads pictures, uses a modifier to flip them upside down and extends beyond the local web server.

    Actually, the script itself:

    $count = 0;
    $pid = $$;
    while (<>) {
        chomp $_;
        if ($_ =~ /(.*\.jpg)/i) {
            $url = $1;
            system("/usr/bin/wget", "-q", "-O","/space/WebPages/images/$pid-$count.jpg", "$url");
            system("/usr/bin/mogrify", "-flip","/space/WebPages/images/$pid-$count.jpg");
            print "$pid-$count.jpg\n";
        elsif ($_ =~ /(.*\.gif)/i) {
            $url = $1;
            system("/usr/bin/wget", "-q", "-O","/space/WebPages/images/$pid-$count.gif", "$url");
            system("/usr/bin/mogrify", "-flip","/space/WebPages/images/$pid-$count.gif");
            print "$pid-$count.gif\n";

        else {
            print "$_\n";;

    * This source code was highlighted with Source Code Highlighter.

    4) And the Internet began to look like this!

    And if you try the "-blur 4" vagueness effect, you will get "vague"!


    Also popular now: