Original: Badnaam was based on Saadat Hasan Manto's short story Jhumkay (earrings).
Simplified: It was adapted for the screen by the legendary screenwriter Riaz Shahid.