Jorgensen.org.uk

  • Increase font size
  • Default font size
  • Decrease font size
Computers
Computers and other important stuff

NT Password Recovery - PXE booting

E-mail Print PDF

Recently we had to "break into" one of our windows boxes, and ended up using the "Offline NT Password & Registry" Editor from http://www.pogostick.net/~pnh/ntpasswd/.  It appears to be an excellent tool - but there was no information on how to get that to PXE boot.  This blog entry should help with PXE booting it.

You will need:

  • A DHCP Server
  • A TFTP Server 
  • The CD image
  • The PC on which you want to change the passwords

Most DHCP servers will work. For ISC DHCPd the configuration needs to be amended to include:

next-server 10.1.111.8; # IP address of TFTP server 

Even Windows DHCP server can be used here.

The TFTP server (which can be the same server as the DHCP server), serves out a directory tree - in our case "/srv/tftp" in which the CD contents needs to be available. This can be done by simply mounting it. We put the CD image in /srv/tftp/cd110511.iso and mounted it on /srv/tftp/cd110511 using an fstab entry: 

/srv/tftp/cd110511.iso /srv/tftp/cd110511 auto loop 0 0

And the corresponding pxe boot menu entry looks like this:

label win-pwreset
menu label Windows Password Reset
menu passwd soopersekrit
kernel cd110511/vmlinuz
initrd cd110511/initrd.cgz,cd110511/scsi.cgz

And voila!

 

Last Updated on Monday, 10 October 2011 12:39
 

iPhone4 Internet Tethering in Debian

E-mail Print PDF

As I recently got an iPhone4 for work, I've been trying to make the best use of it - it already handles the instant messaging (mostly Skype), Nagios alerts (an XMPP client) and obviously email. And sometimes phone calls, microphone allowing. But I was still missing (at least) one thing that I had working on other phones: tethering.

As it turns out, others have had similar desires and come up with solutions. By now, the things needed for this is available in Debian Squeeze - the "test" release of Debian (which happens to be rock-stable), so installing the required bits is as easy as installing anything else:

apt-get install ipheth-utils 

and switch on "Internet Tethering" on the iPhone. Then plug the phone into the USB port. The combination of linux kernel, ipheth kernel module (which is now in the mainline kernel, so no need to install ipheth-dkms), Network Manager and DHCP takes care of the rest :-)

Allegedly it is also possible to do over bluetooth, but I have not tried that yet. The phone tends to drain its battery within 36 hours, so the cable needs to be at hand anyway.

Note: Since this will send your PC's network traffic through the iPhone, additional data charges may apply. Buyer beware. Don't blame me.

Last Updated on Saturday, 15 January 2011 10:38
 

Activating an iPhone4 using Debian. Not.

E-mail Print PDF

Recently I got a new phone for/from work: an iPhone4 Tongue out - although it is a nice piece of hardware, it immediately presented me with a problem: It has system requirements which are over the top:

Requirements: Minimum wireless service plan may be required to activate iPhone features, including iPod features * Mac or PC with USB 2.0 * Mac OS X v10.5.8 or later, Windows 7, Windows Vista, or Windows XP Home or Professional (SP3) * iTunes 9.2 or later required for some features (free download from www.itunes.com/download) * iTunes Store account * Internet access

After charging the phone, the truth comes out: Until it has been activated through iTunes, it will only do emergency calls. So "some features" really is "99.99% of use cases". Thanks a lot Apple.  Or to use their logic: "Some times I will no longer trust Apple".

It turns out that you need a lot more than just the phone, a charger and a phone contract before you can even consider using this thing:

  • iPhone4 needs activation
  • activation requires iTunes 9.2 or later
  • iTunes requires Windows 7, Windows Vista, Windows XP or Mac OS
  • iTunes requires an iTunes Store Account
  • a iTunes Store Account requires a valid credit card (even if you are not buying anything!!)
  • using the phone constitutes acceptance of the software agreement, warranty and third-party terms (all of which are inside the box, unaccessible until after you've bought it and opened it).

I am quite relieved that I did not purchase this thing for myself - my personal phone will never be an iPhone.  But it still left me with the problem of how to activate the phone, since I run Debian GNU/Linux both at home and at work...

Last Updated on Monday, 10 January 2011 12:08 Read more...
 

IE is stupid...

E-mail Print PDF

Although I am a Linux system administrator/MySQL DBA by trade, I do have the misfortune of having to maintain a windows server as part of my job. This is not something I enjoy...

Today I was presented with this gem:

Basically the server was due an upgrade. Not unusual, it happens a couple of times a week. Being the thorough system admin, I decided to see what wonders Microsoft had now decided to release upon us. Not surprisingly, there was a security update an outdated bit of software we use: Exchange Server 2003...

I was curious, and followed the link to see what horrors this was claiming to fix. After all, security falls in my area here. Lo and behold: IE blocks such information!? Apparantly access to such information is deemed insecure? Surely, this will not deter anybody from finding out about how to exploit the security problem. But it might stop somebody from installing the fix...

Last Updated on Friday, 20 February 2009 16:25 Read more...
 

Common Application Errors

E-mail Print PDF

I have spent most of my professional life battling application bugs. Although I have undoubtedly introduced some, I have spent most of my time searching for, discovering, fixing and educating developers about such bugs.

It really comes down to one thing: experience. Or rather: lack of experience.

When developing software, it is possible to take "shortcuts" - places where you deliberately deviate from the established procedures and best practices for some purpose, with the full knowledge of the consequences. The problem is that some organisations are blissfully unaware of the consequences, and thus make such shortcuts far too frequently.

But some things simply have to be done properly.

Last Updated on Sunday, 11 April 2010 22:59 Read more...
 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  Next 
  •  End 
  • »


Page 1 of 3
stopsoftwarepatents.eu petition banner