Skip to content

Instantly share code, notes, and snippets.

View cyper85's full-sized avatar

Andreas Neumann cyper85

View GitHub Profile
@cyper85
cyper85 / Fuck XSS
Last active December 6, 2018 23:26
JavaScript Beispiel, wie man aus einem String ausbrechen kann.
<!DOCTYPE html>
<html>
<head>
<title>Fuck XSS</title>
</head>
<body style="background-color:red;">
<script>
var test = '--></title></script></iframe></style></textarea></span><svg/onload=alert(String.fromCharCode(49))>';
alert(test);
document.getElementsByTagName("body")[0].style.backgroundColor = "green";
<script src="/deviceAgitation.js"></script>
<script>
var eventHandler = function(event) {
if(typeof event.detail.axe !== "undefined") {
console.log(event.detail.axe);
}
}
window.addEventListener('x-deviceagitation', eventHandler , false);
</script>
@cyper85
cyper85 / .bash
Created January 20, 2016 21:25
WLAN im studNET in Leipzig
# Passwort ändern
passwd
# Programme installieren
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y install nohup vim sshpass
var datum = new Date("2014-07-11T12:00Z");
console.log(datum.toGMTString());
// Ausgabe: Invalid Date
@cyper85
cyper85 / nagios3-commands.cfg
Created January 20, 2016 15:03
Nagios Notfication via Telegram
# 'notify-host-by-telegram' command definition
define command{
command_name notify-host-by-telegram
command_line /usr/bin/curl -X POST --data chat_id=$CONTACTPAGER$ --data text="***** Nagios *****%0A%0ANotification Type: $NOTIFICATIONTYPE$%0AHost: $HOSTNAME$%0AState: $HOSTSTATE$%0AAddress: $HOSTADDRESS$%0AInfo: $HOSTOUTPUT$%0A%0ADate/Time:
$LONGDATETIME$%0A" https://api.telegram.org/bot$BOT-TOKEN$/sendMessage
}
# 'notify-service-by-telegram' command definition
define command{
@cyper85
cyper85 / embed-psalmodie2-alt.tex
Last active February 29, 2016 23:39
Psalmodie
\lilypondfile[noragged-right]{psalmodie2.ly}

Keybase proof

I hereby claim:

  • I am cyper85 on github.
  • I am cyper (https://keybase.io/cyper) on keybase.
  • I have a public key whose fingerprint is 8E03 0F10 431C 3333 8E59 3623 D10A 0316 1195 437D

To claim this, I am signing this object: