[win] Start work on HWID script

Start work on HWID script, make selection menu for windows activation,
also made windows activation go to "done" page only after script
finishes
dev
Joaquin 3 years ago
parent a59c1dd05f
commit ced4b8ccf6
Signed by: puly
GPG Key ID: 9E9299CD96C65EC6
  1. 11
      main.js
  2. 2
      package.json
  3. 54
      webPage/css/dist.css
  4. 4
      webPage/css/source.css
  5. 2
      webPage/index.html
  6. 5
      webPage/windows/activate/index.html
  7. 87
      webPage/windows/index.html
  8. 2
      webPage/windows/setKMS/index.html
  9. 51
      webPage/winhwid/index.html

@ -3,8 +3,10 @@ const { exec } = require('child_process')
const path = require('path') const path = require('path')
const { stringify } = require('querystring') const { stringify } = require('querystring')
let win = null;
const createWindow = () => { const createWindow = () => {
const win = new BrowserWindow({ win = new BrowserWindow({
width: 1100, width: 1100,
height: 700, height: 700,
webPreferences: { webPreferences: {
@ -30,7 +32,12 @@ function getCertDetails(){
} }
function activateWindows(){ function activateWindows(){
exec("powershell start-process powershell -verb runas {slmgr /skms " + kmsServer + " ; slmgr /ipk " + windowsProductKey + " ; sleep 3 ; slmgr /ato ; sleep 1 ; start ms-settings:activation}") var activatePROC = exec("powershell start-process powershell -verb runas {cscript C:\\Windows\\System32\\slmgr.vbs /skms " + kmsServer + " > $null ; cscript C:\\Windows\\System32\\slmgr.vbs /ipk " + windowsProductKey + " > $null ; sleep 3 ; cscript C:\\Windows\\System32\\slmgr.vbs /ato ; sleep 1 ; start ms-settings:activation}")
activatePROC.on('close', _ => {
win.webContents.send('winkmsdone')
})
//dialog.showErrorBox('Transparency Mode Command:', 'RUN THIS: powershell start-process powershell -verb runas {slmgr /skms ' + kmsServer + ' ; slmgr /ipk ' + productKey + ' ; sleep 3 ; slmgr /ato}') //dialog.showErrorBox('Transparency Mode Command:', 'RUN THIS: powershell start-process powershell -verb runas {slmgr /skms ' + kmsServer + ' ; slmgr /ipk ' + productKey + ' ; sleep 3 ; slmgr /ato}')
} }

@ -1,6 +1,6 @@
{ {
"name": "univator", "name": "univator",
"version": "1.1.4", "version": "1.1.5",
"description": "Microsoft Product Activator", "description": "Microsoft Product Activator",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {

@ -549,6 +549,10 @@ Ensure the default browser behavior of the `hidden` attribute.
margin-right: auto; margin-right: auto;
} }
.block {
display: block;
}
.inline { .inline {
display: inline; display: inline;
} }
@ -634,6 +638,11 @@ Ensure the default browser behavior of the `hidden` attribute.
background-color: rgb(22 21 36 / var(--tw-bg-opacity)); background-color: rgb(22 21 36 / var(--tw-bg-opacity));
} }
.bg-indigo-900 {
--tw-bg-opacity: 1;
background-color: rgb(49 46 129 / var(--tw-bg-opacity));
}
.bg-\[\#D0E7A6\] { .bg-\[\#D0E7A6\] {
--tw-bg-opacity: 1; --tw-bg-opacity: 1;
background-color: rgb(208 231 166 / var(--tw-bg-opacity)); background-color: rgb(208 231 166 / var(--tw-bg-opacity));
@ -649,11 +658,6 @@ Ensure the default browser behavior of the `hidden` attribute.
background-color: rgb(233 79 55 / var(--tw-bg-opacity)); background-color: rgb(233 79 55 / var(--tw-bg-opacity));
} }
.bg-indigo-900 {
--tw-bg-opacity: 1;
background-color: rgb(49 46 129 / var(--tw-bg-opacity));
}
.bg-\[url\(\'\.\.\/img\/bground1\.jpg\'\)\] { .bg-\[url\(\'\.\.\/img\/bground1\.jpg\'\)\] {
background-image: url('../img/bground1.jpg'); background-image: url('../img/bground1.jpg');
} }
@ -701,6 +705,11 @@ Ensure the default browser behavior of the `hidden` attribute.
padding-right: 1.25rem; padding-right: 1.25rem;
} }
.px-10 {
padding-left: 2.5rem;
padding-right: 2.5rem;
}
.py-3 { .py-3 {
padding-top: 0.75rem; padding-top: 0.75rem;
padding-bottom: 0.75rem; padding-bottom: 0.75rem;
@ -722,6 +731,18 @@ Ensure the default browser behavior of the `hidden` attribute.
padding-left: 1.25rem; padding-left: 1.25rem;
} }
.pb-6 {
padding-bottom: 1.5rem;
}
.pb-3 {
padding-bottom: 0.75rem;
}
.text-left {
text-align: left;
}
.text-center { .text-center {
text-align: center; text-align: center;
} }
@ -748,6 +769,15 @@ Ensure the default browser behavior of the `hidden` attribute.
font-size: 0.5rem; font-size: 0.5rem;
} }
.text-\[2em\] {
font-size: 2em;
}
.text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
}
.text-xl { .text-xl {
font-size: 1.25rem; font-size: 1.25rem;
line-height: 1.75rem; line-height: 1.75rem;
@ -788,6 +818,12 @@ Ensure the default browser behavior of the `hidden` attribute.
color: rgb(0 0 0 / var(--tw-text-opacity)); color: rgb(0 0 0 / var(--tw-text-opacity));
} }
.shadow {
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline { .outline {
outline-style: solid; outline-style: solid;
} }
@ -796,6 +832,10 @@ Ensure the default browser behavior of the `hidden` attribute.
outline-width: 0px; outline-width: 0px;
} }
.outline-2 {
outline-width: 2px;
}
.outline-white { .outline-white {
outline-color: #fff; outline-color: #fff;
} }
@ -1016,6 +1056,10 @@ button{
outline: none; outline: none;
} }
.shadow{
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.45), 0 17px 50px 0 rgba(0,0,0,0.40);
}
button:hover{ button:hover{
transform: scale(1.06); transform: scale(1.06);
} }

@ -122,6 +122,10 @@ button{
outline: none; outline: none;
} }
.shadow{
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.45), 0 17px 50px 0 rgba(0,0,0,0.40);
}
button:hover{ button:hover{
transform: scale(1.06); transform: scale(1.06);
} }

@ -19,7 +19,7 @@
<div class="text-center text-white"> <div class="text-center text-white">
<div class="kmscontainer"> <div class="kmscontainer">
<div class="windows pr-5"> <div class="windows pr-5">
<button type="button" class="backdrop-blur-md bg-transparent rounded-xl w-full my-2 py-5 my-2 text-sm md:text-xl font-bold tracking-wide justify-center items-center font-[manrope]" onclick="location.href = './windows/setKMS/index.html';"><img class="w-4/5 ml-auto mr-auto pb-7" src="img/windows.png">windows →</button> <button type="button" class="backdrop-blur-md bg-transparent rounded-xl w-full my-2 py-5 my-2 text-sm md:text-xl font-bold tracking-wide justify-center items-center font-[manrope]" onclick="location.href = './windows/index.html';"><img class="w-4/5 ml-auto mr-auto pb-7" src="img/windows.png">windows →</button>
</div> </div>
<div class="office pl-5"> <div class="office pl-5">
<button type="button" class="backdrop-blur-md bg-transparent rounded-xl w-full my-2 py-5 text-sm md:text-xl font-bold tracking-wide justify-center items-center font-[manrope]" onclick="location.href = './office/setKMS/index.html';"><img class="w-4/5 ml-auto mr-auto pb-7" src="img/office.png">office →</button> <button type="button" class="backdrop-blur-md bg-transparent rounded-xl w-full my-2 py-5 text-sm md:text-xl font-bold tracking-wide justify-center items-center font-[manrope]" onclick="location.href = './office/setKMS/index.html';"><img class="w-4/5 ml-auto mr-auto pb-7" src="img/office.png">office →</button>

@ -46,10 +46,13 @@
document.getElementById('ok').addEventListener("click", function(){ document.getElementById('ok').addEventListener("click", function(){
ipcRenderer.send("activateWindows"); ipcRenderer.send("activateWindows");
location.href = "./done.html";
}); });
ipcRenderer.on('winkmsdone', function(){
location.href='./done.html';
});
</script> </script>
</html> </html>

@ -0,0 +1,87 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../css/dist.css" rel="stylesheet">
<title>Univator</title>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
</head>
<body>
<div class="flex min-h-[100vh] justify-center items-center text-white">
<div class="ml-auto mr-auto">
<div class="min-w-[60vw] flex flex-wrap sm:flex-nowrap items-center py-10 sm:py-100 px-8 pb-10 justify-center text-center">
<div class="my-5 items-center justify-center text-center">
<p class="text-[2em] pb-6 tracking-wide">Choose Activation Method</p>
<div class="text-center text-white w-full items-center">
<div class="kmscontainer w-full items-center text-center" style="column-gap: 200px; padding-left: 8%; padding-right: 8%; vertical-align: top;">
<div class="windows text-left bg-mycol2 rounded-xl px-10 w-full shadow outline-white outline-2">
<button type="button" class="rounded-xl w-full my-2 py-5 my-2 text-sm md:text-xl font-bold tracking-wide justify-center items-center font-[manrope] bg-indigo-900" onclick="location.href = './setKMS/index.html';">Online e-KMS →<p class="text-[0.5rem] md:text-xs">7 / 8 / 8.1 / 10 / 11</p></button>
<p class="pb-3 text-lg font-bold">- Non-intrusive</p>
<p class="pb-3 text-lg font-bold">- Easily Reversible (see options)</p>
<p class="pb-3 text-lg font-bold">- Requires connection to e-KMS server every 180 days to refresh</p>
<a onclick="showMore()" id="morebutton1" style="color:cornflowerblue; text-decoration: underline; cursor:pointer; text-align: center;">Show More</a>
<div id="morekms" style="display: none;" class="detaildiv">
<p class="pb-3 text-md font-bold">- Activation Certificate stored locally</p>
<p class="pb-3 text-md font-bold">- Reactivations (performed automatically) WILL ping the server your IP (TCP, duh)
</p>
<p class="pb-3 text-md font-bold">- Does not need to download or install anything extra</p>
</div>
</div>
<div class="office text-left bg-mycol2 rounded-xl px-10 w-full shadow outline-white outline-2">
<button type="button" class="rounded-xl w-full my-2 py-5 text-sm md:text-xl font-bold tracking-wide justify-center items-center font-[manrope] bg-indigo-900" onclick="location.href = '../winhwid/index.html';">HWID Ticket →<p class="text-[0.5rem] md:text-xs">10 / 11</p></button>
<p class="pb-3 text-lg font-bold">- Requires System Changes</p>
<p class="pb-3 text-lg font-bold">- Entirely Permanent, even on full wipe</p>
<p class="pb-3 text-lg font-bold">- Fully equivalent to digitally bought Windows, transfers to other PCs with this MS acc</p>
<a href="#" onclick="showMore()" id="morebutton2" style="color:cornflowerblue; text-decoration: underline; cursor: pointer; padding-inline: auto;">Show More</a>
<div id="morehwid" style="display: none;" class="detaildiv">
<p class="pb-3 text-md font-bold">- Digital Activation Certificate stored on Microsoft Servers Forever</p>
<p class="pb-3 text-md font-bold">- Needs to download and modify an exe (gatherosstate.exe)found on win ISOs used for win7 migration</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="text-white bold fixed bottom-4 flex flex-row flex-wrap sm:flex-nowrap items-center mx-50 justify-center ml-auto mr-auto mx-100 px-2 pt-100 text-md bg-purple md:bg-transparent">
<button type="button" class="redir outline rounded-md py-1 md:py-3 bg-mycol2 px-3 md:px-7 outline-0 outline-white hover:bg-indigo-900 mx-2" onclick="location.href = '../index.html';">
<span class="hidden md:inline">Back</span>
</div>
</div>
</body>
<script>
const morehwid = document.getElementById('morehwid');
const morekms = document.getElementById('morekms');
const morebutton1 = document.getElementById('morebutton1');
const morebutton2 = document.getElementById('morebutton2');
function showMore(){
document.getElementById('morebutton1').style.display = "none";
document.getElementById('morebutton2').style.display = "none";
document.getElementById('morehwid').style.display = "block";
document.getElementById('morekms').style.display = "block";
console.log("O@O");
}
</script>
</html>

@ -39,7 +39,7 @@
<div class="text-white bold fixed bottom-4 flex flex-row flex-wrap sm:flex-nowrap items-center mx-50 justify-center ml-auto mr-auto mx-100 px-2 pt-100 text-md bg-purple md:bg-transparent"> <div class="text-white bold fixed bottom-4 flex flex-row flex-wrap sm:flex-nowrap items-center mx-50 justify-center ml-auto mr-auto mx-100 px-2 pt-100 text-md bg-purple md:bg-transparent">
<button type="button" class="redir outline rounded-md py-1 md:py-3 bg-mycol2 px-3 md:px-7 outline-0 outline-white hover:bg-indigo-900 mx-2" onclick="location.href = '../../index.html';"> <button type="button" class="redir outline rounded-md py-1 md:py-3 bg-mycol2 px-3 md:px-7 outline-0 outline-white hover:bg-indigo-900 mx-2" onclick="location.href = '../index.html';">
<span class="hidden md:inline">Back</span> <span class="hidden md:inline">Back</span>
</button> </button>
<button type="button" class="redir outline rounded-md py-1 md:py-3 bg-mycol2 px-3 md:px-7 outline-0 outline-white hover:bg-indigo-900 mx-2" onclick="location.href = './about/index.html';"> <button type="button" class="redir outline rounded-md py-1 md:py-3 bg-mycol2 px-3 md:px-7 outline-0 outline-white hover:bg-indigo-900 mx-2" onclick="location.href = './about/index.html';">

@ -0,0 +1,51 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../css/dist.css" rel="stylesheet">
<title>Univator</title>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
</head>
<body>
<div class="flex min-h-[100vh] justify-center items-center text-white" bg-[url('../../img/bground1.jpg')]>
<div class="md:max-w-[90vw] ml-auto mr-auto">
<div class="min-w-[60vw] rounded-3xl flex flex-wrap sm:flex-nowrap items-center py-10 sm:py-100 px-8 pb-10 justify-center text-center">
<div class="my-5 items-center justify-center text-center">
<p class="text-3xl pb-10 font-extrabold tracking-wide">Select your version of windows</p>
<div class="items-center text-center justify-center text-white">
<div class="kmscontainer text-center w-full">
<div class="windows px-2">
<button type="button" class="rounded-xl w-full bg-mycol2 my-2 py-5 my-2 px-5 text-sm md:text-xl font-bold tracking-wide justify-center items-center font-[manrope]" onclick="location.href='../edt/10/index.html';"><img class="w-4/5 ml-auto mr-auto pb-7" src="../img/win11.png">windows 11</button>
</div>
<div class="office px-2">
<button type="button" class="rounded-xl w-full bg-mycol2 my-2 py-5 my-2 px-5 text-sm md:text-xl font-bold tracking-wide justify-center items-center font-[manrope]" onclick="location.href='../edt/10/index.html';"><img class="w-4/5 ml-auto mr-auto pb-7" src="../img/win10.png">windows 10</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="text-white bold fixed bottom-4 flex flex-row flex-wrap sm:flex-nowrap items-center mx-50 justify-center ml-auto mr-auto mx-100 px-2 pt-100 text-md bg-purple md:bg-transparent">
<button type="button" class="redir outline rounded-md py-1 md:py-3 bg-mycol2 px-3 md:px-7 outline-0 outline-white hover:bg-indigo-900 mx-2" onclick="location.href = '../windows/index.html';">
<span class="hidden md:inline">Back</span>
</button>
</div>
</div>
</body>
</html>
Loading…
Cancel
Save