archiveren

Tagarchief: windows phone

Waddefok…

Windows Phone “doesn’t support SSTP” as a VPN type, but using Microsoft’s own FieldMedic app, the following is revealed:

Description             : WAN Miniport (SSTP) #13
Interface Index         : 14
Type                    : 131
Media Type              : 12
Physical Medium         : 0
Operational Status      : Not Present
Interface Flags         : 0x1 = hardware
Speed                   : 0 b/s
Physical Address        : 10-2F-6B-xx-xx-xx
MTU                     : 0
Bytes Received          : 0
Bytes Sent              : 0
Rcv Packet Errors       : 0
Rcv Packets Discarded   : 0
Out Packet Errors       : 0
Out Packets Discarded   : 0

COMMON Microsoft!

Sometimes you can have the impression you’re going crazy.

I saw this wifi network called “00000000” being available sometimes. When I opened the Windows 8 charms bar to check the available wifi-networks, it popped up after a second or 2 – which is weird.
When I checked with inssider, it simply wasn’t there.
It was not in my profiles, it was not hidden in netsh, nowhere to be found in the registry, …

I kind-of remembered I once renamed my phone’s “wifisharing”-wifi to that “00000000”-SSID.
But I changed it again a couple of months ago (brucon related)

showprofiles

So, jeah, what’s a better way to find out what it does but connecting to it? 😛

Found DNS Suffix being “mshome.net”, never heard of it before, and the the gateway being, indeed, my phone…

mshomephone

But apparently, it’s not a bug! it’s a feature: http://www.thomasmaurer.ch/2013/10/improved-internet-sharing-in-windows-phone-8-gdr-3-update/

Anyway, after connecting again, the “00000000” was gone, and the new SSID was there…
But in WP? My laptop’s <wifi cache> if such thing exists? …

Meh…

 

 

 

My last Nokia was the world famous 3310.
The years must have been 2001 or something, and I used it for almost 2 years!

Now, my previous Windows Phone, the Samsung Omnia 7, was also already 3 years old (personal record!). And the end-of-support for WP7 was approaching.

Luckily, Microsoft announced the 930.
All I wanted in a high-end phone:

  • AMOLED, once you go black…
  • lots of RAM – 2GB
  • massive amount of cpu-power – quadcore @ 2.2GHz
  • big battery – 2420 mAh
  • wireless charging – cool gimmick
  • NFC – I really see this happening!

IN A PHONE (the world has gone mad)

Anyway, the thing works amazing!

Battery-life of almost 2 days IN USE.
Great screen, beautiful pictures, fast as hell, …
Fancy design and iPhone-like metal finish.

IT’s NICE!

Go Nokia!

evolution2

If you want pictures more of the phone: https://www.google.be/search?q=nokia+930&biw=1920&bih=955&source=lnms&tbm=isch&sa=X&ei=FGgQVO6hNMzfavSbgJgD&ved=0CAYQ_AUoAQ#tbm=isch&q=nokia+930+black

Your Windows Phone is made in a factory (mostly somewhere in Asia).
The manufacturer of the product is called the “Original Equipment Manufacturer”

In the case of Windows Phone, this could be “Samsung”, “Nokia”, “HTC”, …

These manufacturer all play a different part in the Windows Phone Ecosystem.
And each are given a separate section in the Marketplace as well.
If you buy a Samsung Phone you can access the “Samsung Zone”, if you buy a Nokia you can access the “Nokia collection”.

And, of course, if you jailbreak your phone, you can access everything 🙂

The configuration is stored somewhere inside the Registry. (yes, WP has a register…)

If you install a random regeditor like WP Root Tools, you can browse into it!

The key we’re interested in, is the following:

HKLM\System\Platform\DeviceTargetingInfo\OemName
HKLM\System\Platform\DeviceTargetingInfo\MODeviceName

Which can, for example, be modified into “NOKIA” and “Lumia 800” 😀

Apps to automate the market selection are available from XDA and bazaar 🙂

Screen Capture

So, the first time I bricked a phone…
But at least I managed to fix it 🙂

And put some new software on it!

I’m still holding up with my two (!!!) years old mobile phone (also a record!).
A first gen WP, “fixed” with MAGLDR, running some weird beta version of the WP 7.8 update (the one with the image resize bug). My bluetooth wasn’t working. My storage was almost complete full.

Time had come for a fresh install 🙂

After some browsing at xda, I chose this rom (latest build): dev_build8862_1.5 .

Installing wmdc, and the required samsung usb drivers didn’t really work on my Windows 8 machine…
DFT installer did find the phone, but crashed after a while with error “[Info]: USBWorkDWPI.cpp (423)”
Nevertheless, I tried to flash…

I should not have done that…

After some unfortunate try-outs, I was left with a device that only said “Samsung Omnia 7”

18766_large_samsung-omnia-7_1

Luckily, a Windows 7 computer was not far away.
After reinstalling wmdc, samsung drivers and zune, the DFT tools where able to find my Omnia 7.

I tried to reinstall the MAGLD boot loader. And the installer actually finished with “success”.

But nothing happened…
Probably MAGLDR makes use of some system files for it’s usb connection? (not sure)
And the entire OS was corrupted, so nothing from the custom bootloader worked…

I decided to download a genuine Samsung firmware, flash it to the phone, and restart the entire process on the W7 computer.

pic

A random samsung rom was flashed (just google one), MAGLDR was reinstalled, the previously mentioned firmware was flashed. And on top of this, from the same author as the rom, automode provided me for an radio firmware update for my Omnia7! Jeej!

So, my phone was up and running again with the newest rom on the market and its firmware flashed to the top!

But in the end, my bluetooth still doesn’t work 😦

Random generators suck…
Apparently none can make a good one…

My car (bmw), my previous car (opel), my ipod, itunes, windows phone, youtube, …

After a song, always the same “random” song follows..
It’s kind of strange…
If you let me create a random() function, I would include the time somehow.
At least in a car you can create some mathematical function, which divided by the current amount of minutes, will give you something pseudo random, right?
At least random enough to not always let a specific song be the next one at another certain song?

dilbert

Random.org gives you the real analysis of how true randomness can be achieved.

As you can see on the random.org page mentioned above, even php on windows rand() sucks! Spot the “pattern” in the picture below!
According to Bo Allen php performs better on Linux… Shame on you Microsoft! 😛

php’s rand() function on windows!

 

Anyway, I don’t want to know the next song, when I enable “shuffle” in my audio player…

Microsoft, BMW, Apple, please fix it!

WP_000313 (1)

In my bed, the weirdest things happen…
Today, I woke up, and tough to myself: “why do people sign their code, but not their stored data & variables?”

Let’s explain what I mean…

I’ve been messing around with Windows Phone 7 quite some time.
And now Windows 8 has the same fun challenges.

Some (most) applications which are developed by home-programmers, don’t make time to “secure” their applications. Mostly because their isn’t time, money, or the effort is just too high…

Anyway, this results in a lot of apps you can play with 😎

codeintegrity.cat

codeintegrity.cat

Nowadays, when you edit a W8 xaml file, the codeintegrity.cat (miaow) file makes sure you app crashes…
The codeintegrity file (part of the MS App Store) verifies the integrity of the code (no way 😛 ).
It’s a quick fix for a hack that came out a long time ago (the one where you could edit anything you wanted): www.extremetech.com/computing/143002-how-to-pirate-windows-8-metro-apps-bypass-in-app-purchases-and-more

Some thoughts: why isn’t all this encrypted/obfuscated/minimised/…, aka: why it it plain text?

A really good read from justin angel! It’s quiet funny too!

So at least I’m not the only one who thinks like that!

But a solution can be that easy!
Take your vars, and multiply them with 4. Convert them to another type (var something = (new int32(1234).tochar() ). Create a stupid mathematical formula to “hide” your variables. Or even: don’t store your variables with easy names (The function of the variable “AmountOfGold=5000” isn’t THAT difficult to guess :-p ), or just salt the entire variablebullshit!

If only our precious NMBS would do that! 😆

the story

Something I believe is really useful on a mobile device, is a portable network scanner.

I’ve got this on my android tablet (currently using “Fing“) and sometimes this comes in handy (especially on mobile devices because of their lack on native network discovery abilities)

So I started my search on the WP7 marketplace.
There are a couple of apps promising “ping”-like functions on the WP7 platform.
But after testing them one by one, they all failed…
A couple of them created the impression that they worked, but in the end they didn’t…

So, let’s create our own 🙂

so, some background.

According to wikipedia, Ping is created in 1983 and is used to check network connectivity.
When you “ping” a network devices, it “pongs” back (replies), and you know it’s available to
communicate with you.

Ping is based on ICMP echo requests.
ICMP on it’s turn is defined in RFC 792 of the IETF
Its an OSI layer 4 function, and works on top of IP.

So, basically, if we want to create our WP7 network discovery app, we need to create an IPv4 packet, put in a ICMP request, and broadcast it around. 🙂

a bitter reality

In .net 4.5, you have the “ping” class.
This is an incredible easy way of achieve our target.

But it’s not part of the “mobile” silverlight based SDK for wp 7.1…

damn…

The other way around: what do we have.
Since 7.1 (Mango) we have sockets!
A nice explanation is written here at msdn.

What if we want to craft our own ICMP packet?
You just need a byte array, put it in an IP packet, and solved!

Anyway, you can spawn a network socket with multiple arguments.

Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);

AddressFamily:ip4, ip6, unspecified or unknown
SocketType: stream (tcp) dgram (udp) or unknown
ProtocolType: tcp, udp, unspecified or unknown

And of course, unspecified and unknown is not supported on WP7.
So,we only have tcp and udp available…

No ICMP or even RAW as in the full desktop version of a socket

Stuck again…

Some guys on the internet say ping should work with tcp/udp on port 7…
Knowing this can’t actually work, I experimented with it anyway.

Result: udp doing nothing – tcp replying sometimes (absolutely not trustworthy)

Any suggestions from somewhere? Is it even possible using only TCP/UDP/WP7?

‘cause I’m out idea’s…

My 5th wp7 app just went live 🙂

Its purpose: sending a text message from your browser!

Download the application from the WP marketplace, login, take another device (desktop, laptop, tablet, another phone, …) and browse to http://mendel.somee.com (my current free asp host 🙂 ), login with the same credentials as before, type your message, send it to your phone, and send it again! 🙂

This makes you can write an entire book-long message, on another device (maybe even with physical keyboard 🙂 )

More info on the SMSer project page: https://mendel129.wordpress.com/projects/smser/