Skip to content

Instantly share code, notes, and snippets.

@unix-junkie
Created April 10, 2014 08:32
Show Gist options
  • Save unix-junkie/10356637 to your computer and use it in GitHub Desktop.
Save unix-junkie/10356637 to your computer and use it in GitHub Desktop.
A Clojure one-liner which crashes the HostSpot JVM
(-> (doto (-> (->> (-> (Class/forName "sun.misc.Unsafe") .getDeclaredFields) (filter #(= (.getName %1) "theUnsafe"))) first) (.setAccessible true)) (.get nil) (.putAddress 0 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment