Posts from 2010

Configuring Eye-Fi Manager as a Service for Windows Home Server

After configuring my Eye-Fi Manager appliction on the Windows Home Server, I quickly noticed a problem. The application is executed by the currently logged on user and not as a service. Because I am connected to the Windows Home Server via Remote Desktop I logoff the server once I’m finished and the application shuts down.

Solving the problem requires it to be running as a service. I looked at the forums for Eye-Fi and their website and there is a thread on the forum for exactly the same thing – Configuring Eye-Fi Manager as a service, however it doesn’t actually go into any details so I had to figure it out for myself.

The Service Command (sc.exe) application makes this real easy for me to do. The following command should as done the trick.

sc create EyeFiManager DisplayName= “Eye-Fi Manager” start= auto binPath= “C:Program FilesEye-FiEye-Fi Manager.exe”

Unfortunately when I tried to start the service, Process Explorer showed me the Eye-Fi Manager.exe application as running however after a few seconds it terminated and the Services MMC console gave the error that the application didn’t respond in a timely fashion, so the application is obviously not designed to be a service, I therefore needed a middle man.

Microsoft produced a utility for NT4 called srvany.exe which still works in Windows versions today. The premise is very simple. srvany.exe is the service executable and you provide your executable as a parameter for srvany. The result is that srvany handles the service and responds to Windows as required.

I’ve put a copy of the executable srvany.exe on my Windows Live SkyDrive for you to download for your own uses. In my example, I placed the executable in the System32 directory so that I can call it without declaring the path to the application and without having to add custom strings to the Path environment variable.

To this end, the command becomes the following:

sc create EyeFiManager DisplayName= “Eye-Fi Manager”  start= auto binPath= “C:WINDOWSSystem32srvany.exe” 

Once this is done, you need to instruct srvany the name of the executable you want it to handle. This is done easily using the reg command line tool as follows:

reg add HKLMSYSTEMCurrentControlSetServicesEyeFiManagerParameters /v Application /t REG_SZ /d "C:Program FilesEye-FiEye-Fi Manager.exe"

Starting the EyeFiManager service I created that launches srvany.exe will now start the Eyei-Fi Manager.exe application and it will run as required, with the exception that none of the user interaction such as thumbnail previews of the uploading pictures can be seen as it’s a background service.

I proceeded to test it and unfortunately I noticed a problem. Although the application was running it wasn’t processing any uploads. I immeadiatly assumed the problem was the permissions relat

reg add HKLMSYSTEMCurrentControlSetServicesEyeFiManagerParameters /v Application /t REG_SZ /d "C:Program FilesEye-FiEye-Fi Manager.exe"

ing to the default account used by servcies which is the System account. I decided to change thhe service to use the NetworkService account as this would allow it access to the network.

The following reg command performs this for me:

reg add HKLMSYSTEMCurrentControlSetServicesEyeFiManager /v ObjectName /t REG_SZ /d "NT AUTHORITYNetworkService"

After restarting the service, I still couldn’t upload the photos. I assumed it was NTFS permissions now, so I added the NetworkService account to the RW_7 group on the Home Server, which is the group created by Windows Home Server for permitting Read and Write access to the Public folder*.

* The reason I upload to the Public folder is that I like to rename, tag and adjust all my pictures before allowing them into the Photos shared folder.

Unfortunately this still didn’t solve the problem. Using Process Explorer and comparing the results (specifically the TCP/IP Stack) of the Eye-Fi Manager.exe process when it was running as a local user and the NetworkService account showed that the NetworkService service version didn’t open up the required TCP Listening ports.

At this point, I created a service account called svcEyeFi and used that account to launch the service, however this has the same results as the NetworkService account even after adding the account to the Local Administrators group.

I have now resorted to the the idea and am running the account using the Local Administrator account which is the account you use to login to the Windows Home Server Console for management purposes. It’s not ideal for security and principal of least privilege, however it works so that’s a plus I guess.

I decided that I wanted my service to look a bit less like a virus or trojan service and more genuine, so I deleted the service using the sc delete EyeFiManager command and then re-created the service using these commands as follows:

sc create EyeFiManager DisplayName= "Eye-Fi Manager" type= own start= auto depend= Netman binPath= "C:WINDOWSSystem32srvany.exe" obj= .Administrator cEyeFi password= [password]

reg add HKLMSYSTEMCurrentControlSetServicesEyeFiManagerParameters /v Application /t REG_SZ /d "C:Program FilesEye-FiEye-Fi Manager.exe"

reg add HKLMSYSTEMCurrentControlSetServicesEyeFiManager /v Description /t REG_SZ /d "Starts the Eye-Fi Manager application as at automatic system service allowing it to run without a user logged in."

So what does all of this do exactly?

