Skip to content

Instantly share code, notes, and snippets.

Avatar

Andreas Neumann cyper85

View GitHub Profile
@cyper85
cyper85 / Fuck XSS
Last active Dec 6, 2018
JavaScript Beispiel, wie man aus einem String ausbrechen kann.
View Fuck XSS
<!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";
View deviceAgitation.html
<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 Jan 20, 2016
WLAN im studNET in Leipzig
View .bash
# 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
View check-date.js
var datum = new Date("2014-07-11T12:00Z");
console.log(datum.toGMTString());
// Ausgabe: Invalid Date
@cyper85
cyper85 / nagios3-commands.cfg
Created Jan 20, 2016
Nagios Notfication via Telegram
View nagios3-commands.cfg
# '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{
View embed-psalmodie2-alt.tex
\lilypondfile[noragged-right]{psalmodie2.ly}
View keybase.md

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: