Update
parent
e542cd987f
commit
ae2925b3d1
|
@ -0,0 +1 @@
|
||||||
|
**/.idea/**
|
18
app.py
18
app.py
|
@ -1,4 +1,4 @@
|
||||||
#/usr/bin/env python3
|
# /usr/bin/env python3
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
@ -101,7 +101,7 @@ def GenerateLicense(Type: int, Count: int, UserName: str, MajorVersion: int, Min
|
||||||
MajorVersion, MinorVersion, MinorVersion,
|
MajorVersion, MinorVersion, MinorVersion,
|
||||||
0, # Unknown
|
0, # Unknown
|
||||||
0, # No Games flag. 0 means "NoGames = false". But it does not work.
|
0, # No Games flag. 0 means "NoGames = false". But it does not work.
|
||||||
0 # No Plugins flag. 0 means "NoPlugins = false". But it does not work.
|
0 # No Plugins flag. 0 means "NoPlugins = false". But it does not work.
|
||||||
)
|
)
|
||||||
EncodedLicenseString = VariantBase64Encode(EncryptBytes(0x787, LicenseString.encode())).decode()
|
EncodedLicenseString = VariantBase64Encode(EncryptBytes(0x787, LicenseString.encode())).decode()
|
||||||
FileName = EncodedLicenseString.replace('/', '').replace('\\', '')
|
FileName = EncodedLicenseString.replace('/', '').replace('\\', '')
|
||||||
|
@ -110,7 +110,7 @@ def GenerateLicense(Type: int, Count: int, UserName: str, MajorVersion: int, Min
|
||||||
return FileName
|
return FileName
|
||||||
|
|
||||||
|
|
||||||
#@app.route('/gen')
|
# @app.route('/gen')
|
||||||
def get_lc():
|
def get_lc():
|
||||||
name = request.args.get('name', '')
|
name = request.args.get('name', '')
|
||||||
version = request.args.get('ver', '')
|
version = request.args.get('ver', '')
|
||||||
|
@ -125,14 +125,16 @@ def get_lc():
|
||||||
return lc
|
return lc
|
||||||
|
|
||||||
|
|
||||||
#@app.route('/download/<lc>')
|
# @app.route('/download/<lc>')
|
||||||
def download_lc(lc):
|
def download_lc(lc):
|
||||||
if lc and len(lc) > 5 and os.path.exists('./' + lc):
|
if lc and len(lc) > 5 and os.path.exists('./' + lc):
|
||||||
return send_file(lc,
|
return send_file(
|
||||||
as_attachment=True,
|
lc,
|
||||||
attachment_filename='Custom.mxtpro')
|
as_attachment=True,
|
||||||
|
attachment_filename='Custom.mxtpro'
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
return "请检查用户名版本号是否正确!"
|
return "请检查用户名、版本号是否正确!"
|
||||||
|
|
||||||
|
|
||||||
@app.route('/gen')
|
@app.route('/gen')
|
||||||
|
|
193
index.html
193
index.html
|
@ -1,73 +1,138 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>MobaXterm Keygen</title>
|
<title>MobaXterm Keygen</title>
|
||||||
<link href="https://fonts.googleapis.cnpmjs.org/css?family=Roboto:300,400,500,700" rel="stylesheet">
|
<link href="https://fonts.googleapis.cnpmjs.org/css?family=Roboto:300,400,500,700" rel="stylesheet">
|
||||||
<style>
|
<style>
|
||||||
html, body {
|
body {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-family: Roboto, Arial, sans-serif;
|
align-items: center;
|
||||||
font-size: 15px;
|
height: 100vh;
|
||||||
}
|
margin: 0;
|
||||||
form {
|
}
|
||||||
border: 5px solid #f1f1f1;
|
|
||||||
}
|
form {
|
||||||
input[type=text], input[type=text] {
|
width: 300px; /* Set the width of the form */
|
||||||
width: 100%;
|
padding: 20px;
|
||||||
padding: 16px 8px;
|
border: 1px solid #ccc;
|
||||||
margin: 8px 0;
|
border-radius: 5px;
|
||||||
display: inline-block;
|
background: #f5f5f5;
|
||||||
border: 1px solid #ccc;
|
}
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
.container {
|
||||||
button {
|
margin-bottom: 10px;
|
||||||
background-color: #8ebf42;
|
}
|
||||||
color: white;
|
|
||||||
padding: 14px 0;
|
h1 {
|
||||||
margin: 10px 0;
|
color: #0056b3;
|
||||||
border: none;
|
text-justify: newspaper;
|
||||||
cursor: grabbing;
|
}
|
||||||
width: 100%;
|
|
||||||
}
|
button {
|
||||||
h1 {
|
display: block;
|
||||||
text-align:center;
|
width: 100%;
|
||||||
font-size:18;
|
padding: 13px;
|
||||||
}
|
background-color: #0056b3;
|
||||||
button:hover {
|
color: white;
|
||||||
opacity: 0.8;
|
border: none;
|
||||||
}
|
border-radius: 5px;
|
||||||
.formcontainer {
|
cursor: pointer;
|
||||||
text-align: left;
|
margin: 5px 0 20px;
|
||||||
margin: 24px 50px 12px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
.container {
|
|
||||||
padding: 16px 0;
|
button:hover {
|
||||||
text-align: left;
|
background-color: #007bff;
|
||||||
}
|
}
|
||||||
.github {
|
|
||||||
padding: 16px 0;
|
.github {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
font-family: Roboto, Arial, sans-serif;
|
||||||
|
font-size: 15px;
|
||||||
|
background-color: #242424;
|
||||||
|
}
|
||||||
|
|
||||||
|
form {
|
||||||
|
border: 5px solid #f1f1f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=text], input[type=text] {
|
||||||
|
width: 100%;
|
||||||
|
padding: 16px 8px;
|
||||||
|
margin: 10px 0 10px;
|
||||||
|
display: inline-block;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
#space {
|
||||||
|
height: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formcontainer {
|
||||||
|
text-align: left;
|
||||||
|
margin: 24px 50px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
padding: 16px 0;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.github {
|
||||||
|
padding: 20px 0 0;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.github span a {
|
||||||
|
color: #242424;
|
||||||
|
font-size: smaller;
|
||||||
|
}
|
||||||
|
|
||||||
|
.github span a img {
|
||||||
|
height: 18px;
|
||||||
|
padding-bottom: 3px;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<form action="./gen" mothod="get">
|
<form action="./gen" mothod="get">
|
||||||
<h1>MobaXterm Keygen</h1>
|
<h1>MobaXterm Keygen</h1>
|
||||||
<div class="formcontainer"></div>
|
<div class="formcontainer"></div>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<label for="name"><strong>Name</strong></label>
|
<label for="name"><strong>Name</strong></label>
|
||||||
<input type="text" placeholder="Enter name" name="name" required>
|
<input name="name" placeholder="Enter name: " required type="text">
|
||||||
|
<div id="space"></div>
|
||||||
<label for="ver"><strong>Version</strong></label>
|
<label for="ver"><strong>Version</strong></label>
|
||||||
<input type="text" placeholder="Enter version: (21.1)" name="ver" required>
|
<input name="ver" placeholder="Enter version: (21.1)" required type="text">
|
||||||
</div>
|
</div>
|
||||||
<button type="submit">Gen!</button>
|
<button type="submit">Generate !</button>
|
||||||
<div class="github">
|
<div class="github">
|
||||||
<label style="padding-left: 15px">
|
<label>
|
||||||
</label>
|
</label>
|
||||||
<span><a style="text-decoration: none;" href="https://github.com/malaohu/MobaXterm-GenKey">View on GitHub</a><img src="https://github.githubassets.com/favicons/favicon.svg" height="16px"></span>
|
<span>
|
||||||
</div>
|
<a href="https://github.com/malaohu/MobaXterm-GenKey" style="text-decoration: none;">
|
||||||
</form>
|
<img src="https://github.githubassets.com/favicons/favicon.svg">
|
||||||
</body>
|
malaohu/MobaXterm-GenKey
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue