Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 769 Bytes

File metadata and controls

17 lines (12 loc) · 769 Bytes

autodocuscript

A self-documenting multi-platform script.

autodocuscript is a polygot PDF that contains executable bash and powershell scripts, to enable providing truly self-documenting scripting capabilities in both Windows and Linux environments.

Open the PDF for usage and editing instructions.

Issues

There doesn't appear to be a way to get powershell to execute scripts with arbitrary extensions.

The string "#>" must not appear in any of the PDF objects following the powershell script.

References

  1. https://stackoverflow.com/questions/25447555/simple-cross-platform-os-based-startup-routing-script
  2. https://github.com/corkami/pocs
  3. https://blog.idrsolutions.com/2013/01/understanding-the-pdf-file-format-overview/
  4. PoC||GTFO 0x16, October 2017