Skip to content

Instantly share code, notes, and snippets.

@Nightdavisao
Last active July 17, 2020 21:46
Show Gist options
  • Save Nightdavisao/32c4b0f214360225f90e5f27e566446d to your computer and use it in GitHub Desktop.
Save Nightdavisao/32c4b0f214360225f90e5f27e566446d to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name romhacking.net robot verification bypass
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Robot verification of this website is kinda... insecure (made this userscript to show off how insecure it is)
// @author Nightdavisao
// @match https://www.romhacking.net/download/*
// @grant GM_log
// ==/UserScript==
setTimeout(function() {
'use strict';
var input = document.querySelector('input[type="password"]');
var parentNote = input.parentNode.querySelector(".note");
var button = document.querySelector('input[value="I am Human"]');
var sub = parentNote.innerText.trim().split(' ');
sub = sub[sub.length - 1];
sub = sub.substring(0, sub.length - 1);
sub = sub.trim();
GM_log("[romhacking.net robot verification bypass] Matched verification string: " + sub);
input.value = sub;
button.click();
}, 1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment