We have adapted the transition path sampling algorithm for the study of activated diffusive processes in complex systems, in which the system has to overcome a high and rough free energy barrier. The new scheme is based on the stochastic shooting procedure and employs molecular dynamics trajectories with an Andersen thermostat as a noise generator. The algorithm is illustrated on a diffusive process in a dense Lennard-Jones fluid.