Skip to content

Instantly share code, notes, and snippets.

@M4GNV5
Last active April 11, 2023 22:01
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save M4GNV5/bf544c9c18e9c38d5f4ed7f687aa756b to your computer and use it in GitHub Desktop.
Bypass luca-app sms verify allowing users to test the app without a real phone number. Use responsibly
// Paste this into the js console of your browser whilst viewing the Luca webapp
(function() {
var originalFetch = fetch;
window.fetch = (url, options) => {
if(url === '/api//v3/sms/request') {
console.log('hooked fetch', url, options);
return Promise.resolve({
json: () => Promise.resolve({
challengeId: '00000000-0000-0000-0000-000000000000',
})
});
}
else if(url === '/api//v3/sms/verify') {
console.log('hooked fetch', url, options);
return Promise.resolve({
status: 204,
});
}
else {
return originalFetch(url, options);
}
};
})();
@br4nnigan
Copy link

how do you use this on mobile? there's no console on mobile and although there seems to be something like this:
https://addons.mozilla.org/de/android/addon/greasemonkey/
my Android Firefox (88.1.2) says that it's not compatible. I can download the xpi too but cannot open it with Firefox.

@M4GNV5
Copy link
Author

M4GNV5 commented Apr 29, 2021

I assume you have to make some modifications to make this work with greasemonkey. I've never used greasemonkey nor written scripts for it, but i assume you would have to make some declarations on what websites this should apply to etc.

@br4nnigan
Copy link

yeah I know, the problem I'm having is that such addons aren't available for the current mobile Firefox.

How do YOU use the script?

@M4GNV5
Copy link
Author

M4GNV5 commented Apr 29, 2021

I use it on my computer actually. Just for testing and researching with Luca. I wasn't forced to use Luca yet (staying home helps) and in the case someone actually enforces Luca there still is schmudo2go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment