HNHacker News
TopNewBestAskShowJobs

uselessuseof

1 karma · joined June 6, 2012

submissionscomments
uselessuseof··on 6.5 Million LinkedIn Password Hashes Leaked
typo.
uselessuseof··on LeakedIn
does your grep have an -f option?

   printf linkedintrouble |sha1sum |sed 's/ .*//' |grep -f - combo_not.txt
uselessuseof··on 6.5 Million LinkedIn Password Hashes Leaked
cut takes a file as an argument. there's no need to start the line with <

   cut -c4-70 combo_not.txt|...
uselessuseof··on 6.5 Million LinkedIn Password Hashes Leaked
echo abc > file

1. cat file

2. cat < file

3. echo abc|cat

4. echo abc|cat - file

cat can take input from the left, the right, or both

same goes for cut

uselessuseof··on LeakedIn
printf linkedintrouble |openssl sha1|grep -f - combo_not.txt
uselessuseof··on 6.5 Million LinkedIn Password Hashes Leaked
symmetric?
uselessuseof··on 6.5 Million LinkedIn Password Hashes Leaked
head -5 /usr/share/dict/words

same result as with xargs

grep petard /usr/share/dict/words

same result as with xargs

not sure what you are trying to demonstrate here

useless use of xargs?

uselessuseof··on 6.5 Million LinkedIn Password Hashes Leaked
another useless use of cat

cut -c7-40 combo_not.txt|sort|dups|wc -l

what the heck is dups?

cut -c7-40 combo_not.txt|sort|uniq -d|wc -l

uselessuseof··on 6.5 Million LinkedIn Password Hashes Leaked
export HISTSIZE=0
uselessuseof··on 6.5 Million LinkedIn Password Hashes Leaked
obligatory comments

- not portable

- useless use of backticks

printf password|openssl sha1|cut -c6-40|grep -f - hacked.txt