Network Exploits Kin TWOm - KIN Two Software Development

Network Exploitation
Hello Everyone! This is my first ever post, I just got the Kin TWOm a few days ago and i've been playing around with a few different exploits.
Port Scanning
There are only two open ports on this device:
Port 138: NetBios-DGM
Port 137: Microsoft Windows Mobile netbios-ssn
I will be attempting to run a few different netbios attacks and I'll let you guys know if I gain root access!
Browser Exploits
According to the Wikipedia page on the Kin Series of phones the Browser Agent is: Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 6.12; en-US; KIN.Two 1.0)
I will also attempt to run many IE 6,7,8 etc. exploits on this device.
I'LL KEEP YOU GUYS POSTED! Also, If you know any more information about the networking aspect of this device PLEASE RESPOND TO THIS POST!
Thanks.

True, but port hacks use the 139 port.
Also, netbios commands (alas "nbstat") don't work with the kin ip (just retested with router-asigned local ip), but kin answers pings.
Also, dont just believe what wiki says. Test a browser detector page for the browser headers, and the capabilities.
As we have understood the storage upload/download i guess that we can also retest this kind of approach.
Dont want to upset ya, but i tried most of the exploits and the meta xploit things without nothing more than explorer crashes without rooting. Also, we do not know anything (or almost) from the OS, so shellcodes in ARM assembly may not work when using dll addresses.
As othes say that the M versions can open youtube, that's a good point to check too. I will think about it.
Edit, just checked it. Kin uses the "rtsp" protocol, which was unable on the version "kin two" (without M). Unfortunately, my kin doesnt play any vid from the net (maybe because not using 3g and just wifi).

Don't forget to test on 1.00 firmware. Since 1.00 had KIN Studio, which synced up everything. You might be able to get through the KIN Studio Sync.

Give me a working kin two then. Also, a CDMA connection tower to at least, get the kin to try to call home.
.... just kidding.

@john, your kin wont let you watch videos? Well it's not because your using a wifi network because I use a wifi network all the time. If you want youtube to work, then go to the page with the video, close out, go to settings then browser and delete temporary files and cache

i appoligize if this doesnt pertain, but on MS answers fourms i read that the loop on the orginial KIN OS uses a URL to function. Maybe this is exploitable..
somebody should look into this though.

So.. i doubt that is up to a common user level to test this but, as i said before, the kin two (twoM version only) uses RTSP.
It's possible to use a custom url for that protocol in the normal address bar. For example:
rtsp://lamewebsite.com/roflvideo/
Of course, if you'r on a lan, you can achive something like:
rtsp://192.168.1.2/roflvideotest/
having a a custom program listening on port 554 (default rtsp) at 192.168.1.2 .
There are some exploits (old, around the web) called "PoC rtsp exploit" which uses customized rtsp packets to execute code and/or crash the receiver program.
Mmmm or probably not crashing either, but showing the "Doh! can't play this".
Of course, as you can see, you can patiently wait for a rtsp random url (not a real rtsp one) to load ("Loading...") to see that's Zune (aka "Music & more") App what loads the video.
So zune is the program to crash and/or exploit, which is not a weak target (not much more info about it or its weaknesses).

@JohnKussack,
What about this HTTP zune exploit that allows overwriting zune files:
http://securityresponse.symantec.co...sponse/attacksignatures/detail.jsp?asid=22921
(I don't know anything about this exploit other than that it exists)

Marcellus1 said:
What about this HTTP zune exploit that allows overwriting zune files:
http://securityresponse.symantec.co...sponse/attacksignatures/detail.jsp?asid=22921
Click to expand...
Click to collapse
From what i see, it's a (microsoft caused) name mistake. This seems to be for the Zune software at windows, not for the zune software (at Zune devices/kin).
It's like zune of zune devices under zune os to run zune apps in a zune world where everything is named zune.
Yup, i was right. Just tested a local server at home:
Code:
Kin RTSP server test on port 554
Waiting for connection from the kin
Kin connected from Address: ('192.168.2.150', 49173)
##########################
DESCRIBE rtsp://192.168.2.134/ RTSP/1.0
CSeq: 1
Accept: application/sdp
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Win32)
##########################
Edit: after several tries, it seems like it just su.... accepts .3gp files, and refuses to get another filetype. Ironically, the Microsoft papers about this, say that rtsp client should send the accepted files with the DESCRIBE request. (Home team failing, anyone?).
I doubt it would just accept the exploit idea (found the code for the exploit and did not work, just normal error) or be a possible hole into the system.

johnkussack said:
Edit: after several tries, it seems like it just su.... accepts .3gp files, and refuses to get another filetype.
Click to expand...
Click to collapse
Have you tried an mp4 or m4a file?

Marcellus1 said:
Have you tried an mp4 or m4a file?
Click to expand...
Click to collapse
Not in the mood. It just refused the others, so i skipped creating or downloading a mp4 to test.
Anyway, every joe can stream in Vlc (windows) and test both. I just tested local issues.

Would this exploit work or be useful? It is said to cause an exploitable heap corruption using a GIF file:
http://mobile.securiteam.com/exploits/5YP012A8AW.html
Here's another potential exploit that works by sending a malformed RTSP response header that allows shell code to be executed:
http://www.eweek.com/c/a/Security/Trio-of-Exploits-Out-for-Windows-QuickTime-RTSP-Flaw/

Marcellus1 said:
Would this exploit work or be useful? It is said to cause an exploitable heap corruption using a GIF file:
http://mobile.securiteam.com/exploits/5YP012A8AW.html
Here's another potential exploit that works by sending a malformed RTSP response header that allows shell code to be executed:
http://www.eweek.com/c/a/Security/Trio-of-Exploits-Out-for-Windows-QuickTime-RTSP-Flaw/
Click to expand...
Click to collapse
No. The second one is my named rtsp exploit.

why dosent some one try using the v cast store instead od android or windows 7

Related

Grooveshark Music Streaming For Windows Phone 7, WP7

Would it be possible with the current Marketplace restrictions to develop a streaming client for Grooveshark?
Nanogroove and GrooveFish did that on Windows Mobile, it would be great to have such a client on Windows Phone 7, i would definitely pay for such an app.
Also there is a thread going on, on the official Grooveshark forums but there is no official answer till now.
The official clients on iPhone and Android are coded really well and add a great value to the platform.
If you like Grooveshark help us put some pressure on them
http://forums.grooveshark.com/discussion/1262/Grooveshark-on-Windows-Phone-7
Ikkari said:
Would it be possible with the current Marketplace restrictions to develop a streaming client for Grooveshark?
Nanogroove and GrooveFish did that on Windows Mobile, it would be great to have such a client on Windows Phone 7, i would definitely pay for such an app.
Also there is a thread going on, on the official Grooveshark forums but there is no official answer till now.
The official clients on iPhone and Android are coded really well and add a great value to the platform.
If you like Grooveshark help us put some pressure on them
http://forums.grooveshark.com/discussion/1262/Grooveshark-on-Windows-Phone-7
Click to expand...
Click to collapse
I had a quick glance at the source for one of the Windows Mobile grooveshark applications. Looks like it just uses basic HTTP JSON requests to post/receive data, so it shouldn't really be an issue.
The only problem would be, what would you do while listening to Grooveshark? Because as soon as you want to do something else it has to stop
I know that there is no multitasking on WP7 and that only Zune can play in background. But as long you are in the app you can lock the screen an continue to listen to music, which would be totally enough for me.
Otherwise would there be a way to play the songs directly in the Zune player?
There is some kind of interaction with Zune and 3rd party apps, at least i can see some youtube videos and radio streams in my Zune player history.
Ikkari said:
Otherwise would there be a way to play the songs directly in the Zune player?
There is some kind of interaction with Zune and 3rd party apps, at least i can see some youtube videos and radio streams in my Zune player history.
Click to expand...
Click to collapse
This could well be possible. I may have a look into doing this this weekend. There are too many differences in the old .NET Compact source code for a direct port, but it should be easy enough to get a proof of concept pretty quickly (assuming the device supports the data received from Grooveshark).
but i would have thought zune pass is good enough? Then again, if youre in a country without zune pass that might be a problem (i dont have access to zune pass and am waiting )
kingjovius said:
but i would have thought zune pass is good enough? Then again, if youre in a country without zune pass that might be a problem (i dont have access to zune pass and am waiting )
Click to expand...
Click to collapse
It is, but it's also £86 for the year. Grooveshark (via the internal APIs) is free.
edit: I managed to write a quick library to query Grooveshark and pull back some results. Unfortunately the MediaElement is having some trouble playing the MP3 stream when it really should be fine.
If anybody has any ideas why this isn't working, we would basically have a fully functional Grooveshark app
Blade0rz said:
It is, but it's also £86 for the year. Grooveshark (via the internal APIs) is free.
edit: I managed to write a quick library to query Grooveshark and pull back some results. Unfortunately the MediaElement is having some trouble playing the MP3 stream when it really should be fine.
If anybody has any ideas why this isn't working, we would basically have a fully functional Grooveshark app
Click to expand...
Click to collapse
Wow, thanks. The playing fails because of AG_E_NETWORK_ERROR error. After some searching:
I found a suggestion to add &.mp3 to the end of the stream URL, but that didn't work for me.
I've also tried it on my HTC Mozart (with unplugged cable, since I've read that media streaming on the device doesn't work while it's connected to the PC), but that didn't work too.
I've tried to compare Grooveshark MP3 file/codec info with some other MP3 that I can play without any problems using MediaElement. I did it because WP7 supports only specific codecs. Unfortunately I haven't found any differences.
I've tried to extract Location header from the stream to get exact location to the file. Header doesn't exist.
Now I'm scared that it might be impossible to create Grooveshark player until we get update for WP7 API.
Anyhow, if you find anything to make it work, please let me know. I'm really interested into that.
CR1M1N4L said:
Wow, thanks. The playing fails because of AG_E_NETWORK_ERROR error. After some searching:
I found a suggestion to add &.mp3 to the end of the stream URL, but that didn't work for me.
I've also tried it on my HTC Mozart (with unplugged cable, since I've read that media streaming on the device doesn't work while it's connected to the PC), but that didn't work too.
I've tried to compare Grooveshark MP3 file/codec info with some other MP3 that I can play without any problems using MediaElement. I did it because WP7 supports only specific codecs. Unfortunately I haven't found any differences.
I've tried to extract Location header from the stream to get exact location to the file. Header doesn't exist.
Now I'm scared that it might be impossible to create Grooveshark player until we get update for WP7 API.
Anyhow, if you find anything to make it work, please let me know. I'm really interested into that.
Click to expand...
Click to collapse
I don't think it has anything to do with the encoding, but I did notice that these don't work:
http://download.linnrecords.com/test/mp3/recit.aspx (MP3)
http://download.linnrecords.com/test/wma/recit24bit.aspx (WMA, should work no matter what)
While this does:
http://wahiduddin.net/troubleshooting/testing.wma
http://wahiduddin.net/troubleshooting/testing.mp3
Something to do with the way the content is served. Maybe the web server is adding extra headers before sending the WMA/MP3 headers?
Blade0rz said:
I don't think it has anything to do with the encoding, but I did notice that these don't work:
http://download.linnrecords.com/test/mp3/recit.aspx (MP3)
http://download.linnrecords.com/test/wma/recit24bit.aspx (WMA, should work no matter what)
While this does:
http://wahiduddin.net/troubleshooting/testing.wma
http://wahiduddin.net/troubleshooting/testing.mp3
Something to do with the way the content is served.
Click to expand...
Click to collapse
There's no surprise two first ones aren't working. Even the browser tries to download them instead of streaming, while the next two ones streams in the browser. The GrooveShark urls also streams in the browser (like the second ones in your post), therefore you shouldn't take first to links in your post as an example since they are forced to be downloaded.
Maybe the web server is adding extra headers before sending the WMA/MP3 headers?
Click to expand...
Click to collapse
As for headers, here's GrooveShark stream response headers:
Code:
HTTP/1.1 206 Partial Content
X-Powered-By: PHP/5.1.6
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: Sat, 26 Jul 1997 05:00:00 GMT
Content-Type: audio/mpeg
Etag: "403963618"
Accept-Ranges: bytes
Last-Modified: Wed, 29 Sep 2010 11:57:11 GMT
Content-Range: bytes 0-4617321/4617322
Content-Length: 4617322
Connection: close
Date: Sun, 02 Jan 2011 14:00:40 GMT
Server: lighttpd/1.5.0
And this is some other MP3 stream that WP7 loads correctly:
Code:
HTTP/1.1 206 Partial Content
Date: Sun, 02 Jan 2011 14:02:03 GMT
Server: Apache
Last-Modified: Sun, 07 Feb 2010 18:06:12 GMT
Etag: "443d05d-15180-4b6f0114"
Accept-Ranges: bytes
Content-Length: 86400
Content-Range: bytes 0-86399/86400
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: audio/mpeg
There are some extra headers, but I don't think that it should make any difference.
EDITED:
Just right after posting those headers here and reading my post I've noticed this header in GrooveShark's response:
Code:
Connection: close
I think that might cause the problem.
CR1M1N4L said:
EDITED:
Just right after posting those headers here and reading my post I've noticed this header in GrooveShark's response:
Code:
Connection: close
I think that might cause the problem.
Click to expand...
Click to collapse
I was thinking the same thing, probably causing the Stream to read all in one go. Problem here is that Silverlight restricts pretty much all HTTP headers so we can't override them
I did manage to get the stream to play by writing it to the Isolated Storage, then passing it onto the MediaElement:
Code:
void gf_CompleteStream(object sender, EventArgs e)
{
GroovesharkAPI.GroovesharkFunctionsEventArgs<GroovesharkAPI.ResponseObjects.Stream> gea =
e as GroovesharkAPI.GroovesharkFunctionsEventArgs<GroovesharkAPI.ResponseObjects.Stream>;
WebClient wc = new WebClient();
wc.OpenReadCompleted += new OpenReadCompletedEventHandler(wc_OpenReadCompleted);
wc.OpenReadAsync(new Uri(gea.ResponseObject.result.url));
this.txtStatus.Text = "Downloading MP3";
}
void wc_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
using (var store = System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication())
{
if (store.FileExists("output.mp3"))
{
store.DeleteFile("output.mp3");
}
using (var fs = new System.IO.IsolatedStorage.IsolatedStorageFileStream("output.mp3", System.IO.FileMode.Create, store))
{
byte[] bytesInStream = new byte[e.Result.Length];
e.Result.Read(bytesInStream, 0, (int)bytesInStream.Length);
fs.Write(bytesInStream, 0, bytesInStream.Length);
fs.Flush();
this.mediaElement1.SetSource(fs);
}
}
}
So it's definitely something to do with the way MediaElement handles the stream from the server. Another oddity in the API DLL is that the "getStreamUrlEx" method is returning the wrong song!
Blade0rz said:
I was thinking the same thing, probably causing the Stream to read all in one go. Problem here is that Silverlight restricts pretty much all HTTP headers so we can't override them
I did manage to get the stream to play by writing it to the Isolated Storage, then passing it onto the MediaElement:
Code:
void gf_CompleteStream(object sender, EventArgs e)
{
GroovesharkAPI.GroovesharkFunctionsEventArgs<GroovesharkAPI.ResponseObjects.Stream> gea =
e as GroovesharkAPI.GroovesharkFunctionsEventArgs<GroovesharkAPI.ResponseObjects.Stream>;
WebClient wc = new WebClient();
wc.OpenReadCompleted += new OpenReadCompletedEventHandler(wc_OpenReadCompleted);
wc.OpenReadAsync(new Uri(gea.ResponseObject.result.url));
this.txtStatus.Text = "Downloading MP3";
}
void wc_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
using (var store = System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication())
{
if (store.FileExists("output.mp3"))
{
store.DeleteFile("output.mp3");
}
using (var fs = new System.IO.IsolatedStorage.IsolatedStorageFileStream("output.mp3", System.IO.FileMode.Create, store))
{
byte[] bytesInStream = new byte[e.Result.Length];
e.Result.Read(bytesInStream, 0, (int)bytesInStream.Length);
fs.Write(bytesInStream, 0, bytesInStream.Length);
fs.Flush();
this.mediaElement1.SetSource(fs);
}
}
}
So it's definitely something to do with the way MediaElement handles the stream from the server. Another oddity in the API DLL is that the "getStreamUrlEx" method is returning the wrong song!
Click to expand...
Click to collapse
Could you check this app source? Maybe there's some problem with GrooveShark API in your test app.
I can suggest a little tricky solution (I've used to "hack" Google's TTS API). Yes, MediaElement can't play mp3 stream not ended by extension ".mp3". Not sophisticated design of course...
But you may create and use an URL redirector! You just need your own site running Apache with URL rewrite module installed.
Create directory, for example, "stream" and create inside a file ".htaccess" with content:
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^.mp3$ http://download.linnrecords.com/test/mp3/recit.aspx[NE]
Click to expand...
Click to collapse
So, you should use the following url for ME Source property:
http://yoursite.com/streaming/file.mp3
MediaElement will determine the opened stream type as mp3 but real data will came from recit.aspx.
It's just an example; your implementation may differ. But I hope you've got my point.
sensboston said:
I can suggest a little tricky solution (I've used to "hack" Google's TTS API). Yes, MediaElement can't play mp3 stream not ended by extension ".mp3". Not sophisticated design of course...
But you may create and use an URL redirector! You just need your own site running Apache with URL rewrite module installed.
Create directory, for example, "stream" and create inside a file ".htaccess" with content:
So, you should use the following url for ME Source property:
http://yoursite.com/streaming/file.mp3
MediaElement will determine the opened stream type as mp3 but real data will came from recit.aspx.
It's just an example; your implementation may differ. But I hope you've got my point.
Click to expand...
Click to collapse
Hey, thank you! It actually did the trick. In a day or two I'll try to release fully working player.
CR1M1N4L said:
Hey, thank you! It actually did the trick. In a day or two I'll try to release fully working player.
Click to expand...
Click to collapse
Damm that would be awesome
kingjovius said:
but i would have thought zune pass is good enough? Then again, if youre in a country without zune pass that might be a problem (i dont have access to zune pass and am waiting )
Click to expand...
Click to collapse
Thats the problem with Zune Pass in most countries it's not available right now. Also, Blade0rz mentioned it already earlier, Zune Pass is not that cheap.
I like Grooveshark better because i can use it with almost any platform, Win, Linux, MacOS, iOS, Android and maybe in near future with WP7 ^^
And you can upload your songs if Grooveshark don't have them, which i use a lot because I'm not listening to common music that much.
CR1M1N4L said:
Hey, thank you! It actually did the trick. In a day or two I'll try to release fully working player.
Click to expand...
Click to collapse
That indeed would be awesome
CR1M1N4L said:
Hey, thank you! It actually did the trick. In a day or two I'll try to release fully working player.
Click to expand...
Click to collapse
Great! Looking forward to this
FYI, the "random song" thing seems to have fixed itself today. URLs are coming back just fine, so there shouldn't be any barriers any more
Sorry guys, but I guess I won't be able to do the app because of lack of time. Anyhow, if anyone have enough time and skills to do the app, there's some stuff that might come in handy:
.htaccess file:
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*?)/(.*?).mp3$ http://$1.grooveshark.com/stream.php?streamKey=$2 [NC]
Stream URL:
Yes, I know, there are more nicer ways to do that. This is just to understand how to do the redirect and use your host as a proxy:
Code:
var newUrl = "http://www.yourhost.net/groove/" + url.Host.Replace(".grooveshark.com", "") + "/" + url.Query.Replace("?streamKey=", "") + ".mp3";
Refactored API:
I've made some refactoring to the API (comments, split classes, code optimizations etc). You can download refactored API (source + binaries) here. I hope Blade0rz won't be mind.
Suggestions:
I was planning to make the app to look very similar to Zune player on WP7. I would make a panorama app. In the first page, for starters, "Search", "Radio" and "Playlists" menu items could be added. The second page would display history (album cover) and would open "Now playing" page when clicked. In the third page, by using WP7 toolkit top/new songs/albums could be should if that is possible by the API.
Notes:
Please be aware that it's unlikely that that sort of GrooveShark app would make it to the MarketPlace since using this API is against GrooveShark TOS, therefore it's a great chance they will comply.
CR1M1N4L said:
Sorry guys, but I guess I won't be able to do the app because of lack of time. Anyhow, if anyone have enough time and skills to do the app, there's some stuff that might come in handy:
Click to expand...
Click to collapse
I've been in touch with CR1M1N4L and I will be taking up this project, so thanks to him for refactoring some shoddy, 5 minute coding & helping with fixing the streaming issues
Please be aware that it's unlikely that that sort of GrooveShark app would make it to the MarketPlace since using this API is against GrooveShark TOS, therefore it's a great chance they will comply
Click to expand...
Click to collapse
Technically we should be OK as long as we don't use the Grooveshark trademarks (name/logo), but MS aren't likely to be very co-operative there, so everyone should be prepared to sideload this project! Shouldn't be a problem for anyone though given the relative ease of using Chevron.
Here is even a chance to make some money.
mmunkel said:
We'd like to develop for Windows Phone 7, but we don't yet have a developer...if any of you guys think you've got what it takes, e-mail [email protected] and show us what you've got.
Click to expand...
Click to collapse
Last post on the official Grooveshark forums:
(But I'm not sure if this an official statement, so could be just a joke)
http://forums.grooveshark.com/discussion/1262/Grooveshark-on-Windows-Phone-7
On his profile page it says Roles: VIP
So it's definitely worth a shot.

Nodo with SQL

Hello there,
I am developing a game for wp7, and I want to have a user login with skills an level. This users and levels I want toread and write from an SQL database.
But until now I found no API to connect. Is there any free solution to implement a database in wp7 (not linq)?
Thank you
Sent from my HD7 T9292 using Board Express
Nope, not in Nodo. You have to use linq-To-XML. This should be perfectly fine for small amounts of data.
If you can wait for Mango you can use a SQL CE database, but you still need to use Linq-to-SQL:
http://msdn.microsoft.com/en-us/library/hh202860(v=VS.92).aspx
Sent from my 7 Pro T7576 using Board Express
I know linq as a local database.
If I understand right linq-to-SQL is a one time sync? So I have to sync linq and SQL in the beginning and end of game.
So I would create for each user a linq db and then all linq dbs would be synced in SQL?
Sounds difficult, but I will give it a try this we
Sent from my HD2 with NoDo using Board Express
win98 said:
I know linq as a local database.
If I understand right linq-to-SQL is a one time sync? So I have to sync linq and SQL in the beginning and end of game.
So I would create for each user a linq db and then all linq dbs would be synced in SQL?
Sounds difficult, but I will give it a try this we
Sent from my HD2 with NoDo using Board Express
Click to expand...
Click to collapse
Sorry, do you want to connect to a remote SQL database on a webserver, or a just store a database on the phone itself? If on the phone itself, you can create on database for each user (Mango only).
If you want to sync with a remote server, you will need to interact with the server using some sort of Web Services. Then the Web Services do the reading/writing to/from the SQL sevrer and send the information back to the phone (you can currently do this in Nodo).
It should not be local, if its possible.
I want to subscribe on a free SQL host like I've of these: http://www.free-webhosts.com/free-mysql-database.php
Then I want to do the user management there and want do update the level and skills of the user who is logged in. A bit like a windows live account with the gamer points.
I would be glad if I can use SQL commands with c#.
I hope it become more easier to understand . Thank you for helping.
Do you got any sample code or tutorial how to use SQL in wp7? I failed :-D
Sent from my HD2 with NoDo using Board Express
With NoDo, you can't directly access an SQL server.
And even with Mango, I'd be careful doing such a thing, it can really be dangerous on many levels.
The best solution would be to use a web service, which could be accessed from your phone (via the WebClient class) and would handle the dirty work of connecting to the database and executing SQL queries (eg. inserting or retrieving data and outputting in XML format). This way even if you alter the structure of your database you don't have to change a single line of code in the app (that means you'll avoid resubmission), but only the web service code.
As a general suggestion, handle the more things you can server-side.
SQL Protocols are not really designed to work over slow/unreliable connections like the Internet, especially when it comes to 3G and so on. So it really would be best to encapsulate everything into a WebService to which you then send the Nickname, Game and Score and which allows to get the top rankings as well as a given players rankings.
I guess we won't see the ability to connect to remote SQL Servers through ADO.Net as it most likely would lead to bad user experience anyhow.
StevieBallz said:
SQL Protocols are not really designed to work over slow/unreliable connections like the Internet, especially when it comes to 3G and so on. So it really would be best to encapsulate everything into a WebService to which you then send the Nickname, Game and Score and which allows to get the top rankings as well as a given players rankings.
I guess we won't see the ability to connect to remote SQL Servers through ADO.Net as it most likely would lead to bad user experience anyhow.
Click to expand...
Click to collapse
i am good in sql and there are free sql hosters, thats why i wanted to try it with sql.
so, the webservice, is this kind of php? can i also get some free hosters for these services?
i found in google some sample code, but i dont understand where the data will be "stored". Is this going to be like a "cloud app"
edit: grrr looking for "free webservices" in goog but i just find free homepage hosting sites
I find this topic really interesting because it tackles something I just can't wrap my head around: getting Windows Phone 7 to interact with a SQL database just doesn't seem like it's been explained in a straightforward enough manner.
For instance, my case is one where I need my app to extract info from a MySQL db stored on my website, parse that data and display each entry as an item in a pivot control. Turns out that no, SQL is not supported natively so I must go out of my way and recode my data into something that WP7 can understand; I read it's XML and that makes sense, so I have designed an auto-updating XML file on my website with data I want fed into the WP7 app. This is a workaround to connecting directly to a SQL database, as it only requires there to be a PHP file periodically creating an XML file with the info I need and it won't expose any SQL connection credentials, etc. I do not manage users on my site, so maybe win98 needs to find a way for WP7 to call a PHP page, send it a user ID or something and then retrieve that user's info. But any way, I think XML can work perfectly as a means to communicate between SQL and WP7 apps.
But, I don't know how to make this XML file populate the pages of my app. In Expression Blend I can import the XML as sample data, but it does this during design time and not at run time. This means that Blend can see my data and display it how I want it displayed, but I can't take this to runtime and have it displayed like that on the phone. So far, I haven't seen a single easy to follow step by step tutorial on how to parse information coming from an XML file on a WP7 app.
Any suggestions on how to overcome this hurdle we both face? I am familiar with web programming, but I know jack sh*t about C#, so Linq is greek to me.
Ok so I really got this wrong, that with Mango you get SQL and ports support so that you can remotely interact with an SQL server, with sql commands pretty much like you would do on a desktop and how you could do with WinMo ??
Best practices aside, You still get to do that with webservices ?

offlnie webapps

I'm not sure why this works on the KIN (because it doesn't work on the wp7), but it does. The browser on the KIN supports the HTML5 cache manifest command, info here (http://en.wikipedia.org/wiki/The_cache_manifest_in_HTML5). To prove this here is a working offline tetris game I have on my KIN (tetris.alexkessinger.net), the only problem is I can't actually play it because there are no arrow keys on the phone, but it is fully functioning (I get to watch the pieces fall).
So here is my idea... I see we do have developers in this forum so maybe they can try to either create some javascript webapps designed to run on the KIN that use the manifest to cache the needed files.
OR maybe we could use the cache manifest to cache an executable file and then have that filed executed through another website that gives the command to run it. I'm sure that is just wishful thinking and more than likely won't work, but I thought I would throw that out there.
Nice suggestion, but unfortunately it will not work. Just because the game is available offline doesn't mean the browser supports the HTML5 cache manifest. Pretty well every browser that I know of does and always has had a cache to store some webpage files. The KIN browser is no different. The KIN is just storing the javascript from that webpage in the cache. The tetris game is not the type of web application the HTML5 cache manifest wiki describes. Furthermore, to cache anything from the KIN browser, the 'anything' must be supported by the browser--such as the javascript used to run the tetris game. Executable files are not supported by the KIN browser.
Thanks
Thanks for clearing that up for me, like I've said before I'm not a programmer (at least not in the last 10 years). However, this game is successfully cached and able to run hours after visiting the page. So maybe there is a way to duplicate it so that other javascript games can be made available to use offline. I just don't know how this game is caching the coding along with the images needed to run it. I thought it was the cache manifest because when I view the page source it says "<html manifest="tetris.manifest">".
Let me know your thoughts, I plan to try and duplicate it next week with a blackjack game, but I am in the middle of finals so I don't have time until the middle of next week. Also, like I said I'm not a programmer so I will be trying to reteach myself, so it's gonna take a while and probably not work.
I may have posted the wrong wiki link, but the cache manifest comand does work. Below is a link to a game, with needed images, that will cahe on the phone. it is available around 12 hours after opening it. So if you put it as an "app" it is almost the same thing. Just visit it before you leave wifi and youll be good until you are in wifi again.
http://192.168.1.22/webapps/bubbles/bubbles.html
kintwofan said:
http://192.168.1.22/webapps/bubbles/bubbles.html
Click to expand...
Click to collapse
It was a worthy try, man, but that link is to an address on your local network. Do you have someone on the internet we can access? Or can you port forward port 80 through your router, to that system, to allow external access?
It is a router problem. I tried to open port 80 last night, but it still is not working. I am going to play with it some and see if it is a firewall problem OR if I just messed up when setting up the port forwarding. Sorry, like I've said I am not an expert.
It's a bad address, cause he's giving out the LAN address asigned by the router.
For you to be able to use it, you would need to be in his lan or in an VPN to his lan.
To real test what you got externaly, you need to give the external (to world) ip which is given by your own router admin panel, and/or websites like whatismyip.com.
then you need to do Nat from your external Ip to your local ip, specifying so in the router.
Or else, just share the website in a zip, and save time to do stuff like eat an ice cream, drink a soda/beer and have fun.
Thanks John
Thanks for the advice because this was my first time trying to make it available to everyone and clearly I couldn't do it. However, here is the file folder below. I have also done a couple of simple java apps that don't have any images (tic tac toe, blackjack, and the scientific calculator that was created by gsearle) I didn't include any of them because this bubbles one has images and shows the cache manifest works better. Also I don't have gsearle's permission so I wouldn't redistribute his work.
RE : Offline webapp.
Here is mine : a QR-Code Generator. No flash, java, php, ...just HTML5 & JavaScript. Works offline too!

Syncing the Kin--Linux

Long time follower of all of the work done here. Its a shame that the device is so locked down and no progress has been made. However, I thought I would share with anyone who is interested that its now possible to sync your kin on linux without the need for a virtualbox and windows loaded up.
You can find the fork of lib-mtp at: github [dot] com/kbhomes/libmtp-zune
I've tested it and am able to now sync via terminal or with gMTP. The project was started with the hopes of syncing zunes.. Zune has the same handshake process as the KIN (MTPz)
The background on how it came to be can be found on his project blog: kbhomes.github [dot] com/blog [dot] html.
Hope this helps anyone else who just would like to sync pictures, video, images, songs.
Back to lurking I will go.
Well, it was possible already. No one here uses virtual machines (i hope) in linux but mono runtime.
At least till Kino version comes, so more native (c++ over libusb) approach would be taken.
If you are able to use the standard MTPz way (not our shorcut mtp propietary command), a better approach would be to help here into decrypting the app syncing/uploading procedure, so we could understand what xna framework does in the background and do homebrew launch (which could then help the phone development).
On the other hand, being able to "transparent" sincing would be kind of a good stuff if you could use the kin in software like rythmbox
Sounds good. I hadnt thought abou going at the KIN through Linux before although it would make sense if the KIN was open source. I dont know how much this will help us though.
What he's providing is a fork of the mighty libmtp libraries & tools which is a open implementation of mtp (right one) used by almost any access on the linux environment to mtp devices.
in that fork, he redid the real stuff (aka MTPz) which could be just said as "bypassing" the kin handshake between zune and the device. At least if kin operates exactly like a Zune device (which we think).
It could help by using the kin as a normal (not protected) device on linux providing which kino does IF programs are redirected to it instead normal libmtp, so you can access files and also use in Zune-like software.
On my test field, i wasn't able to compile the software "out of the box" to try on my debian box, so no providing compilation instructions nor a .deb file (debian & ubuntu flavours) or a .rpm file (fedora & redhat 's) makes it just another utility which is non usable by common joe.
What i meant above is that the blog (which i followed back in the day) explains what he did for reversing mtpz protocol, but is not a walkthrough, so we can't just take it and learn, for example, how the kin receives "half succesfully" a XNA application, as i did back in the day in the thread "XNA madness".
better now?
What f we programm an application split it in half and add a part we dont care about for the other half that does nothing then send it to the device with a strip that tells it to complete itself by recommbining itslef on the device?

