
CTR35 Login Bookmarklet
By:
srl on Apr 8th, 2011 | syntax:
JavaScript | size: 1.01 KB | hits: 216 | expires: Never
Source; http://fahmu.net/tech/?p=126
This bookmarklet
HTML:
<a href='javascript:(function(){var f=document.createElement("form"),p=document.createElement("input");f.setAttribute("method","POST");f.setAttribute("action","http://cp/login/do_auth");p.setAttribute("name","password");p.setAttribute("value","YOURPASSWORD");f.appendChild(p);f.submit();})()'>ctr35login</a>
URL:
javascript:(function(){var f=document.createElement("form"),p=document.createElement("input");f.setAttribute("method","POST");f.setAttribute("action","http://cp/login/do_auth");p.setAttribute("name","password");p.setAttribute("value","YOURPASSWORD");f.appendChild(p);f.submit();})()
... will make a one-click login bookmarklet to your CTR35 Cradlepoint
Router <http://www.cradlepoint.com/products/wireless-n-portable-router-ctr35>
Thanks to
<http://stackoverflow.com/questions/133925/javascript-post-request-like-a-form-submit>
for the idea of the dynamic form.
Note: I tried posting to this via wordpress, however, the XSS filter
ate it.