|
July 03, 2014, 03:11:06 PM |
|
Hi,
I need a script that does the following.
I have a USB stick with a unique text file on it with some randomly generated string. ( to make sure only this drive would actually start the script and not any other usb stick that I might plugin or plug out in the meantime.
The script must be started as soon as the USB stick us PULLED OUT !
It is kind of an emergency script.
The following things must be done by the script:
Upon pulling the stick->
Lock the screen the same second but do not start the script within 10 (customizable) seconds to allow to stop it in case of an faulty pull of the usb stick. (It should open a terminal in the background with warning and countdown and await pressing 2 (configurable) keys simultaneously for it to stop)
Script must run as root without any further password confirmations.
Unmount a specific network drive (Wuala,Tarsnap). Unmount any mounted LUKS partitions (mounted via zulucrypt) Delete specific folders/programs. ( Wuala/Tarsnap Sync folder,Zulucrypt), (customizable) Delete the the bash history & logs completely , shutdown and start a RAM wipe. ( Delete any traces of there having existed mounted drives or encrypted containers at all.)
Of course script deletes itself as well. (maybe some additions will be found through the course of discussing the possibilities.)
Follow up work is possible. I pay well.
Please PM.Please add your public key .
|