A witness in an attempt to murder case on Thursday escaped unhurt when a man outside the Rohini district courts complex here opened fire at him.