Skip to content

Instantly share code, notes, and snippets.

@Rocka84
Rocka84 / test.js
Last active November 1, 2017 14:38
document.body.innerHTML='<h1>XSS</h1>This script was loaded externally via <b>XSS</b>!';
<?php
$src='LyoNCiAqIEknbSBhIHF1aW5lLCB0aGlzIGlzIG15IHNvdXJjZSBjb2RlLg0KICogUmVhZCBtb3JlIGF0IGh0dHA6Ly93d3cubWFkb3JlLm9yZy9+ZGF2aWQvY29tcHV0ZXJzL3F1aW5lLmh0bWwNCiAqLw0KaGVhZGVyKCdDb250ZW50LXR5cGU6IHRleHQvcGxhaW4nKTsNCmVjaG8gIjw/cGhwXG5cJHNyYz0nIi4kc3JjLiInO1xuIi5iYXNlNjRfZGVjb2RlKCRzcmMpOw0Kc2V0Y29va2llKCdxdWluZScsICJObywgSSdtIG5vdCBqdXN0IHRleHQuLi4gIi5kZWNoZXgobXRfcmFuZCgweDEwMDAsIDB4RkZGRikpKTsNCj8+';
/*
* I'm a quine, this is my source code.
* Read more at http://www.madore.org/~david/computers/quine.html
*/
header('Content-type: text/plain');
echo "<?php\n\$src='".$src."';\n".base64_decode($src);
setcookie('quine', "No, I'm not just text... ".dechex(mt_rand(0x1000, 0xFFFF)));
?>
@Rocka84
Rocka84 / gctour.user.js
Last active May 10, 2016 21:50 — forked from DieBatzen/gctour.user.js
GCTour
// ==UserScript==
// @name GC Tour
// @namespace madd.in
// @version 3.0
// @build 14271
// @description Cachetour planing made easy. Pick some Caches, sort the list and print it out. Free for all users of geocaching.com!
// @run-at document-end
// @include http*://www.geocaching.com/*
// @include http://gctour*.madd.in/map/show*#gui
// @exclude /^https?://www\.geocaching\.com/(login|about|articles)/