Commit 34045a5b by Fred Smith

sanitized urls

parent 2d98a586
function post_history { LAST_COMMAND=$(history 1 | sed -e 's/^ *[0-9]* *[0-9]*-[0-9]*-[0-9]* *[0-9]*:[0-9]*:[0-9]* *- *//g'); curl -d hostname="$HOSTNAME" -d command="$LAST_COMMAND" http://derf.us/history/; }
function get_history { echo -n "enter password: "; read -s HISTPASS; history -c; rm ~/.bash_history; curl -s http://derf.us/history/download.php?passwd=$HISTPASS > ~/.bash_history; history -r; }
function post_history { LAST_COMMAND=$(history 1 | sed -e 's/^ *[0-9]* *[0-9]*-[0-9]*-[0-9]* *[0-9]*:[0-9]*:[0-9]* *- *//g'); curl -d hostname="$HOSTNAME" -d command="$LAST_COMMAND" http://yourserver.example.tld/history/; }
function get_history { echo -n "enter password: "; read -s HISTPASS; history -c; rm ~/.bash_history; curl -s http://yourserver.example.tld/history/download.php?passwd=$HISTPASS > ~/.bash_history; history -r; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment