In the US, it's illegal to produce software that is intended to be used to bypass controls intended to thwart piracy (DRM, etc.)
However, it's not illegal to produce software that can be used that way, but for which that isn't the intent of the product.