Ajouter des scripts + rédaction du readme
This commit is contained in:
36
eclypseV1.js
Normal file
36
eclypseV1.js
Normal file
@@ -0,0 +1,36 @@
|
||||
// ==UserScript==
|
||||
// @name Eclypse V1
|
||||
// @namespace http://tampermonkey.net/
|
||||
// @version 2024-11-05
|
||||
// @author Charles-Arthur DAVID
|
||||
// @description Auto-login on Eclypse V1
|
||||
// @match https://IP-EclypseV1-1/login*
|
||||
// @match https://IP-EclypseV1-2/login*
|
||||
// @match https://IP-EclypseV1-3/login*
|
||||
// @match https://IP-EclypseV1-4/login*
|
||||
// ==/UserScript==
|
||||
|
||||
// N'oubliez pas de configurer l'url de l'automate ci-dessus avec les paramètres @match
|
||||
// Don't forget to configure the url of the automaton above with the @match parameters
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
// Changez le nom d'utilisateur. N'utilisez pas admin pour des raisons de sécurité.
|
||||
const username = 'admin'; // Change the username. Don't use admin for security reasons.
|
||||
|
||||
// Changer le mot de passe /!\ qui est en claire dans le script /!\
|
||||
const password = 'YourPassword'; // Change the password /!\ which is clear in the script /!\
|
||||
|
||||
// Récupère le protocole et le domaine
|
||||
const currentUrl = window.location;
|
||||
const protocol = currentUrl.protocol;
|
||||
const domain = currentUrl.hostname;
|
||||
|
||||
// Définir la page de redirection
|
||||
const newPath = "/j_security_check?j_username=" + username + "&j_password=" + password; // Page cible
|
||||
const redirectUrl = `${protocol}//${domain}${newPath}`;
|
||||
|
||||
// Effectuer la redirection
|
||||
window.location.href = redirectUrl;
|
||||
})();
|
||||
Reference in New Issue
Block a user