[Q] cant view my dvr cameras on windows rt

Hi all
I have purchased a windows Rt and love it. The only thing I can't figure out is I can't access my dvr cameras though internet explorer on my device through my ip address and port number. I can view it on my desktop pc.
Is there any app or way I can view my dvr host on windows rt??
steve.zdravko said:
Hi all
I have purchased a windows Rt and love it. The only thing I can't figure out is I can't access my dvr cameras though internet explorer on my device through my ip address and port number. I can view it on my desktop pc.
Is there any app or way I can view my dvr host on windows rt??
Click to expand...
Click to collapse
BUMP
How is the DVR content presented? If it's HTML(5), that should be no problem at all, so it's probably not. The next most likely is Flash, which RT supports but which may not work when specifying an IP address. You could try using the registry tweak that was previously required for Flash on unknown sites (see the EnableFlash script in my signature). If it's a Java applet, you're screwed (in more ways than one; if you've had the Java browser plugin enabled on your home PC for the last few months, there's an excellent chance that your machine has been infected through it; that thing has atrocious security bugs). If it's some other third-party plugin, for example an ActiveX control from the DVR manufacturer, it's probably not going to work on RT just because RT run on ARM chips and typical ActiveX controls are compiled for x86 (it's possible to make ARM ActiveX, but nobody does and you'd need to "jailbreak" the device before installing the plugin anyhow).
GoodDayToDie said:
How is the DVR content presented? If it's HTML(5), that should be no problem at all, so it's probably not. The next most likely is Flash, which RT supports but which may not work when specifying an IP address. You could try using the registry tweak that was previously required for Flash on unknown sites (see the EnableFlash script in my signature). If it's a Java applet, you're screwed (in more ways than one; if you've had the Java browser plugin enabled on your home PC for the last few months, there's an excellent chance that your machine has been infected through it; that thing has atrocious security bugs). If it's some other third-party plugin, for example an ActiveX control from the DVR manufacturer, it's probably not going to work on RT just because RT run on ARM chips and typical ActiveX controls are compiled for x86 (it's possible to make ARM ActiveX, but nobody does and you'd need to "jailbreak" the device before installing the plugin anyhow).
Click to expand...
Click to collapse
The DVR is set up with its own ip and port forwarding number, and that how I connect to it from other desktop PC's. Or it gives me an option to view it through a program called CMS lite which the Win RT doesn't allow me the download. I have jailbroken my RT as well.
What happens when you connect to that IP and port on your RT device? What do you see in the browser (if anything)? Does it connect, or does it say it couldn't find the site? You haven't actually explained the problem very well at all, even to the point of saying what device it is. We probably don't have your exact setup at home, so you'll need to be very precise describing it so that we know how to fix it.
You also didn't answer my question in the previous post. How is the content normally presented? Flash or HTML5 should be fine, but *might* take some tweaking. Java or a plugin are unlikely to work, although I suppose it's possible that the x86 emulator could be made to work with a plugin.
For that matter, have you tried the x86 emulator with your CMS Lite program? It's unlikely to work, but worth a shot.
GoodDayToDie said:
What happens when you connect to that IP and port on your RT device? What do you see in the browser (if anything)? Does it connect, or does it say it couldn't find the site? You haven't actually explained the problem very well at all, even to the point of saying what device it is. We probably don't have your exact setup at home, so you'll need to be very precise describing it so that we know how to fix it.
You also didn't answer my question in the previous post. How is the content normally presented? Flash or HTML5 should be fine, but *might* take some tweaking. Java or a plugin are unlikely to work, although I suppose it's possible that the x86 emulator could be made to work with a plugin.
For that matter, have you tried the x86 emulator with your CMS Lite program? It's unlikely to work, but worth a shot.
Click to expand...
Click to collapse
my device is a windows rt surface. when I open internet explorer and type in my ip and port number in the search engine it comes up with my login and password which I type in. after that the screen comes to a blank white screen which gives me the option. Webserver or CMS lite setup I always view them from webserver. Once I click webserver the screen just says on a blank white screen.
as for how the content present normally im not really sure.
A simple way to tell is to load the page in a desktop browser where it works, then right-click the video and see what menu comes up. If it's the Flashplayer menu, that's something that RT can handle. If it's something else (Silverlight or Java or a custom ActiveX), that may not be possible. Another way to tell would be to save that blank page to a file (I believe Ctrl+S works for this, at least on the desktop mode of IE, or you can do it from the Tools->File menu, or the File menu on the menu bar that is shown when you tap Alt). Send or post the HTML somewhere that we can read it, and we can tell you what it will take to view the page.
another question.. im still new to the windows rt group I have jail broken the RT surface. Is there any torrent client for downloads.
I wanna download movies from a website. thanks
Free Download Manager (it is in the ported apps thread) can be used as a torrent client. However discussion of piracy is prohibited so might want to zip it on the movies part.
Monotorrent was attempted on RT but I think ended up being buggy.
SixSixSevenSeven said:
Free Download Manager (it is in the ported apps thread) can be used as a torrent client. However discussion of piracy is prohibited so might want to zip it on the movies part.
Monotorrent was attempted on RT but I think ended up being buggy.
Click to expand...
Click to collapse
can u please send me the link
Read the forum rules, especially the first one. Then, read my signature. I don't mind helping people find obscure stuff, but this does not qualify. Please put forth at least a little effort on your own part...
I shouldn't have to share a link having told you where it is. Its easy to find, a) its in the list of ported applications in the RT development and hacking section. b) it has its own thread in that same section. c) it is listed on google. d) it is listed on forum search.

Categories

Resources