forked from ikxin/kms-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkms.php
More file actions
25 lines (23 loc) · 671 Bytes
/
Copy pathkms.php
File metadata and controls
25 lines (23 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
if (isset($_POST['kms']) && !empty($_POST['kms'])){
header("Content-type:application/txt;charset=ansi");
header("Content-disposition:attachment;filename=kms.bat;");
echo "@echo off";
echo "\r\nslmgr /skms kms.ikxin.com";
echo "\r\nslmgr /ipk ";
echo $_POST['kms'];
echo "\r\nslmgr /ato";
echo "\r\nslmgr /xpr";
exit;
} elseif ($_GET['clean']==1){
header("Content-type:application/txt;charset=ansi");
header("Content-disposition:attachment;filename=clean.bat;");
echo "@echo off";
echo "\r\nslmgr /upk";
echo "\r\nslmgr /ckms";
echo "\r\nslmgr /rearm";
} else {
header("Location: ./");
exit;
}
?>