I'm connected to a remote VM for pentesting practice. I have an sh shell with root privileges on that system and want to know ways I can get a copy of the contents of /etc/shadow onto my local machine for later viewing.
Assuming I haven't been detected up to that point, what are standard linux methods/programs to get the contents of /etc/shadow, or some other file, by order of detectability to the remote system's admin?
Some methods have been suggested such as cat+copy+paste, netcat, and scp. Cat followed by a copy and paste seems primitive, messy, and error prone. Netcat and scp seem less error prone, but I'm hesitant to use those because they seem noisier and more trackable since I have to enter my IP other other identifiable information in the remote shell session.