Marius van Witzenburg We fight for our survival, we fight!

1Jul/110

How to paste into password fields in mobile Safari on your iPhone

Posted by mariusvw

On some sites its not possible to paste a password in a password field. Which sucks! Well this is a simple work around.

In this example I use Facebook.

On this login screen you can bring up the paste button but it is not pasting anything at all.

It becomes blue, nothing happens.

The solution, simply type some characters into the field. And tap hold until you see the menu. There press Select All.

Now you have the bogus password selected and will be able to paste your real password over the bogus one.

You can login now :-)

22Jun/110

How to configure VPN on your FRITZ!Box 7340

Posted by mariusvw

FRITZ!Box

Setup the VPN settings on the FRITZ!Box with a VPN config file.

Save the content below to a file named vpn.cfg

vpncfg {
        connections {
                enabled = yes;
                conn_type = conntype_user;
                name = "YOUR_MAIL_ADDRESS";
                always_renew = no;
                reject_not_encrypted = no;
                dont_filter_netbios = yes;
                localip = 0.0.0.0;
                local_virtualip = 0.0.0.0;
                remoteip = 0.0.0.0;
                remote_virtualip = VPN_CLIENT_IP;
                remoteid {
                        key_id = "YOUR_MAIL_ADDRESS";
                }
                mode = phase1_mode_aggressive;
                phase1ss = "all/all/all";
                keytype = connkeytype_pre_shared;
                key = "YOUR_SHARED_PASSWORD";
                cert_do_server_auth = no;
                use_nat_t = yes;
                use_xauth = yes;
                use_cfgmode = no;
                xauth {
                        valid = yes;
                        username = "YOUR_USERNAME";
                        passwd = "YOUR_PASSWORD";
                }
                phase2localid {
                        ipnet {
                                ipaddr = 0.0.0.0;
                                mask = 0.0.0.0;
                        }
                }
                phase2remoteid {
                        ipaddr = VPN_CLIENT_IP;
                }
                phase2ss = "esp-all-all/ah-none/comp-all/no-pfs";
                accesslist = "permit ip any VPN_CLIENT_IP 255.255.255.255";
        }
        ike_forward_rules = "udp 0.0.0.0:500 0.0.0.0:500", "udp 0.0.0.0:4500 0.0.0.0:4500";
}

Replace the below values with the right settings for your network, I'll describe it with the default router values.

  • YOUR_MAIL_ADDRESS, replace this with your mail address.
  • VPN_CLIENT_IP, replace this with something like 192.168.178.201.
  • YOUR_SHARED_PASSWORD, replace this with your own preferred shared password.
  • YOUR_USERNAME, replace this with your VPN username, use [a-z] only.
  • YOUR_PASSWORD, replace this with your VPN password, mind quote signs!

This configuration has been tested on iOS and Mac OS X, check the manuals below to configure your client.

23Mar/100

How to restore your iPhone when its bricked with DFU mode

Posted by mariusvw

Here are some simple steps I use to restore friends their iPhones.

  1. Connect your iPhone to your computer.
  2. Turn of your iPhone by holding the power button
  3. Wait for your iPhone to completely shutdown
  4. Hold POWER and HOME for 10 seconds
  5. Release POWER but keep holding HOME
  6. iTunes should now detect your iPhone in DFU mode

Note, in case you do a redsn0w jailbreak, you might need to disconnect press power and reconnect the iPhone to make it work (do this quickly).