Skip to content

Instantly share code, notes, and snippets.

@msenturk
msenturk / lanonoff.xml
Created February 9, 2021 14:04
Start bat file w.o UAC prompt from task scheduler
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2021-02-09T16:43:02.832</Date>
<Author>ms</Author>
<Description>With User Account Control activated, this scheduled task will run lanonoff with Administrator rights without UAC prompt. It only works if The creator of the task is logged on.</Description>
<URI>\uac-pass\lanonoff</URI>
</RegistrationInfo>
<Triggers />
<Principals>
@msenturk
msenturk / recaptcha-exchange-2016.md
Last active March 19, 2024 13:08
recaptcha-exchange-2016.md

Integrate reCAPTCHA Validation to Exchange 2016 Outlook - OWA

We need to create an XMLHTTPRequest requester (using JavaScript) to POST the user input to Google. The first problem I encountered was that XMLHTTPRequest refuses to POST data to a different site other than the one you’ve loaded the current page from. This, apparently, is thanks to a security policy called the Same Origin Policy. This means we need to create an additional page on our own server to act as a proxy, and do the POSTing for us. This extra page returns a success or fail code to the FBA page, telling it whether to proceed with the logon, or not. It turns out that this has the added benefit of us not having to put our private key in the source for the FBA page (which would make it no longer really private).

  • Get a Public key and a Private key for your web site here.