-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathorg.ghidra_sre.Ghidra.json
173 lines (173 loc) · 8.23 KB
/
org.ghidra_sre.Ghidra.json
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"app-id": "org.ghidra_sre.Ghidra",
"runtime": "org.freedesktop.Sdk",
"runtime-version": "23.08",
"sdk": "org.freedesktop.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.openjdk21"
],
"command": "ghidra",
"finish-args": [
"--share=network",
"--share=ipc",
"--socket=x11",
"--socket=pulseaudio",
"--device=dri",
"--allow=devel",
"--filesystem=home",
"--env=PATH=/usr/bin:/app/bin:/app/jdk/bin",
"--env=JAVA_HOME=/app/jdk"
],
"modules": [
{
"name": "openjdk",
"buildsystem": "simple",
"build-commands": [
"/usr/lib/sdk/openjdk21/installjdk.sh"
]
},
{
"name": "icoutils",
"cleanup": [
"*"
],
"sources": [
{
"type": "archive",
"url": "https://download.savannah.gnu.org/releases/icoutils/icoutils-0.32.3.tar.bz2",
"sha256": "17abe02d043a253b68b47e3af69c9fc755b895db68fdc8811786125df564c6e0",
"x-checker-data": {
"type": "anitya",
"project-id": 1360,
"url-template": "https://download.savannah.gnu.org/releases/icoutils/icoutils-$version.tar.bz2"
}
}
]
},
{
"name": "ghidra",
"buildsystem": "simple",
"build-commands": [
"cp dex2jar/lib/dex-*.jar dependencies/flatRepo",
"cp ghidra-data/lib/*.jar dependencies/flatRepo",
"cp -r ghidra-data/FunctionID dependencies/fidb",
"sed -i 's/^application.release.name=DEV$/application.release.name=FLATPAK/' Ghidra/application.properties",
"source /usr/lib/sdk/openjdk21/enable.sh && gradle buildGhidra",
"unzip build/dist/ghidra_*_FLATPAK_*_linux_*.zip",
"icotool -x Ghidra/RuntimeScripts/Windows/support/ghidra.ico --index=8",
"cp -r ghidra_*_FLATPAK /app/lib/ghidra",
"install -Dm644 ghidra_8_256x256x32.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
"install -Dm644 org.ghidra_sre.Ghidra.desktop /app/share/applications/org.ghidra_sre.Ghidra.desktop",
"install -Dm644 org.ghidra_sre.Ghidra.metainfo.xml /app/share/metainfo/org.ghidra_sre.Ghidra.metainfo.xml",
"install -Dm755 ghidra.sh /app/bin/ghidra",
"mv /app/lib/ghidra/support/launch.properties{,.orig}",
"ln -s /var/config/ghidra.properties /app/lib/ghidra/support/launch.properties",
"sed -i 's,bg,fg,' /app/lib/ghidra/ghidraRun"
],
"sources": [
{
"type": "git",
"tag": "Ghidra_11.2.1_build",
"url": "https://github.com/NationalSecurityAgency/ghidra.git",
"commit": "a34349b6958bb6da18a17843b644a00b733b885c",
"x-checker-data": {
"type": "json",
"is-main-source": true,
"url": "https://api.github.com/repos/NationalSecurityAgency/ghidra/releases/latest",
"tag-query": ".tag_name",
"version-query": ".tag_name | sub(\"^Ghidra_\"; \"\") | sub(\"_build$\"; \"\")",
"timestamp-query": ".published_at"
}
},
{
"type": "patch",
"path": "last_modified.patch"
},
{
"type": "file",
"path": "org.ghidra_sre.Ghidra.desktop"
},
{
"type": "file",
"path": "org.ghidra_sre.Ghidra.metainfo.xml"
},
{
"type": "script",
"dest-filename": "ghidra.sh",
"commands": [
"# Create a default ghidra.properties if one wasn't already set, for the user to edit",
"[[ -f /var/config/ghidra.properties ]] || cp /app/lib/ghidra/support/launch.properties.orig /var/config/ghidra.properties",
"exec /app/lib/ghidra/ghidraRun \"$@\""
]
},
{
"type": "archive",
"url": "https://github.com/pxb1988/dex2jar/releases/download/v2.1/dex2jar-2.1.zip",
"sha256": "7a9bdf843d43de4d1e94ec2e7b6f55825017b0c4a7ee39ff82660e2493a46f08",
"dest": "dex2jar"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/8d/14/619e24a4c70df2901e1f4dbc50a6291eb63a759172558df326347dce1f0d/protobuf-3.20.3-py2.py3-none-any.whl",
"sha256": "a7ca6d488aa8ff7f329d4c545b2dbad8ac31464f1d8b1c87ad1346717731e4db",
"dest": "dependencies/Debugger-rmi-trace/"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/90/c7/6dc0a455d111f68ee43f27793971cf03fe29b6ef972042549db29eec39a2/psutil-5.9.8.tar.gz",
"sha256": "6be126e3225486dff286a8fb9a06246a5253f4c7c53b475ea5f5ac934e64194c",
"dest": "dependencies/Debugger-rmi-trace/"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/c7/42/be1c7bbdd83e1bfb160c94b9cafd8e25efc7400346cf7ccdbdb452c467fa/setuptools-68.0.0-py3-none-any.whl",
"sha256": "11e52c67415a381d10d6b462ced9cfb97066179f0e871399e006c4ab101fc85f",
"dest": "dependencies/Debugger-rmi-trace/"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl",
"sha256": "4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a",
"dest": "dependencies/Debugger-rmi-trace/"
},
{
"type": "file",
"url": "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android4me/AXMLPrinter2.jar",
"sha256": "00ed038eb6abaf6ddec8d202a3ed7a81b521458f4cd459948115cfd02ff59d6d",
"dest": "dependencies/flatRepo"
},
{
"type": "file",
"url": "https://sourceforge.net/projects/yajsw/files/yajsw/yajsw-stable-13.12/yajsw-stable-13.12.zip",
"sha256": "c6fc59815d3800d14ec977926a8afd3f606a0ebd74d2cfd60601677466edeaa2",
"dest": "dependencies/GhidraServer"
},
{
"type": "file",
"url": "https://archive.eclipse.org/tools/cdt/releases/8.6/cdt-8.6.0.zip",
"sha256": "81b7d19d57c4a3009f4761699a72e8d642b5e1d9251d2bb98df438b1e28f8ba9",
"dest": "dependencies/GhidraDev"
},
{
"type": "file",
"url": "https://sourceforge.net/projects/pydev/files/pydev/PyDev 6.3.1/PyDev 6.3.1.zip",
"sha256": "4d81fe9d8afe7665b8ea20844d3f5107f446742927c59973eade4f29809b0699",
"dest": "dependencies/GhidraDev",
"dest-filename": "PyDev 6.3.1.zip"
},
{
"type": "git",
"tag": "Ghidra_11.4",
"url": "https://github.com/NationalSecurityAgency/ghidra-data.git",
"commit": "4a378edc89b11adc90350f66a3e91b15dfac2103",
"dest": "ghidra-data",
"x-checker-data": {
"type": "git",
"tag-pattern": "^Ghidra_([\\d.]+)$"
}
},
"gradle-dependencies.json"
]
}
]
}