Windows CE (TCPSTK interface) - Windows Mobile Development and Hacking General

Hi guys,
this is my first time using this news group... so hopefully I'm posting my question at right place..
I have previously developed a firewall on win 2000 by hooking to the TCPIP.SYS using TDI layer.... I like to do the similar thing on WinCE 4.2 and 5.0. But as you all may know this OS doesn't support TDI but only LSP. The problem with LSP is that not all the calls goes through LSP some may by pass it and instead they directly go to the TCPTSK.dll (e.g. IE)..... is there any other way available to capture these calls before it goes to TCP?
Thank you for your feedback.

Related

I've managed to compile cryptophone for PocketPC 2003

I've build a version of crypto phone for PocketPC 2003. ( unsing the sources from www.cryptophone.de ),
with some workarrounds for license test.
I don't have two phone to test it yet. If anyone can test it please send feedback.
As i see it use data call as link layer so your provider must suport it.
PS: Who's testing it , please send feedback.
I've tested in my Qtek 2020, (XDA II, MDA II…).
Is it working? I was able to compile it too, but it died on exchanging keys.
mamaich said:
Is it working? I was able to compile it too, but it died on exchanging keys.
Click to expand...
Click to collapse
Don't work. :-(
I have programmed 2 xda 1 with wm2003 and the crypto, it works perfectly. The only bug is the "file" bar vanishes after a call is placed or received, other than that its great. 8)
Can you post what you changed in the source file in order we could reply your compiled code?
The idea is simple, if we can have access to the original source code and can do the changes you documented, generating the same code as you, with the same hash value for the encrypted code, we can assure that your code have the same security of cryptophone.
dumb ?
what is cryptophone?
Hi,
i am very interested in this (or a similar) software for
the Wallaby or Himalaya platform.
Anyone here who has a working & easy too install binary?
(Or are there any real free & opensource applications like cryptophone?).
kind regards,
Ben
Has anyone managed to get cryptophone working on the XDA ??
... or find a similar program ??
Regards
There are several similar commercial projects. Just wait some time for their announcements.
mamaich said:
There are several similar commercial projects. Just wait some time for their announcements.
Click to expand...
Click to collapse
Hi mamaich,
thnx for that prompt reply
I know about cryptophone.de, raseac.com.br & caspertech.com
Are there any others I have missed ??
Regards
John
2-3 russian companies are also working on similar projects. I don't know their sites.
cryptophone Somebody to compiled? for motorola smartphone mpx220 :?
one more company.
http://www.securegsm.com
and question - where is source download page on http://www.cryptophone.de ?
in general "cryptophone" application isn't difficult
- good vocoder
- some crypto
- good realtime data transfer - CSD for GSM network
- some audio components like AEC
could some one point me to good ARM implementation of vocoder with 2.4-4.8kbitps bitrate? ARM9(v5) PXAxxx ~100MIPS.
Free is preferable, but reasonable commertial offers are welcome too.
just a question,
isn`t it possible with the sourcecode of this software and the sdk for windows mobile 2003 smartphones to make a installer?
is very interesting, or?
is there any other software for ppc or smartphone avalable?
a free wm5 client for this should be awesome! coders go compile now!
is the encryption limited to "only" this version of application ?
- or is there some sort of standard ?
ryhor said:
one more company.
http://www.securegsm.com
and question - where is source download page on http://www.cryptophone.de ?
in general "cryptophone" application isn't difficult
- good vocoder
- some crypto
- good realtime data transfer - CSD for GSM network
- some audio components like AEC
could some one point me to good ARM implementation of vocoder with 2.4-4.8kbitps bitrate? ARM9(v5) PXAxxx ~100MIPS.
Free is preferable, but reasonable commertial offers are welcome too.
Click to expand...
Click to collapse
here
http://www.cryptophone.de/support/downloads/downloads.html
Lord Ashmedai said:
I've tested in my Qtek 2020, (XDA II, MDA II…).
Click to expand...
Click to collapse
Hi, did you manage to get it to work?
I tried on my O2 xda... it hung on the key exchange part...
It concerns me that this program starts two processs, spcore.exe and ui2003.exe. I have not looked over the code, but can you tell me why it must use two. Furthermore once they are going there is no way to stop the spcore.exe. My guess is that if that process contains the thread that is waiting for tapi events, its stopping mechanism has not been implemented properly. If you want to make a thread that is waiting for the event for line state then when the user wants to stop the thread/process, the event interest needs to be reset. eg SetCommMask(hSerialHandle,0); ,but it must be done from the ui thread not the waiting thread because obviously the waiting thread cant do anything. Once it is set to 0 (as apposed to EV_RXCHAR for example) the waiting thread will finish waiting imeadiately.
I tried sending a message to destroy the window with no effect, I then tried using terminatethread to stop it but that did not work so it must be in an api call (such as waiting).
On my mini it starts up ok, and dose not interfear with the phone. I could not test the functionality because the only other phone I had with me was my xda and it dose not install corectly on that. No error messages on intalation but the icon in the program files is not shown properly and it fails when I try to start it.

xda CE 2005 Project

We seem all to be waiting for a version to leak of the CE 5.0 for our devices, and at the same time we seem to think that this will not happen due to the fact our providers are going to want to ship it on new devices and not upgrade the old ones.
Well Mwang put me in the mood to do some searching and this is what I found.
Because Windows CE is in components, you can create a custom version of the OS that includes exactly the elements your particular device requires—no more and no less. Using the Windows CE development tool called Platform Builder, you can create a customized version of the OS, called an "image," that you then download onto your device hardware for debugging. If your hardware is not available yet, you can run your image and debug your applications on the included x86 emulator. That allows the end-user application developer and the low-level system software developer to work in parallel on the same project.
Click to expand...
Click to collapse
http://msdn.microsoft.com/embedded/getstart/bring2market/plan/learn/windowsce/default.aspx
Well it seems that you can download a 120 days trial version which would mean you would have to flash your device in 120 days.
Windows CE Evaluation Version
Windows CE integrates reliable real-time capabilities with advanced Windows technologies to rapidly build a wide range of innovative, small-footprint devices. The evaluation version is a 120-day trial version of Windows CE, valid from the day of installation. The CD and DVD versions include a copy of Microsoft eMbedded Visual C++ 4.0 Service Pack 4. The Evaluation Edition (download) requires you to download eMbedded Visual C++ separately.
Click to expand...
Click to collapse
http://msdn.microsoft.com/embedded/getstart/evaluate/default.aspx
Think this is the homepage
http://msdn.microsoft.com/embedded/windowsce/default.aspx
So what is stopping us ?? Or Cant I read?
Any body in the mood for this??
Downloading now What could go wrong ?
http://www.microsoft.com/downloads/...50-D311-4F67-9FB3-23E8B8944F3E&displaylang=en
Does this work for you gues ?
I tried this a while back.
Its not as easy as it sounds, firstly you have to correctly setup all the drivers for the hardware.
I wouldnt garantee that it has stuff like the phone apps ready to be compiled in either.
lastly, you have to make it into the correct format for the installer prog, I dont know if the package will output a himaupload.exe compatible rom.
Let me know how you guys do though, it would be nice to compile our own OS!
It's installing on my computer :shock: i want it on my PPC
Well I found a 30 min tutorial on the platform builder and it looks like a lot of the stuff is around (Wifi), What we will miss is the camrea app, but hell its a start.
Ps cant find that link anymore, and the posted link works great.
MDAIIIUser said:
Well it seems that you can download a 120 days trial version which would mean you would have to flash your device in 120 days.
Click to expand...
Click to collapse
Im sure it's a 120 days from the day you install it on your Desktop PC :?
definatly not as easy as you think!
i had the older version and i made some images for X86 machines (to make them thin clients)
you need every driver for the device that it will be installed on so theres alot more required than just the platform builder,
check it out anyway, its still fun to use and you can make custom CE's for old PII machines (routers, thin clients etc)
Well Bosjo, would that not give you 119 days to post a BA Rom?
@MDAIIIUser
Well i dont know, but Im guessing that the ROM itself will expire 120 after Desktop installation
@bosjo
Well you better hurry up and do good documentation so that I can rebuild your posted rom in 118 days.
@MDAIIIUser
Ha ha ha, well don't get your hopes up, Im just a plumber that bought a BA to save some time and get projects more organized........... Well that what just to be a laughf, this device has eaten every spare second I have had since the day i bought it, and it's still crappy...............
What? You mean you can use it as a phone, thought it was only good for the pocket solitair, how did you do it? and can I read it on wiki?
You see I am True born again MDAIIIUser and
"I haveth faith in thou"
I've pu the windows CE 5.0 installer in the upload folder
Good job you got this , see your pm
Hmmm... well, if someone can create a ROM that won't expire or brick my device, I'm willing to help with testing...
Let me know if you need me...
hehe. Its impossible to create WM2005 from the stuff offered with the trial WinCE 5.0 Platform builder.
Hint: WM5 has version 5.1. PB offers 5.0
im wondering.. where would you get ALL the drivers from? im sure HTC will not be willing to help us here..
@Manich
I truly respect your post and I am very much aware of not having your knowlege, insight, understanding, hacking competence.
That is why I am amember of this forum, to learn from people like yourself in order to try and get the best for my device. To share what I have learnt with others (I use wiki for that).
So please, please share with us a better idea of how we can get 2005 on a BA. It would save me a lot of time searching on the net, uploading sdk that are of no use as well as moving files on the ftp.
A "it cant be done answer" I could accept if it came from somebody else without your knowlege and I remember reading that somebody wrote something along the lines if it can run it can be cracked (smile).
With alll due respect
MDAIIIUser
Generally it cannot be done as you don't have a board support package for BA or other compatible platform. With lots of hacking and reverse engeneering you can write all drivers and all applications absent from Platform Builder (like cprog, SMS client, SIM toolkit, etc), but it would be only a waste of time. It would take as much time and would be as useless as making a Linux for BA. Better buy a device that originally ships with OS you want.
The only hope for getting WM5 on BA is that some person from MS would offer it or someone would get a device with such a ROM. Even a locked device with a signed ROM would help.

How do I stop the PPC from turning off?

Hi guys,
Hope this hasn't been asked before too many times. I did do a search but couldn't find anything.
I've just written a small app for ppc (works on 2002, 2003 and WM5) to act as a countdown timer. However, unless I set my Wizard to never shutdown, it turns off whilst the timer is still going.
I've had a look through the latest SDK's (I'm using Visual Studio 2005 and the latest version of the Compact .NET Framework) but can't figure out how to stop this.
The only way I can think of is to find the reg key that controls this (I assume there is one), copy it, set it to a rediculous or null value and then copy it back again on shutdown. But it seems like a god awful solution and prone to any number of errors where it doesn't get copied back.
Is there a simple ".NET" way to do this?
BTW Although I've been a developer for [cough] years, I've never written anything for PPC before.
Cheers,
Bassey
Hi
take a closer look at HKLM\System\CurrentControlSet\Control\Power. There you will find system and user idle timeouts. To prevent a PocketPC WindowsMobile system from going to sleep, you must reset the System idle timer periodically. This is done by a call to
void WINAPI SystemIdleTimerReset (void);
I think this will be the same for WinCe 3.0 up to WinCe5
If you think about a good programming starter book, I recommend Douglas Boling 'Programming Microsoft Windows CE .NET' (3rd edition). It talks about nearly everything. It is my favourite book.
regards
Josef
Thank you very much indeed. Have just ordered the book as well.
Cheers,
Bassey

Really Hacking mobile devices

Who can tell me what the "hackable footprint" of a "networked" WM5 device is ?
What I mean is, what ports or services are running on a networked device that I can send commands to ?
Back in the old days with windows, a fresh installed computer had about 12 ports open which enabled a variety of hack attacks.
Using S.O.T.I pocket controller (enterprise) I can see many services running. However, a portscan shows no listeners (quite normal, as there prolly ain't no IIS , SMTP or NETBIOS service running.
The question remains, what's the hackable footprint ? Where should I start to look to hack my way into a networked device ? Has it ever been attempted ?
I did find some usefull stuff here : http://www.phrack.org/phrack/63/p63-0x06_Hacking_WindowsCE.txt
I'm talking about my own device here, not someone elses. Hope I won't be banned for asking this kind of stuff.... I'm just curious.
There's another Phrack article/presentation that goes into more detail on general hacking of WM devices, linking to the post you posted. They don't discuss much network hacking, but day-to-day, there are other ways into the Windows Mobile devices...
V

Developping a bluetooth gateway on htc hd2 to interface blutooth keyboard BK600

Greetings,
sorry to post again, but it seems that i posted in a wrong place (htc hd2 forum), because this post adress a wm software development.
So, this is the problem : I'm stuck with my old BK600 (com one, but omiz and freedom kb rebranded)
There are new keyboard (expensive), news driver (not working), future drivers (never going to be released), so as i'm a software developper, i wasn't really glad to abandon and to buy another. The problem is that've never made a driver for windows mobile, and i'm not specialized on bluetooth, so be indulgent...
After searching internet and seeing some articles, i've been on broadcom site (they're doin' the bt stack, so it's normal to go on their site ... guess what ...
i've downloaded the bluetooth stack sdk)
As i develop under linux, but also under windows, i've a visual studio 2008 installed. I compiled the Spp (probably serial port) sample, and without any driver the keyboard paired, negociated a serial port and the monitor show byte received when typing on the keyboard.
So now, if someone know some place to find tutorials to write windows phone driver, i take.
I also would like to discuss about another approch.
What would you think to transcode the keyboard code received in a thread and to redirect them on standard input ? would it be possible ?
Anyway, my needs are very simple, just a bluetooth kb to type on it, no extra functions, ...
Regards, and thanks you for your answers and help.
CLS.
Hi, it seems that there already is such a software, see:
http://www.youtube.com/watch?v=dLRXSBcu6WI
It is stated that it also supports bluetooth keyboards and mouses.
HI radhoo,
they seems to have a problem to release the software (5-6 month they say they're going to), but nothing
on this page : http://www.teksoftco.com/index.php?section=blueinput&tab=download
you click on this link http://www.teksoftco.com/index.php?section=blueinputbroadcom
and you get on this broken page :
http://www.teksoftco.com/index.php?section=blueinputbroadcom
as you see on the xda-forums
http://forum.xda-developers.com/showthread.php?t=628538&page=2
we are a lot to wait for this software, but nothing.
that's why i'm trying to do a little piece of software (which i'll consolide after i think)
I'm taking the base of the broadcom/widcom stack, and my approach will be to transcode chars to stdin.
It seems that there is a C# wrapper, so it think that i'll recode in c#
anyway,
thanks for answering and long life to xda-dev (very useful)
Ludovic.
work status
- have found a c# wrapper of widcom dll (recompiled) : works bu ti'm rewritting some part of the wrapper as it seems to lacks some feature
- in parallel : working on c++ legacy broadcom sample (works perfectly now with my keyboard, bind with com port done, receiving "things"
now struggling with threads to pump messages and transcode.
If you have something that gets the basic keyboard working, I'd love to test it out.
if your driver is ready for testing, please send me a beta of it for testing on my htc hd2
thanks
I have a same problem .
CLS have u finish your program already? please
I would like to use BK600 on my htc hd mini too
hi, how far did you get?
still at it...?
lots of succes, vicenza

Categories

Resources