Context. AA Dor is a close, totally eclipsing, post common-envelope binary with an sdOB-type primary star and an extremely lowmass secondary star, located close to the mass limit of stable central hydrogen burning. Within error limits, it may either be a brown dwarf or a late M-type dwarf. Aims. We aim to extract the secondary's contribution to the phase-dependent composite spectra. The spectrum and identified lines of the secondary decide on its nature. Methods. In January 2014, we measured the phase-dependent spectrum of AA Dor with X-Shooter over one complete orbital period. Since the secondary's rotation is presumable synchronized with the orbital period, its surface strictly divides into a day and night side. Therefore, we may obtain the spectrum of its cool side during its transit and of its hot, irradiated side close to its occultation. We developed the Virtual Observatory (VO) tool TLISA to search for weak lines of a faint companion in a binary system. We successfully applied it to the observations of AA Dor. Results. We identified 53 spectral lines of the secondary in the ultraviolet-blue, visual, and near-infrared X-Shooter spectra that are strongest close to its occultation. We identified 57 (20 additional) lines in available Ultraviolet and Visual Echelle Spectrograph (UVES) spectra from 2001. The lines are mostly from C ii-iii and O ii, typical for a low-mass star that is irradiated and heated by the primary. We verified the orbital period of P = 22 597.033201 ± 0.00007 s and determined the orbital velocity K sec = 232.9 +16.6 −6.5 km s −1 of the secondary. The mass of the secondary is M sec = 0.081 +0.018 −0.010 M and, hence, it is not possible to reliably determine a brown dwarf or an M-type dwarf nature. Conclusions. Although we identified many emission lines of the secondary's irradiated surface, the resolution and signal-to-noise ratio of our UVES and X-Shooter spectra are not good enough to extract a good spectrum of the secondary's nonirradiated hemisphere.