I am working on a ctf and I want to upload a Symbolic Link that points to a file instead of uploading a regular file.

I want to know if there is there a way to build a symlink by hand or to copy the binary of a symlink that has already been created?

  • Put the link target in a file and set the symlink bit. – Ignacio Vazquez-Abrams Jun 5 '18 at 2:21
  • Use readlink() to read the original link, and symlink() to create the new one. – Barmar Jun 5 '18 at 20:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.