Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Inspecting, Modifying, and Triggering an onclick Function on a Live Website

On this live website, I’m trying to get previous versions of Firmware for a camera lens. The companies’ support generally ignores you, so I was seeing if I could figure out a workaround lol.

AF 135mm F1.8 FE is on version 5 of the firmware. I’m attempting to get version 4 and version 3.

If I inspect it, the button click triggers the following onclick function:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

<button type="button" class="bt-full black" onclick="FnFileDownload('964','5');">Download</button>

I’ve tried modifying the DOM through inspector, swapping out to

<button type="button" class="bt-full black" onclick="FnFileDownload('964','4');">Download</button>

But no luck, it still pulls version 5. I was thinking, if I ran something through the console, maybe it would be possible?

https://www.samyanglens.com/en/support/support-download.php?type=3&model=SONY

>Solution :

Turns out the server always returns the v5 of the firmware, not a JS related issue. It’s the file that’s available for downloading.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading