Skip to content

Instantly share code, notes, and snippets.

@jscheid
Last active June 25, 2022 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jscheid/822b044ba9eed701a951540a49547f28 to your computer and use it in GitHub Desktop.
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