snipt

Ctrl+h for KB shortcuts

Text only

Show passwords on web page

javascript:(function(){var%20s,F,j,f,i;%20s%20=%20"";%20F%20=%20document.forms;%20for(j=0;%20j<F.length;%20++j)%20{%20f%20=%20F[j];%20for%20(i=0;%20i<f.length;%20++i)%20{%20if%20(f[i].type.toLowerCase()%20==%20"password")%20s%20+=%20f[i].value%20+%20"\n";%20}%20}%20if%20(s)%20alert("Passwords%20in%20forms%20on%20this%20page:\n\n"%20+%20s);%20else%20alert("There%20are%20no%20passwords%20in%20forms%20on%20this%20page.");})();
https://snipt.net/embed/8643b839ae7c22fb534523e19ee369e3/
https://snipt.net/raw/8643b839ae7c22fb534523e19ee369e3/
8643b839ae7c22fb534523e19ee369e3
text
Text only
1
2016-09-22T10:51:22
True
False
False
Jan 04, 2016 at 06:34 PM
/api/public/snipt/64274/
show-passwords-on-web-page
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>javascript:(function(){var%20s,F,j,f,i;%20s%20=%20&quot;&quot;;%20F%20=%20document.forms;%20for(j=0;%20j&lt;F.length;%20++j)%20{%20f%20=%20F[j];%20for%20(i=0;%20i&lt;f.length;%20++i)%20{%20if%20(f[i].type.toLowerCase()%20==%20&quot;password&quot;)%20s%20+=%20f[i].value%20+%20&quot;\n&quot;;%20}%20}%20if%20(s)%20alert(&quot;Passwords%20in%20forms%20on%20this%20page:\n\n&quot;%20+%20s);%20else%20alert(&quot;There%20are%20no%20passwords%20in%20forms%20on%20this%20page.&quot;);})(); </span></pre></div> </td></tr></table>
bookmarklet, passwords

Bash

generar passwords

 < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c10
https://snipt.net/embed/c0e47c099d30110912c064f69245f23b/
https://snipt.net/raw/c0e47c099d30110912c064f69245f23b/
c0e47c099d30110912c064f69245f23b
bash
Bash
1
2016-09-27T00:43:30
True
False
False
/api/public/snipt/25002/
generar-passwords
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a> &lt; /dev/urandom tr -dc _A-Z-a-z-0-9 <span class="p">|</span> head -c10 </span></pre></div> </td></tr></table>
linux, passwords, security

JavaScript

Attach Behaviours

1
2
3
4
// Attaches the behavior to the form, password_field_id is the id of the visible form field, hidden_password is the id of the hidden field containing the real password the user types in  , these behaviors get applied onload 
Event.addBehavior({
    'form.awesome' : AwesomePassword({ password_field_id : 'password', hidden_password : 'realPassword' })
});
https://snipt.net/embed/26511e9fbf6b7633d7754676b64c00b1/
https://snipt.net/raw/26511e9fbf6b7633d7754676b64c00b1/
26511e9fbf6b7633d7754676b64c00b1
js
JavaScript
4
2016-09-10T00:13:33
True
False
False
/api/public/snipt/6808/
attach-behaviours
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c1">// Attaches the behavior to the form, password_field_id is the id of the visible form field, hidden_password is the id of the hidden field containing the real password the user types in , these behaviors get applied onload </span> </span><span id="L-2"><a name="L-2"></a><span class="nx">Event</span><span class="p">.</span><span class="nx">addBehavior</span><span class="p">({</span> </span><span id="L-3"><a name="L-3"></a> <span class="s1">&#39;form.awesome&#39;</span> <span class="o">:</span> <span class="nx">AwesomePassword</span><span class="p">({</span> <span class="nx">password_field_id</span> <span class="o">:</span> <span class="s1">&#39;password&#39;</span><span class="p">,</span> <span class="nx">hidden_password</span> <span class="o">:</span> <span class="s1">&#39;realPassword&#39;</span> <span class="p">})</span> </span><span id="L-4"><a name="L-4"></a><span class="p">});</span> </span></pre></div> </td></tr></table>
javascript, passwords
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.