-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaths.js
More file actions
114 lines (108 loc) · 4.19 KB
/
Copy pathpaths.js
File metadata and controls
114 lines (108 loc) · 4.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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
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
113
114
import fs from 'fs';
import path from 'path';
export const appPaths = {
spotify: [
'%LOCALAPPDATA%\\Microsoft\\WindowsApps\\Spotify.exe'
],
intellij: [
"C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2024.3.2.2\\bin\\idea64.exe",
"C:\\Program Files\\JetBrains\\IntelliJ IDEA\\bin\\idea64.exe",
"C:\\Program Files (x86)\\JetBrains\\IntelliJ IDEA Community Edition\\bin\\idea64.exe"
],
notepad: [
"C:\\Program Files\\Notepad++\\notepad++.exe",
"C:\\Program Files (x86)\\Notepad++\\notepad++.exe"
],
wireshark: [
"C:\\Program Files\\Wireshark\\Wireshark.exe",
"C:\\Program Files (x86)\\Wireshark\\Wireshark.exe"
],
vmware: [
"C:\\Program Files (x86)\\VMware\\VMware Workstation\\vmware.exe",
"C:\\Program Files\\Oracle\\VirtualBox\\VirtualBox.exe"
],
burpSuite: [
"C:\\Program Files\\BurpSuiteCommunity\\BurpSuiteCommunity.exe",
"C:\\Program Files (x86)\\BurpSuiteCommunity\\BurpSuiteCommunity.exe",
],
binaryNinja: [
"C:\\Program Files\\Binary Ninja\\binaryninja.exe",
],
cloudflareWarp: [
"C:\\Program Files\\Cloudflare\\Cloudflare WARP\\Cloudflare WARP.exe"
]
};
export const downloadLinks = {
spotify: "https://www.spotify.com/download",
intellij: "https://www.jetbrains.com/idea/download",
notepad: "https://notepad-plus-plus.org/downloads",
wireshark: "https://www.wireshark.org/download.html",
vmware: "VMware: https://www.vmware.com/products/workstation-player.html, VirtualBox: https://www.virtualbox.org/wiki/Downloads",
burpSuite: "https://portswigger.net/burp/communitydownload",
binaryNinja: "https://binary.ninja/",
cloudflareWarp: "https://www.cloudflare.com/products/zero-trust/warp/"
};
export const sites = {
toDoSite: "https://shinyacash.github.io/To-do-Listsite/",
github: "https://github.com/ShinyACash",
SITES: [
'https://dogbolt.org/',
'https://gchq.github.io/CyberChef/',
]
};
export const ctfTools = {
forensics: {
wireshark: {
paths: [
"C:\\Program Files\\Wireshark\\Wireshark.exe",
"C:\\Program Files (x86)\\Wireshark\\Wireshark.exe"
],
downloadLink: "https://www.wireshark.org/download.html"
},
virtualMachine: {
vmware: {
paths: [
"C:\\Program Files (x86)\\VMware\\VMware Workstation\\vmware.exe",
"C:\\Program Files\\Oracle\\VirtualBox\\VirtualBox.exe"
],
downloadLinks: {
vmware: "https://www.vmware.com/products/workstation-player.html",
virtualbox: "https://www.virtualbox.org/wiki/Downloads"
}
}
}
},
webExploit: {
burpSuite: {
paths: [
"C:\\Program Files\\BurpSuiteCommunity\\BurpSuiteCommunity.exe",
"C:\\Program Files (x86)\\BurpSuiteCommunity\\BurpSuiteCommunity.exe",
"C:\\Users\\Akash\\AppData\\Local\\Programs\\BurpSuiteCommunity\\BurpSuiteCommunity.exe"
],
downloadLink: "https://portswigger.net/burp/communitydownload"
}
},
revPwn: {
binaryNinja: {
paths: [
"C:\\Program Files\\Binary Ninja\\binaryninja.exe",
"C:\\Users\\Akash\\AppData\\Local\\Programs\\Vector35\\BinaryNinja\\binaryninja.exe"
],
downloadLink: "https://binary.ninja/",
alternativeSite: "https://dogbolt.org/"
}
}
};
try {
const configPath = path.resolve('.dedsec_paths.json');
if (fs.existsSync(configPath)) {
const cached = JSON.parse(fs.readFileSync(configPath, 'utf8'));
Object.assign(appPaths, cached);
if (cached.wireshark) ctfTools.forensics.wireshark.paths = cached.wireshark;
if (cached.vmware) ctfTools.forensics.virtualMachine.vmware.paths = cached.vmware;
if (cached.burpSuite) ctfTools.webExploit.burpSuite.paths = cached.burpSuite;
if (cached.binaryNinja) ctfTools.revPwn.binaryNinja.paths = cached.binaryNinja;
}
} catch (e) {
// Ignore read/parse errors
}