Pages

Thursday, September 4, 2014

Upside-Down-Ternet: Raspberry Pi Edition

I did a post on this a few years ago, here is an update for 2013. This walkthrough is based on the technique found here: http://www.ex-parrot.com/pete/upside-down-ternet.html

First the disclaimer: Do not do this to any sort of important computer or network, because it WILL break things. This is meant as a prank for home use only; such as confusing your brother, sister, kids, wife, etc... Doing this to a network you don't own is a felony and could result in jail time and fines!

What it does

A small device (Raspberry Pi) powered by either a battery or cell phone charger is connected to your network in front of the intended victim's computer, which will wreak havoc on your victim's internet browsing. This method does not require changing any settings on any target computers. 
The instructions assume that the computer you want to prank is using a DHCP assigned IP address. If the computer is using a manually assigned IP address, the only thing that will happen is the internet will be completely cut off - which isn't very funny. If you want to be really evil, you could put it in front of your internet router, causing all the devices that use your internet to be effected. 

How it works

The Raspberry Pi is configured with with a dnsmasq DHCP server which will assign downstream computers a new IP address and gateway. A squid transparent proxy is installed on the Pi where traffic is redirected using iptables. A redirection script uses mogrify to alter images and then re-hosts the images through the a web server. 

Equipment and Software

* Raspberry Pi Model B with Raspbian installed
* USB Ethernet Adapter
* CAT5 Patch Cable
These instructions assume that the Raspberry Pi is accessible through SSH, and also has access to the internet. Installing and configuring Raspbian is out of the scope of this post. If you need help, here is a great place to start: http://www.raspbian.org/RaspbianInstaller

Prepare the Software

For best results, overclock the pi to 800Mhz, and set to memory split to 32 or 16MB. For some reason my raspberry pi wouldn't boot when configured with 16MB. Also make sure that eth1 is configured with static IP 192.168.254.1.

Dnsmasq

Install with:
 sudo apt-get -y install dnsmasq
Add the following config to /etc/dnsmasq.conf to configure the dhcp server on eth1, which should be the USB ethernet adapter.
 domain-needed
 interface=eth1  
 domain=upside-down-ternet

 dhcp-range=192.168.254.100,192.168.254.200,255.255.255.0,12h

Edit /etc/sysctl.conf to allow the Raspberry Pi to act as a gateway router. Add or uncomment:

 net.ipv4.ip_forward=1
Type /etc/init.d/dnsmasq restart and then plug a laptop into the USB ethernet adapter. You should get an IP in the 192.168.254.xxx range. At this point although the gateway should be reachable, there is no NAT configuration so you won't be able to access the internet.

Squid

Install squid, iptables, and imagemagick:
 sudo apt-get -y install squid3 iptables imagemagick

Edit /etc/squid3/squid.conf and copy the text below. This configures squid to act as a transparent proxy with no caching. It also specifies a redirect script at /etc/squid3/upsidedown.sh.
 cache_mgr dustin
 cachemgr_passwd dustin all
 cache deny all
 redirect_program /etc/squid3/upsidedown.sh
 acl manager proto cache_object
 acl localhost src 127.0.0.1/32 ::1
 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
 acl localnet src 192.168.254.0/24 # RFC1918 possible internal network
 acl SSL_ports port 443
 acl Safe_ports port 80  # http
 acl Safe_ports port 21  # ftp
 acl Safe_ports port 443  # https
 acl Safe_ports port 70  # gopher
 acl Safe_ports port 210  # wais
 acl Safe_ports port 1025-65535 # unregistered ports
 acl Safe_ports port 280  # http-mgmt
 acl Safe_ports port 488  # gss-http
 acl Safe_ports port 591  # filemaker
 acl Safe_ports port 777  # multiling http
 acl CONNECT method CONNECT
 http_access allow manager localhost
 http_access deny manager
 http_access deny !Safe_ports
 http_access deny CONNECT !SSL_ports
 http_access allow localnet
 http_access allow localhost
 http_access deny all
 http_port 3128 transparent
  cache_mem 64 MB
 #cache_dir ufs /var/spool/squid3 150 16 256
 coredump_dir /var/spool/squid3
 refresh_pattern ^ftp:  1440 20% 10080
 refresh_pattern ^gopher: 1440 0% 1440
 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
 refresh_pattern .  0 20% 4320

Iptables

Create a file iptables.sh and copy the text below:
#nat
iptables -t nat -A POSTROUTING -j MASQUERADE
#squid transparent proxy
iptables -t nat -A PREROUTING -i wlan0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.254.1:3128
iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128

Hit ctrl-o to save the file, then ctrl-x to exit. Now the file needs to be made executable and copied to an appropriate location.

chmod +x iptables.sh
sudo cp iptables.sh /etc/init.d/

Apply the configuration at boot:

sudo update-rc.d iptables.sh start 99

Upside Down Redirection Script

First make sure Apache and perl are installed:
 sudo apt-get install apache2 perl
Create a directory for the modified images and assign permissions:
 sudo mkdir /var/www/images
 sudo chmod 777 /var/www/images
Create the redirection script:
 sudo nano /etc/squid3/upsidedown.pl
Paste this code:
#!/usr/bin/perl
$|=1;
$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");
                print "http://127.0.0.1/images/$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");
                print "http://127.0.0.1/images/$pid-$count.gif\n";

        }
        elsif ($_ =~ /(.*\.png)/i) {
                $url = $1;
                system("/usr/bin/wget", "-q", "-O","/var/www/images/$pid-$count.png", "$url");
                system("/usr/bin/mogrify", "-flip","/var/www/images/$pid-$count.png");
                print "http://127.0.0.1/images/$pid-$count.png\n";

        }
        elsif ($_ =~ /(.*\.jpeg)/i) {
                $url = $1;
                system("/usr/bin/wget", "-q", "-O","/var/www/images/$pid-$count.jpeg", "$url");
                system("/usr/bin/mogrify", "-flip","/var/www/images/$pid-$count.jpeg");
                print "http://127.0.0.1/images/$pid-$count.jpeg\n";
        }
        else {
                print "$_\n";;
        }
        $count++;
}

Press ctrl-o to save, then ctrl-x to exit. Make the script executable:
 sudo chmod +x /etc/squid3/upsidedown.pl

Reboot the raspberry pi and make sure everything starts up automatically. Most images should now be shown upside down!

Monday, August 25, 2014

Nintendo DS ROM Patching Tutorial with xDelta

1. You will need a program called xDelta_GUI or other programs that can apply a patch.

For xDelta_GUI, I got it from this thread;
http://gbatemp.net/index.php?showtopic=144271
(Download link is in the second post by psycoblaster)

Or download it here;
http://www.mediafire.com/file/ylwrdm4gmjz/psycoblaster_xDelta_GUI.zip

Note:
- If the link there doesn't work, please let me know.  I can upload the program somewhere else.
- It's not necessary to use this program if you already have a program that can apply patch. But this tutorial will be based on xDelta_GUI. (I use Windows XP. Not sure if it works with different OS though.)

2. The program in the above link is in .zip format, so unzip it first. (Use winZip, winRAR, or 7Zip.)

3. In xDelta_GUI folder, double click xDelta_GUI.exe. The program should start and look like this.


4. Click "Select Patch" button and select the .patch file. (I plan to name the patch file like: Tokimemo1Test-20100115.patch where 20100115 will be changed according to the release date.)

5. Click "Select ROM" and browse to your clean Tokimeki Memorial Girl's Side First Love Plus ROM. (The clean rom should be 256 MB.)
Note: The ROM must have file extension ".nds". If you download it as a .rar or .zip, etc. You will have to properly extract the file (with Winzip, Winrar, 7z, etc. program.) first.

6. Click "Apply patch" button and wait for a while. (It might take a few minutes, depending on your computer's speed.) This program will make a new copy of patched ROM with "_patched" at the end of the file name. The file size of the patched one will change too.

(Note: The file size can be slightly different from what is shown in the picture.)

Note: In case "Apply patch" doesn't work, you can try moving your .patch file and your game ROM to the same folder as your XDeltaGui and repeat steps 4-6.

Note: (Thanks to Kona) About xdelta_GUI. Apparently it wouldn't patch the file if there's anything foreign inside the folder which has both the patch and .nds (plus the xdelta programs). Foreign as in the folder having the picture of the game.

7. The one with "_patched" will be the one with English translation. (Your original clean ROM will remain the same.)
Note: The file with "_patched" should be around 190 MB to 210 MB. If you got 0 kb, you probably did something wrong.

8. A tip from GBATemp user, Glaix, in case all the above method doesn't work.

"I found out the only way I could patch it was with xdelta GUI and the components in thumb drive and patching it like that on my computer. I couldn't patch it alone on my PC, but I could on my DS and on a thumb drive. If that helps anyone."

Wednesday, August 20, 2014

Super Mario Fusion V0.53

After almost two years of hard work, version 0.5 of Mushroom Kingdom Fusion is finally available for download.

IMPORTANT: There is currently one bug in the game that may happen if you're using a 64-bit operating system. This may cause a few issues such as missing backgrounds or terrain in a couple levels, or, in rare occasions, crashing. We are currently working towards finding a solution to this problem. Until then, read the FAQ for possible solutions should you encounter this issue.

UPDATE: V0.53 is now available for download. V0.53 fixes a number of bugs and balance issues found in the v0.5 release. Unfortunately this does not fix the issues with 64-bit systems; we're still looking into those.

HOW TO INSTALL:

Step 1: Read the FAQ, located here:

http://fusionfangaming.spriters-resource.com/index.php?topic=8.0

Don't try to set up the game without reading this first. My bear is a cosmic horror, it can see through time and space and if it sees you not reading the FAQ, it will find you.



Step 2: Download this file and extract its contents into a new folder in your computer. Do NOT try to run the game without extracting the files first. 

http://www.dropbox.com/s/4o400e2tyymh15x/MKFMasterv053.zip
http://www.mediafire.com/download.php?ck2tna80qkjo0fo (Mirror, seems to cause anti-virus false positives)


Step 3: Download these two files which contain the music: 

http://www.mediafire.com/download.php?6n398gi1l5m30oo

http://www.mediafire.com/download.php?ao7a47eygm6e1wt

Unzip both folders, then drag the contents of the "Music 2" folder into the "Music" folder. Delete the now-empty Music 2 folder, and drag the Music folder into the same location you extracted the main files to.


This is what the folder where you installed MKF should look like:




Congratulations, MKF version 0.53 is now ready to play. Double-click on the ? Block icon to launch it.After almost two years of hard work, version 0.5 of Mushroom Kingdom Fusion is finally available for download.


IMPORTANT: There is currently one bug in the game that may happen if you're using a 64-bit operating system. This may cause a few issues such as missing backgrounds or terrain in a couple levels, or, in rare occasions, crashing. We are currently working towards finding a solution to this problem. Until then, read the FAQ for possible solutions should you encounter this issue.

UPDATE: V0.53 is now available for download. V0.53 fixes a number of bugs and balance issues found in the v0.5 release. Unfortunately this does not fix the issues with 64-bit systems; we're still looking into those.

HOW TO INSTALL:

Step 1: Read the FAQ, located here:

http://fusionfangaming.spriters-resource.com/index.php?topic=8.0

Don't try to set up the game without reading this first. My bear is a cosmic horror, it can see through time and space and if it sees you not reading the FAQ, it will find you.



Step 2: Download this file and extract its contents into a new folder in your computer. Do NOT try to run the game without extracting the files first. 

http://www.dropbox.com/s/4o400e2tyymh15x/MKFMasterv053.zip
http://www.mediafire.com/download.php?ck2tna80qkjo0fo (Mirror, seems to cause anti-virus false positives)


Step 3: Download these two files which contain the music: 

http://www.mediafire.com/download.php?6n398gi1l5m30oo

http://www.mediafire.com/download.php?ao7a47eygm6e1wt

Unzip both folders, then drag the contents of the "Music 2" folder into the "Music" folder. Delete the now-empty Music 2 folder, and drag the Music folder into the same location you extracted the main files to.


This is what the folder where you installed MKF should look like:




Congratulations, MKF version 0.53 is now ready to play. Double-click on the ? Block icon to launch it.

Wednesday, August 13, 2014

How to Remove PUP.Optional,Conduit.A threat from Chrome detected by Malwarebytes



How to remove PUP.Optional.Conduit.A from Chrome.....

1. Press Alt+F and scroll over Tools.
2. Go to Extensions and remove all undesired add-ons.
3. Click Settings on the left, under On Startup, select Open a page or a set of pages.
4. Click Set pages, remove the current home page address and enter your desired one. Click OK.
5. Under Search, click on Manage search engines.
6. Set any search engine as your default one, and remove the unwanted one.
7. Click Done.
8. Restart the browser.

Saturday, August 9, 2014

Just Color Picker

Free portable color picker and color editor for web designers and digital artists.
Just Color Picker main window, compact mode Graphic designers, digital artists and web-designers tend to look at things differently. They see the arrangement and color scheme of things that mere mortals would just take for granted. Anything can be a piece of art or an inspiration, but it takes a discerning eye to really see it sometimes. While taking part in any computer routine, designers may see colors and color combinations that they would like to use in their projects. With Just Color Picker, identifying the colors, saving, editing and combining them into beautiful color combinations is a quick and simple job.
One of the main advantages of Just Color Picker is that it was created by a person who uses it on an everyday basis. It is a software for designers and digital artists created by a designer and digital artist.

Both zip and exe downloadable files are portable and identical. The zipped alternative is offered purely for the convenience of those who, for any reason, can’t download exe files.
Please contact the author if you have any questions. Your comments and suggestions are welcome.

How to Outline Text in GIMP

http://www.gimpology.com/
Step 1 Open up the GIMP if it's already not open and create a new file. The defaults are ok for the purposes of this tutorial.
Step 2 Now using the  text tool (Shortcut: T), add some text to your canvas. I didn't make the color of the text have too much contrast with the color of the background. We'll make the text stand out by giving it a dark outline.
Step 3 While the  text tool is still selected, select the text you just created. Next, go into tool options and click "Create Path from Text":
Step 4 Now create a transparent layer under your text layer. I called it "Outline":
Step 5 Then go to Select > From Path (Shortcut: Shift+V):
Step 6 Next, go to Select > Grow and select the width of your outline. I chose 5px. After you have grown the selection, fill it with the bucket tool (Shortcut: Shift+B). Then press Ctrl+Shift+A to Select None and there you have it: outlined text!

alt64 [release] alternative ED64 Menu for Everdrive 64 plays GB, NES, GG, MSX2 ROMs


Original Post by 

saturnu


Hi,
I have good and bad news for you guys. ^^
The bad one is, i'm going to stop working on that menu, but the good one is... you'll maybe hear from me in conjuction with a new mystical retrogaming project. :D

Young minds, fresh ideas!
If you are interested in improving that menu, feel free to download the source and do whatever you want with it. ^^
Here's a tutorial sanni made if you need some help to get started.


Tutorial + virtual machines
alt64 v0.186 source
Learn C The Hard Way




Hello everyone,

here is my menu for the ED64, it's based on libdragon, Neo64Menu, ED64IO, nrage-plugin, lib-hkz, libmikmod and some great help of Krikzz. ^^

-no official support on that from krikzz! don't blame him on that :D
use it on your own risk

         


Download 18 Dec 2013:
ALT64 Version 0.1.8.6
alt64_v0186.7z

Source v0.1.6:
https://code.google.com/p/alt64/source/browse/trunk/


if you don't give up until you hold something new in your hands. :D
here is a little update, which let you disable the bootup screen in the config file. ^^
you still need to install all files from the v0.1.8.6 archive, before using this.

update v0.1.8.6 -> v0.1.8.7
alt64_u187.zip

new:
enable/disable splash screen

ALT64.ini:
splash_on=0 ;1=enable splash 0=disable splash

Installation hints:
Make sure you have created all neccessary folders by hand
/ED64
/ED64/SDSAVE
/ED64/CFG

For the Mempak default save dir, it's possible to change the name in ALT64.ini
/MEMPAKS


Key settings;
L brings up the mempak menu
      B abort
      A backup
      R format
      Z view controller pak
Z about screen
A start rom/directory/mempak
B back/cancel
START start last rom
C-left rom info / mempak content view
C-right rom config  screen
C-up view full filename
C-down Toplist 15

Configuration comments:
Code: [Select]
[ed64] ; Menu config
This is the so called section.
All keys after the section declaration are associated with that
section, until a new one
is defined.

border_color_1=FFFFFFFF ; 0x00000080 RGBT
border_color_2=3F3F3FFF ; 0x3F3F3FFF RGBT 00000060 w light
The border colors are for the thin line around the boxes.

box_color=000000B6 ; 0x00000080 RGBT
This box color is used for the main filelist. The last byte is the
alpha value (transparency level).

selection_color=80008070  ; 80008070 RGBT 6495ED60
This color is used for the cursor line in the fileliste.

list_font_color=CDC9C940  ; 80008070 RGBT 6495ED60
The filelist font color for normal files.

list_dir_font_color=FFFFE040  ; 80008070 RGBT 6495ED60
The filelist font color for directory entries.

selection_font_color=FFB90FFF  ; 80008070 RGBT 6495ED60
The color for the font on to of the cursor line.

text_offset=0 ; shift menu horizontal e.g. -1
This key shifts the screen contet to the left or the right, not only
text, even the boxes.

cd_behaviour=1 ; 0=first entry 1=last entry
You can configure what happens if you leave a directory. The default setting
lets you return with the cursor over the just left directory.

scroll_behaviour=0 ; 0=page-system 1=classic
The scroll behaviour lets you switch between page-wise brwosing and a
pageless filelist.

quick_boot=1 ; 'START' boots last rom
If you disable that key 'START' boots roms like the 'A' button.

sound_on=1 ; sounds 1=on 0=off
If you disable the sound, you might be able to navigate a bit faster.

page_display=1 ; display page - 1=on 0=off
The e.g. '1/4' in front of SD:// on top of the filelist

tv_mode=0 ; 1=ntsc 2=pal 3=mpal 0=force_off
This is the key where you can force the menu to 60Hz if you are on PAL.
It's very useful if you have a RGB modded n64.

enable_colored_list=1 ; 1=enable 0=disalbe
This is the on/off switch for the rating colors in the filelist.
If you have rated a lot of games and have performance issues, try to disable it.

ext_type=0 ; 0=classic 1=OS64
ALT64 classics: e4k,e16,srm,128,fla
 OS64 settings: eep,eep,sra,sra,fla

sd_speed=2 ; 1=25MHz 2=50MHz
50/60Hz SDCard settings just like in the original menu

background_image=background.png ; backgrund png image 320x240 32bit
The name of the wallpaper in '/ED64/WALLPAPER'.

hide_sysfolder=0 ; 1=hide 0=don't hide
With this setting you decide if, you want to hide 'ED64' from the fileliste.

mempak_path=/MEMPAKS/ ; surround with slashes
The default save path for new mempak-backups (when you enter the filename).

save_path=SDSAVE ; save directory inside ED64
If you decide to use your old savegames you could change this to 'SAVE' and
'ext_type' to '1', instead of renaming the files. :>

[user]
name = saturnu        ; Username
Maybe it's useful for further customization, but now it's just a leftover
of a example ini. ^^

[gblite]
save_path=/ED64/SDSAVE/ ; save directory surround with slashes
tv_mode=0 ; 1=ntsc 2=pal 3=mpal 0=force_off
The gblite version auf gnuboy64 uses this two entries.
With the 'tv_mode' key you can force 60Hz like the setting for the menu itself.
[/spoiler]

Working features:
filebrowser
sounds
gameshark cheats
mempak restore
mempak backup - with filename input screen
savetyp detection based on a cart-id list
sd speed 25/50MHz
tv-type force
save force
cic force
boot_region force
crc fix
boxart
can run gameboy games (Colnes gnuboy64 port)
can run nes games (neon64)
can play gamegear roms
can maybe play msx2 roms
mpk file view
controller pak view
toplist of best rated roms
rom rating

eeprom4k
eeprom16k
sram
sram128
flashram


png background loading from the sd card
color settings for the menu
horizontal menu shift
hide sysfolder