Encoding information using the topological charge of vortex beams has been proposed for optical communications. The conservation of the topological charge on propagation and the detection of the topological charge by a receiver are significant in these applications and have been well established in free-space. However, when vortex beams enter a diffuser, the wavefront is distorted, leading to a challenge in the conservation and detection of the topological charge. Here, we present a technique to measure the value of the topological charge of a vortex beam obscured in the randomly scattered light. The results of the numerical simulations and experiments are presented and are in good agreement. In particular, only a single-shot measurement is required to detect the topological charge of vortex beams, indicating that the method is applicable to a dynamic diffuser.