Skip to content

Instantly share code, notes, and snippets.

@jscheid
Last active November 26, 2025 20:59
Show Gist options
  • Select an option

  • Save jscheid/822b044ba9eed701a951540a49547f28 to your computer and use it in GitHub Desktop.

Select an option

Save jscheid/822b044ba9eed701a951540a49547f28 to your computer and use it in GitHub Desktop.
FROM drakkan/sftpgo
USER root
RUN apt-get update && apt-get install -y bsdmainutils
RUN echo foo > $HOME/a && ln -sf $HOME/a $HOME/x
RUN ls -ld $HOME/x && bash -c '((printf "\x00\x00\x00\x05\x01\x00\x00\x00\x06" && printf "\x00\x00\x00\x0f\x11\x00\x00\x00\x01\x00\x00\x00\x02/x\x00\x00\x00\x00" && sleep 1 && printf "\x00\x00\x00\x0b\x10\x00\x00\x00\x02\x00\x00\x00\x02/x" && sleep 1) | sftpgo startsubsys | hexdump -C) && exit 10'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment