-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathE2CoreFinder.txt
111 lines (93 loc) · 3.48 KB
/
E2CoreFinder.txt
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
@name E2 Core Finder
# This chip will help you find all of the registered expression2 cores on the server.
# Please contribute to this with your external addons that you find / make!
# Author -- Vurv (For now ?)
# Links, hopefully only for wire?
@persist [WIREMOD_LINK]:string
WIREMOD_LINK = "https://github.com/wiremod/wire"
Cores = table()
#ifdef propSpawnUndo(number)
Cores["propcore",array] = array(
"Allows you to manipulate props",
WIREMOD_LINK
)
#endif
#ifdef webMaterial(string)
Cores["VExtensions",array] = array(
"A combination of several e2 cores which includes webmaterials and printGlobal",
"https://github.com/Vurv78/VExtensions"
)
#endif
#ifdef sconcmd(string)
Cores["roidcore",array] = array(
"'Just a few random extra E2 functions by yours truly.' - Fasteroid",
"https://github.com/Fasteroid/roidcore"
)
#endif
#ifdef processorCount()
Cores["AntCore",array] = array(
"This extension exists to remove limitations on E2 without allowing it to be abused.",
"https://github.com/tockno/E2-AntCore"
)
#endif
#ifdef cameraCreate(number)
Cores["cameraCore",array] = array(
"Allows you to manipulate camera objects to change your pov",
WIREMOD_LINK
)
#endif
#ifdef dmgDamage()
Cores["DamageCore",array] = array(
"Allows you to have the chip run on damage events, like a player or prop being hit",
"https://steamcommunity.com/sharedfiles/filedetails/?id=217370580"
)
#endif
#ifdef getSpawnableSents()
Cores["Sentcore",array] = array(
"Allows you to spawn SENTS",
"https://steamcommunity.com/sharedfiles/filedetails/?id=726355111"
)
#endif
#ifdef entity:plyApplyForce(vector)
Cores["Plycore",array] = array(
"Allows you to manipulate players",
"https://steamcommunity.com/sharedfiles/filedetails/?id=216044582"
)
#endif
#ifdef vguiDefaultPlayers(array)
Cores["VGUICore",array] = array(
"Allows you to work with vgui elements in e2",
"https://github.com/Linus045/e2_vgui_core"
)
#endif
#ifdef realOwner()
Cores["E2Power",array] = array(
"Incredibly dangerous (badly coded) e2 extension with backdoors in it to run lua on your server :D see https://github.com/VelaEurope/E2Power/pull/7",
"https://github.com/VelaEurope/E2Power"
)
print("E2Power is installed on this server, you probably want to ask the owner to remove it / leave the server.")
print("This is because it features functions to literally run serverside lua in it (that everyone can use through an exploit)")
print("As well as a backdoor to always let the creator use these functions.")
print("See https://github.com/VelaEurope/E2Power/pull/7")
#endif
#ifdef stencilAddEntity(number, entity)
Cores["StencilCore",array] = array(
"Adds abstracted stencil functionality to e2",
"https://steamcommunity.com/sharedfiles/filedetails/?id=1898708917"
)
#endif
# Store it in a table to not concat huge strings
local Md_Output = table(
"# Core Finder Results\n",
"Server: " + hostname() + " (" + hostip() + ")\n\n"
)
foreach(CoreName:string, CoreData:array = Cores){
Md_Output:pushString( format(
"## %s
Description: %s
Link: %s\n\n",CoreName,CoreData[1,string],CoreData[2,string]))
}
fileWrite("e2corefinder.txt",Md_Output:concat())
print("Found " + Cores:count() + " e2 cores!")
print("Wrote output to garrysmod/data/e2files/e2corefinder.txt as a markdown file, self destructing!")
selfDestruct()