Skip to content

Instantly share code, notes, and snippets.

@M4GNV5

M4GNV5/luca-sms-bypass.js

Last active Apr 29, 2021
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@br4nnigan br4nnigan commented Apr 29, 2021

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

This comment has been minimized.

Copy link
Owner Author

@M4GNV5 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

This comment has been minimized.

Copy link

@br4nnigan br4nnigan commented Apr 29, 2021

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

This comment has been minimized.

Copy link
Owner Author

@M4GNV5 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