From acfe43b44d6122ddc11afb1c3ec33e3db75f20a1 Mon Sep 17 00:00:00 2001 From: jbousquie Date: Wed, 23 Nov 2016 10:35:26 +0100 Subject: [PATCH] =?UTF-8?q?m=C3=A0j=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logon.vbs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 logon.vbs diff --git a/logon.vbs b/logon.vbs new file mode 100644 index 0000000..df244e2 --- /dev/null +++ b/logon.vbs @@ -0,0 +1,9 @@ +Dim o, n, data, secopt +Set o = CreateObject("WinHttp.WinHttpRequest.5.1") +Set n = CreateObject("wscript.network") +o.setproxy 1 +o.Option(4) = 13056 'pour forcer à ignorer toutes les erreurs de certificats +o.open "POST", "https://winlog.iut.local/", False +o.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" +data = "action=C&username="+n.Username+"&computer="+n.ComputerName +o.send data