Untested Script:
Code:
var LICENCE_CODE = "CHANGE-THIS-TO-CODE";
function fileSelected(o) {
$(o).parent().parent().find('.form-control').html($(o).val().split(/[\\|/]/).pop());
hideError();
var reader = new FileReader();
reader.onload = function() {
var arrayBuffer = this.result;
bytes = new Uint8Array(arrayBuffer);
csr_data = '';
for(i=0; i<bytes.length; i++) {
csr_data += ("0" + bytes[i].toString(16)).substr(-2);
}
if (csr_data.substr(0x40, 0x40) == "0".repeat(0x40)) {
$("#license-code-form").show();
} else {
$("#license-code-form").hide();
get_license(csr_data, LICENCE_CODE);
}
}
reader.readAsArrayBuffer(o.files[0]);
}
Copy the above, change LICENCE_CODE go to
https://sx.xecuter.com/sxos-license.html, press F12, click "Console" tab, paste the code with your changed "LICENCE_CODE", press enter to execute.
Now, click "Browse" button and load your licence-request.dat which can be re-gotten when booting SX OS without a license.dat
It SHOULD give you the license.dat that you previously had

(Remember, its untested, if something goes wrong, lmk)