Well the first line creates the service, marks it as Automatic start-up type, sets it to start using the local Administrator account and lastly adds the Network Connections service as a dependency. The addition of the dependency means that this service cannot start until the network connection is up and available.

The second command adds the parameter to the srvany application to start Eye-Fi Manager.

The last commands sets a description on the service so that anyone looking at the Services MMC will see what the service is doing.

For a bonus point, you can configure the recovery options so that if for any reason the service fails it will automatically restart the application.

If anyone trying to configure this runs into problems, email me and I’ll be sure to help you out.

The Passing of the Digital Economy Bill

Unless you live an anti-technological cave and don’t listen to the news, you will know that as has been feared amongst many people for a while now, the government have rushed through the Digital Economy Bill without a proper democratic review and have ignored the pleas of ISP’s such as TalkTalk, large numbers of the voting public along with IT experts advice all to please music industry.

The good news is none. The bad news is that as of now, copyright agencies can demand information regarding the subscriber of an internet connection to begin legal proceedings over alleged copyright infringements without gathering a shred of concrete evidence.

Evidence used in Peer-to-Peer file transfer cases has been and will continue to be disputed and has time and time again been proven to be incorrect and not uniquely identifying the to accused, however this aside the government still feel that these copyright agencies have it right. It’s like sentencing someone to murder without finding a murder weapon or having any evidence linking them to the crime. All the Digital Economy Bill will do it drive the users of Peer-to-Peer applications deeper underground and into using VPN and other encryption technologies.

The result of the Digital Economy Bill could even mean that people who provide public Wi-Fi hotspots such as those provided by McDonalds, BT OpenZone or the likes would be held responsible if their network was used for illegal Peer-to-Peer transfers and law now makes to distinction between being the person doing the downloading and being the person providing the means which is disgraceful.

What I personally find more disgraceful however is that my MP in Basingstoke didn’t even bother to turn up to parliament and cast a vote. The site ‘They Work for the BPI’ at http://www.theyworkforthebpi.com/ shows a list of all MP’s who voted and how they voted. The MP for Basingstoke, Maria Miller of the Conservatives didn’t attend the vote, nor did Julian Lewis, the MP for Totton where I am originally from.

An online comic website, DotGif has made a vey funny strip comic about the passing of the bill. Although funny, it’s sadly true at the same time to show how the music industries have managed to poison our democratic system. You can see the original at http://www.dotgif-comic.com/04/the-cost-of-the-bill/:

2010-04-09-mandelson[1]

I think that in the case of the Digital Economy Bill the British democratic system has failed its people and the nation that it is designed to serve and I think that the MP’s who voted in favour of the bill should be utterly ashamed of themselves for allowing this bill through to drive money deeper into the pockets of the music industries who have failed to keep up with consumer demands and changing media trends and for ruining the potential technological growth of Peer-to-Peer based services in Britain.

Sky Remote Record for Windows Mobile (and BlackBerry)

4943510[1] Remote Record is one of those excellent features which Sky offers but doesn’t flaunt anywhere near enough not helped by the fact that Sky are loving the iPhone and ignoring Windows Mobile, Symbian, Android and BlackBerry in the process.

In the past I spent a long time looking for a Windows Mobile application for Remote Record, and I managed to find one which was a Java hacked version of the application which was previously available for the Orange SPV however as this was a non-touch screen device the UI was clunky on my touch screen device to say the least.

Needless to say, you can imagine my surprise when I discovered an article on wmpoweruser.com at http://wmpoweruser.com/?p=10795&cpage=1&mobile=1 about Remote Record for Windows Mobile which was posted in November 2009.

The application looks like something genuine that Sky would have produced, however it appears via the website of a software design company called Wecomm who seem to specialise in mobile application development. Even more surprising is that all this development seems to have been done without Sky ever officially releasing the product to the market.

Hitting the link to http://p.wecomm.com/prov/prov.action?releaseId=10 will give you a list of mobile manufacturers (including RIM for BlackBerry owners) which then takes you to a list of models. Once you have selected your model the site will provide the appropriate download link.

I downloaded the version for HTC HD2 which has the same resolution as my HTC Touch HD and installed the .cab file.

Read more…

Ofcom Versus BSkyB: The Battle for British Media and Services

Over the course of the weekend, I starting reading an article on the BBC News site which I sent to myself to read later as it was very interesting: http://www.bbc.co.uk/blogs/thereporters/robertpeston/2010/03/ofcom_v_sky_the_epic_business.html

The article surrounds the topic of Sky (BSkyB) and their power over the British broadcasting and multimedia markets and the investigation into their tactics and control by Ofcom.

The article touches subjects I have blogged about previously and also a topic I am very passionate about. Hit the next link to see all of my posts in the media category and you will start to see the picture I am painting (http://richardjgreen.net/index.php/topics/media/).

Sky provide a lot of content but they also block and inhibit the delivery of new content. With Sky in the way, how are companies like Love Film or even the USA’s very own Netflix going to get to market here?

Where are content on-demand and internet based video streaming services like the US enjoy for us Brits? How are products like Media Center in Windows XP, Vista and 7 ever going to get a good reception when the biggest player in the media industry doesn’t allow for their product to work using Media Center because they breech a European ruling regarding open standards for television service providers? Only Freeview and Freesat are available via Media Center and the channel line-up leaves something to be desired. With beautiful products like HD HomeRun from Silicon Dust available we are severely missing out.

I really look forward to the report from Ofcom, supposedly to be released this week coming, however I wonder if it will throw as many punches as are really necessary? The author Robert Peston says,

So for BSkyB, Ofcom’s tanks are not on the lawn, but are actually bulldozing through the studios.

Unfortunately, I doubt it will get to this. Politicians are too scared to tackle the media giant in Rupert Murdoch’s pocket because of the potential political backlash he could cause, however what is most concerning are David Cameron’s comments regarding the scaling back of Ofcom and their powers.

…with a Conservative Government, Ofcom as we know it will cease to exist. Its remit will be restricted to its narrow technical and enforcement roles. It will no longer play a role in making policy.

Ofcom are critical to ensuring the growth and success of the British media markets, and couple this with the plans from the Tory’s to release figures on BBC earnings and force the BBC to scale down some of the BBC products and offerings and you have to wonder if the Tory’s actually want us to progress with the rest of the world. All they need is Mandy to join their ranks and were destined for doom. I don’t have the time to look, but I’m sure a review of a list of the Tory sponsors would quickly reveal cash injection from Mr Murdoch. Coincidence? Perhaps not.

Did Console Kill the Arcade Star

I’ve just returned home from a weekend away in our now regular holiday haunt of Rockley Park, and something twigged a techno-nerve whilst we were away and that is the title of this post: Did Console Kill the Arcade Star?

I’m from Southampton, and in the 1990’s at home the craze was Segaworld which was I must say a pretty awesome arcade with all the games of the day available, however in this 21st century, modern, interconnected, high definition world how can the arcades compete?

In yester-year, I was a massive fan of Sega Rally and Time Crisis 2, however I step into an arcade today and the games are exactly the same.

I’m an avid fan of gaming at home. I own a Wii, PlayStation 3 and my PC to scratch the World of Warcraft itch, however I can definatly see a place in the gaming eco-system for arcades or at least I would if they tried to be competitive. The games available today at viewed on our 40” LCD television, in 5.1 surround sound or 7.1 if your rich in glorious 1080p resolutions. Mix this with a few gamers perks that some people invest in, like a gaming chair or even a decent set of Logitech driving controls (aka steering wheel, pedals and a gear shifter) and you have a fully immersive gaming experience which not only gives you the same feel as the arcade but a significantly improved visual and audible experience.

Compare the graphics in Forza 3 from the Xbox 360 or Gran Turismo 5 Prologue on the PS3 to that of Ford Rally or Sega Rally and well….you can’t even compare them and that’s excluding the fact that even the most cared for arcade has broken things – Badly forcing steering wheels or flappy flappy paddles on a paddle-shift gearbox.

Then take all of this, and add the interactivity of the Wii, Project Natal for the Xbox 360 and whatever Sony deem their motion sensing offering to be and you add another dimension to the leaps ahead that console gaming has taken. Originally the arcades had guns for the shooters, but it didn’t even take long for home gamers to get these add-ons at their disposal, and now you can get fully fledged imitation weapons for playing Call of Duty Modern Warfare 2 or gun holsters for your Wii remote.

All in all, arcades have had a rough time since the dawn of the next-gen consoles, however I do wonder if one day the attention of the developers and the studios will come full circle upon the arcades and bring them up to date again? In a way I hope so – I just hope they don’t expect they can continue to charge £1 or £1.50 per play for them when I can buy a fully licensed version of the game with unlimited credits for £35 for home use in my own personal arcade.

I would love to one day see some interactive services where arcade games can link to Xbox Live gamer tags and share games in common with the home systems such as Forza. Just imagine being able to play Forza 3 or GT 5 in the arcade, using cars from your own garage which have been collected from the systems internet connection or Wi-Fi and then once the race is over you can upload the times and race stats to your profile and share them on Facebook or Twitter with your friends?

Using SDM with GNS3 and Dynamips in Windows 7

I am currently experimenting with the GNS3 and Dynamips network emulation platform to help me get to grips with some of the Cisco IOS commands for my CCNA, and I ran into a problem yesterday.

Parts of the ICND1 exam require knowledge of the Cisco SDM GUI application, however as it stands you cannot access the routers and switches within your GNS3 environment.

A link on the GNS3 forum takes you to a video which someone has produced providing instructions on how to access and use SDM for your virtual routers, however instructions are for Windows XP and cannot be followed for Windows 7.

If you are using GNS3 and Dynamips then follow these steps to get SDM working.

Read more…

The Anatomy of UPnP Device Discovery

Since my Cisco ICND1 training last week, I’ve become somewhat obsessed. I’ve previously been looking at NETGEAR routers to replace my current FVG318 as I am hitting the concurrent connection limit on it almost daily. Due to now seeing a little piece of Cisco, I figured why not look at getting a Cisco router so that the router will be more reliable and also will help give me some on the job training.

Everything was looking good until I thought about UPnP. I use UPnP quite heavily at home: Not for the port forwarding but for the internal advertisement of network services (namely media streaming to the PlayStation 3).

I discovered a few articles which outlined that Cisco doesn’t support UPnP on any of its devices and that it looks like there is no plan to add support for it either which is a bad thing if you are an SME looking for easy to deploy networking products but good from a security standpoint I suppose.

To test, on the FVG318, I disabled UPnP and had Nicky test the media streaming, however it didn’t work so today I took it upon myself to test this to ensure I can actually achieve full functionality using a Cisco 2651XM.

Read more…

Copy and Paste in Windows Phone 7 Series

Windows Phone 7 Series (WP7S) has been a big topic of conversation since it’s announcement at Mobile World Congress earlier this year and since Mix’10 it’s now a source of controversy.

Microsoft are pulling an Apple on us all stating that Copy and Paste functionality will not be available in WP7S and instead they will provide a data detection service which will detect the presence of phone numbers, addresses, email addresses and more and that this data will be made available between applications.

The rationale is that according to Microsoft Research users are not using Copy and Paste on mobile devices, however I for one do use Copy and Paste on my phone and on this occasion I can’t really justify sticking in the Microsoft corner of the argument, especially after the debate and uproar over Apple not including Copy and Paste in the iPhone OS: this actually makes me feel pretty stupid for criticising Apple previously.

This aside, the data detection service does sound very useful – In the same elk as Skype automatically making telephone numbers in web pages clickable like you would experience on the desktop or how Outlook uses SmartTags to detect addresses in emails or calendar appointments.

Read more…

Updating and Invigorating

Over the last 24 hours, I’ve made some notable changes to the blog to try and improve it’s looks and usability:

  • Removed some of the information shown about the post area on both the home screen and the single post view. This is to try and tidy up and streamline the post reading area. The information I’ve removed is the categories and post author.
  • Relocated the comments button from the top of each post to the bottom.
  • Increased the spacing between the bottom of one post and the top of the next one.

All posts and comments written by me on the blog will now report (past and future) as richardjgreen instead of the old daddygreen. This is an effort to consolidate my social network efforts into one entity. I’ve also updated my profile picture on all of my social outlets to something a bid more modern looking.

From this, I have now installed a new WordPress plug-in called TweetMeMe which shows a green tweet button on each post allowing you to retweet anything I blog with super ease and this plug-in is very common on other tech blogs so it’s well known and trusted.

I’ve also updated the blog version to the latest version of WordPress code as well as increasing the number of my tweets shown from four to five.

If anyone spots any news bugs or issues or has a any great ideas and visual elements I could add or improve on the site then I’m all ears.

Advanced Malware Cleaning with Mark Russinovich

Mark Russinovich has been one of my life heroes since first finding out about his SysInternals tools and the work he does. I make it one of my best efforts to follow his blog, read his Windows Internals book series and read content by him – Not because I have a homo-erotic obsession with the man, but because the tools he produces and his knowledge of the Windows Kernel is truly amazing and it’s no wonder why Microsoft bought his company of the day not to be able to absorb the company but to be able to absorb the man himself.

Paul Thurrott posted a link on his blog to a video from a Windows Spotlight session recorded by Mark about Advanced Malware Cleaning. I have never seen this video before I must confess. I have now since watched the video and it’s an excellent resource and even showed an old diagnosis dog like myself a few tricks, however a lot of the steps in the document are not for the faint hearted: Interupting the Windows Kernel and Reloading the Kernel from Disk to unload malware in memory.

You can get to the video at http://www.microsoft.com/emea/spotlight/sessionh.aspx?videoid=359. While on the site, I highly recommend anyone of a security disposition watches the related video over on the right by Marcus Murray entitled Knowing the Enemy – A Lightening Demonstration on How Hackers Attack Networks.

In less than 20mins, he demonstrates how to create a trojan horse using applications you can freely download from the Internet, how to hide that trojan inside a legitimate application like Word or PowerPoint and then once you have the trojan running, how you can use that trojan to attack an entire network and collect the passwords for every user in a domain.