How to enable Syslog on iPhone fw 2.x for debugging

news 7 Comments »

You can no longer debug output in 2.0 by launching your app from SSH. So how do you get those NSLog outputs? The answer is to enable the syslog and then you can use tail -f /var/log/syslog to see all the output. Here is how:

  1. edit /System/Library/LaunchDaemons/com.apple.syslogd.plist
  2. find the <string>/usr/…/syslogd</string> line
  3. below that add:
    <string>-bsd_out</string>
    <string>1</string>
  4. Type: echo '*.* /var/log/syslog' > /etc/syslog.conf (open /etc/syslog.conf and make sure that you have *.* /var/log/syslog without any extra characters)
  5. Type: launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist
  6. Type: launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist

And now you have an awesome /var/log/syslog that contains NSLogs (and I think stderr) from your application.

Remember, to see the output open SSH and type: tail -f /var/log/syslog to see all the output.

Source of these info: TheBigBoss website, and originally from Saurik.

Here’s an output example… frack!

Mar 23 09:56:37 iPhosk com.apple.locationd[198]: 259491397.100,static void CLFileUpdate::onDownloaded(CLFileDownload*, bool, void*): could not download from https://iphone-services.apple.com/clbl/unauthorizedApps to /var/root/Library/Caches/locationd/clients-b.plist.temp

How to bypass firewalls or captive portals with dns2tcp

news 25 Comments »

Have you ever found an open wireless access and when opening your browser you get a nice login screen asking you a credit card number (a captive portal)? What’s next? Make your choice: fill the form with the magic numbers or try to bypass this security mechanism!

Classic wireless hot spots commonly allow two protocols: ICMP and DNS (UDP/53). ICMP (Internet Control Message Protocol) is used to report errors and warning to the client and DNS is mandatory to resolve hostnames. While ICMP can also be used as a transport protocol (see PTunnel), firewalls may block unusual ICMP packets (ex: suspicious big packets). On the other side, there are often less restriction regarding DNS traffic.

In the following tutorial, we will use the tool dns2tcp written by two guys working for HSC, a French security company.

Read the rest of this entry »

TR-909 iPhone emu tryout

music, videos 13 Comments »

Daft fan iPhone wallpaper

news 7 Comments »

Some carbon fiber effect added to make the pic in tune with default dock style.

How to use your iPhone as an EDGE modem: tethering with tinyproxy

news 8 Comments »

The so called tethering is when you use your cell phone signal as a method of connecting your laptop to the internet.

In the case of the iPhone we will be using EDGE to get online. Its not fast but it will do the job.

On your iPhone:

1) From Installer.app install the program called Tinyproxy;

2) Navigate to the settings menu then to the wifi menu. From here select your newly created network. Then press that little blue arrow to the right of the network name;

3) Change the IP Address to Manually and enter “192.168.1.1″ in the IP field and “255.255.255.0″ in the subnet field. Leave everything else blank.

Read the rest of this entry »

Inside the iPhone field test mode

news 2 Comments »

The iPhone field mode shows a lot of information. In fact, it is more comprehensive than many other phone field modes, allowing you to see the details of the individual cell towers and a lot of detail about the cell phone network. For a phone that tries to hide much of the technical details of how it works, that’s a litte surprising. To access it, dial *3001#12345#*. If you are already in a call, just hit “add call”, enter the number above and hit call; the phone will go into test mode, but keep your call connected.

Main Screen

The first screen that you see is the main menu for the field mode. This presents you with the following choices: Network Information, Cell Information, GPRS Information, PDP information, Call Information and Versions. Let’s look at each of these in turn.

Read the rest of this entry »

Compatibilità iPhone e Blue&me

news No Comments »

Tested on my Grande Punto: iPhone (fw 1.1.4 OTB) and Blu&me (convergence 1)

Compatibilità iPhone e Blu&me
Chiamata dal vivavoce si
Rifiuto chiamata entrante si
Richiama ultimo numero si
Riproduzione suoneria telefono su impianto audio si
Visualizzazione operatore telefonico su quadro di bordo si
Conferenza si
Gestione seconda chiamata entrante si
Visualizzazione nome chiamante su quadro di bordo si
Sincronizzazione della rubrica si
Scaricamento contatti da rubrica si
Trasferimento chiamata da vivavoce a telefono cellulare e viceversa si (sia da comando al volante che da iphone stesso)
Messa in attesa della chiamata in corso si
Lettura vocale messaggi SMS no :(

So, can this Apple thingy work with blue&me that – beware – runs Windows Automotive?

Fortunately the reply is yes, only the SMS read function won’t work, but this is also true for all but some SE and Motorola phones.

© 2000-2007 by fosk & powered by Wordpress themed by N.Design Studio