Great resource for hackers if they someday get access to your account.. but I guess you will have bigger problems than.
“I have [bash] history back to ~2003”
11–20 of 148 posts
Re: “I have [bash] history back to ~2003”
#12yeah i wonder how many passwords are stored in there in free text format
echo "Password: "; read -s pass; stuff --pass "$pass"
Where stuff takes password as an argument. Alternatively you can start your line with a space character and it isn't stored in your history.Re: “I have [bash] history back to ~2003”
#13I recently set up my bash history to collect into an sqlite database. Besides the exact command it records the working directory, return value, starting time, ending time, a shell and a login session id. It doesn't handle background jobs well right now though.
Okay I'm curious as to why? I mean it's nice to have, but what are you going to do with the additional data later on?
Having said that I didn't use it too much yet, I have my regular history in place too.
Re: “I have [bash] history back to ~2003”
#14I recently set up my bash history to collect into an sqlite database. Besides the exact command it records the working directory, return value, starting time, ending time, a shell and a login session id. It doesn't handle background jobs well right now though.
Re: “I have [bash] history back to ~2003”
#15This guy is the inverse of me, because I have linked my .bash_history to /dev/null
Re: “I have [bash] history back to ~2003”
#16yeah i wonder how many passwords are stored in there in free text format
echo "Password: "; read -s pass; stuff --pass "$pass" Where stuff takes password as an argument. Alternatively you can start your line with a space character and it isn't stored in your history.
Re: “I have [bash] history back to ~2003”
#17This guy is the inverse of me, because I have linked my .bash_history to /dev/null
Re: “I have [bash] history back to ~2003”
#18yeah i wonder how many passwords are stored in there in free text format
echo "Password: "; read -s pass; stuff --pass "$pass" Where stuff takes password as an argument. Alternatively you can start your line with a space character and it isn't stored in your history.
Re: “I have [bash] history back to ~2003”
#19So I end-up with never-closing task-based window sessions and occasionally copy-paste commands to a safe file for future reference.
I really should investigate the root cause some day...