Skip to content

Instantly share code, notes, and snippets.

@opshope
Created November 17, 2015 18:02

Revisions

  1. opshope created this gist Nov 17, 2015.
    1 change: 1 addition & 0 deletions reveal_autologin_password.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    sudo ruby -e 'key = [125, 137, 82, 35, 210, 188, 221, 234, 163, 185, 31]; IO.read("/etc/kcpassword").bytes.each_with_index { |b, i| break if key.include?(b); print [b ^ key[i % key.size]].pack("U*") }'