1,252 reputation
312
bio website f-hauri.ch
location Switzerland
age 49
visits member for 1 year, 10 months
seen 15 hours ago

I'm an old open-source independent hacker,

concerned about concepts of ethical hacking, teaching and sharing.

I like to play with shell, perl, lisp (sometime), sed and lot of other languages/environments.

Co-system administrator in several configurations, after various SMEs, I like to sometimes take time to focus on methods that I can improve or re-create (for example to change the level of abstraction).

In this, surfing on differents StackExchange's sites is a good way to boost my inspiration!


Jul
30
comment Can I find out which ssh key was used to access an account?
@godlygeek I really thank you: your comment was upvoted and my answer edited. This was a real bug I never seen because I don't make a lot of connections and have not a lot of users connecting through ssh... I use this in prod for storing separate bash history for each sessions (have a look on comments on my answer;).
Jul
29
revised Can I find out which ssh key was used to access an account?
Bug correction about first instead last fingerprint in logfile
Jul
29
comment Can I find out which ssh key was used to access an account?
@godlygeek Oh yes! I have better to whipe q directive, store line until end of file... sed line become: sed -ne "/sshd.$PPID.:.*matching DSA key/{s/^.* //g;h};\${x;p}" /var/log/auth.log . Definitively: I Love sed!
Jul
20
awarded  Autobiographer
Jul
5
revised How to adjust time command to measure a program elapsed time
added 292 characters in body
Jun
9
awarded  Caucus
May
9
comment Can I find out which ssh key was used to access an account?
This is linked to Record bash_history to private database for all users
May
8
comment find command throws errors when inside function
My running version work same as your, but permit the use of more than one path to browse into.
May
8
comment find command throws errors when inside function
@steeldriver I think the problem is reverse: There too much quotes.
May
8
comment find command throws errors when inside function
Stop playing with quotes, while using bash arrays. See my answer!
May
8
comment find command throws errors when inside function
echo is not well for this, use declare -p VARNAME for looking into a variable.
May
8
revised find command throws errors when inside function
added 563 characters in body
May
7
comment find command throws errors when inside function
Please see my edit.
May
7
revised find command throws errors when inside function
added 527 characters in body
May
7
comment find command throws errors when inside function
Sorry, missreading...
May
7
revised find command throws errors when inside function
added 29 characters in body
May
7
answered find command throws errors when inside function
Apr
28
comment How to adjust time command to measure a program elapsed time
Further work around this at Stack Overflow - How to profile a bash shell script
Apr
18
comment How to determine the filesystem of an unmounted device?
@TobiasKienzler Instead of eval, you could use . <(blkid -pi /dev/sdXN)
Apr
15
comment Debian: Is it possible/safe to install packages from an older version of the repository?
@carandraug: Thanks, answer edited.