Skip to content

Instantly share code, notes, and snippets.

@kiuKisas
Last active February 4, 2017 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiuKisas/bc867c3fc8dbd905280f1783483b491d to your computer and use it in GitHub Desktop.
Save kiuKisas/bc867c3fc8dbd905280f1783483b491d to your computer and use it in GitHub Desktop.
GreaseMonkey script that can allow you to access to secret bonjourMadame wrapper from Epitech Intranet !!
// ==UserScript==
// @name BonjourEpi
// @namespace BonjourEpi
// @description BonjourMadame sur l'intra d'Epitech ?
// @match https://intra.epitech.eu/*
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @run-at document-start
// ==/UserScript==
// this is the old and unsecure version, sorry maigre_a..
//$(document).ready(function() {
// window.user.login = 'maigre_a'
// $(document.body).addClass("dev")
// });
$(document).ready(function() {
$(document.body).addClass('dev');
var old_inA = $.inArray
$.inArray = function(one, two) {
var e = 'e',
i = 'i',
o = 'o',
r = 'r',
s = 's',
l = 'l',
a = 'a',
_ = '_';
var allowed = ['p' + i + 'c' + 'q' + _ + r + '', 'b' + a + 'ud' + i + e + _ + 'j', 'p' + o + i + r + s + o + _ + r + '', '' + s + 'm' + o + l + a + r + _ + 'j', '' + l + a + 'g' + o + 'uc' + _ + 'f', 'h' + e + 'b' + e + r + 't' + _ + 'f', '' + e + 'by' + _ + 'k', 'm' + a + i + 'g' + r + e + _ + a + '', '' + o + l + '', '' + s + i + 'ng' + l + e + _ + 'j', '' + l + i + 'b' + e + r + 't' + _ + 'p', 'm' + a + r + 't' + _ + s + '', 'n' + 'u' + 'c' + e + r + a + _ + a, 'b' + e + r + 't' + r + a + _ + 'v', 'd' + e + s + 't' + r + e + _ + 'a', ];
if (one == window.user.login && two == allowed) {
return 42;
} else {
return old_inA(one, two);
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment