Last active
April 11, 2023 22:01
-
-
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
This file contains 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
// 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); | |
} | |
}; | |
})(); |
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
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?