It does that by using the same exploit used by the Chronic Dev Team in the GreenPois0n tool.
PwnageTool 4.2 preservers the baseband when doing untethered jailbreak iOS 4.2.1. Doing this will enable users to also unlock your iPhone using Ultrasn0w 1.2.