From cdc5af10e47b901c73d751e7b81b407539bf943b Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Mon, 28 Jul 2025 15:35:56 +0000 Subject: [PATCH] GP-5648: Certification header support for .bat and .ps1 files --- .../certification.manifest | 7 ------- .../data/debugger-launchers/kernel-dbgeng.bat | 15 ++++++++++++++ .../local-dbgeng-attach.bat | 15 ++++++++++++++ .../debugger-launchers/local-dbgeng-ext.bat | 15 ++++++++++++++ .../debugger-launchers/local-dbgeng-trace.bat | 15 ++++++++++++++ .../data/debugger-launchers/local-dbgeng.bat | 15 ++++++++++++++ .../data/debugger-launchers/remote-dbgeng.bat | 15 ++++++++++++++ .../data/debugger-launchers/svrcx-dbgeng.bat | 15 ++++++++++++++ .../Debugger-agent-gdb/certification.manifest | 6 ------ .../data/debugger-launchers/local-gdb.ps1 | 15 ++++++++++++++ .../data/debugger-launchers/qemu-sys-gdb.ps1 | 15 ++++++++++++++ .../data/debugger-launchers/remote-gdb.ps1 | 15 ++++++++++++++ .../data/debugger-launchers/ssh-gdb.ps1 | 15 ++++++++++++++ .../data/debugger-launchers/ssh-gdbserver.ps1 | 15 ++++++++++++++ .../data/support/gdbsetuputils.ps1 | 16 ++++++++++++++- .../certification.manifest | 6 ------ .../data/debugger-launchers/android-lldb.ps1 | 15 ++++++++++++++ .../data/debugger-launchers/kernel-lldb.ps1 | 15 ++++++++++++++ .../data/debugger-launchers/local-lldb.ps1 | 15 ++++++++++++++ .../data/debugger-launchers/remote-lldb.ps1 | 15 ++++++++++++++ .../data/debugger-launchers/ssh-lldb.ps1 | 15 ++++++++++++++ .../data/support/lldbsetuputils.ps1 | 16 ++++++++++++++- .../Debugger-rmi-trace/certification.manifest | 1 - .../data/support/setuputils.ps1 | 15 ++++++++++++++ Ghidra/RuntimeScripts/Windows/ghidraRun.bat | 15 ++++++++++++++ .../Windows/server/ghidraSvr.bat | 15 ++++++++++++++ .../Windows/server/svrAdmin.bat | 15 ++++++++++++++ .../Windows/server/svrInstall.bat | 15 ++++++++++++++ .../Windows/server/svrUninstall.bat | 15 ++++++++++++++ .../Windows/support/GhidraGo/ghidraGo.bat | 15 ++++++++++++++ .../Windows/support/analyzeHeadless.bat | 15 ++++++++++++++ .../RuntimeScripts/Windows/support/bsim.bat | 15 ++++++++++++++ .../Windows/support/buildGhidraJar.bat | 15 ++++++++++++++ .../Windows/support/convertStorage.bat | 15 ++++++++++++++ .../Windows/support/createPdbXmlFiles.bat | 15 ++++++++++++++ .../Windows/support/dbgengGADPServerRun.bat | 15 ++++++++++++++ .../Windows/support/dbgmodelGADPServerRun.bat | 15 ++++++++++++++ .../Windows/support/ghidraClean.bat | 17 +++++++++++++++- .../Windows/support/ghidraDebug.bat | 15 ++++++++++++++ .../Windows/support/jshellRun.bat | 15 ++++++++++++++ .../Windows/support/jythonRun.bat | 15 ++++++++++++++ .../RuntimeScripts/Windows/support/launch.bat | 15 ++++++++++++++ .../Windows/support/pyghidraRun.bat | 15 ++++++++++++++ .../RuntimeScripts/Windows/support/sleigh.bat | 15 ++++++++++++++ Ghidra/RuntimeScripts/certification.manifest | 20 ------------------- certification.local.manifest | 1 - gradle/support/ip.gradle | 14 +++++++++++++ gradlew.bat | 3 +++ 48 files changed, 618 insertions(+), 44 deletions(-) diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/certification.manifest b/Ghidra/Debug/Debugger-agent-dbgeng/certification.manifest index 25f327909f..1634305df4 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/certification.manifest +++ b/Ghidra/Debug/Debugger-agent-dbgeng/certification.manifest @@ -3,13 +3,6 @@ ##MODULE IP: MIT Module.manifest||GHIDRA||||END| README.md||GHIDRA||||END| -data/debugger-launchers/kernel-dbgeng.bat||GHIDRA||||END| -data/debugger-launchers/local-dbgeng-attach.bat||GHIDRA||||END| -data/debugger-launchers/local-dbgeng-ext.bat||GHIDRA||||END| -data/debugger-launchers/local-dbgeng-trace.bat||GHIDRA||||END| -data/debugger-launchers/local-dbgeng.bat||GHIDRA||||END| -data/debugger-launchers/remote-dbgeng.bat||GHIDRA||||END| -data/debugger-launchers/svrcx-dbgeng.bat||GHIDRA||||END| src/main/help/help/TOC_Source.xml||GHIDRA||||END| src/main/help/help/topics/dbgeng/dbgeng.html||GHIDRA||||END| src/main/py/LICENSE||GHIDRA||||END| diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/kernel-dbgeng.bat b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/kernel-dbgeng.bat index f454e638b0..f7a2ac34ca 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/kernel-dbgeng.bat +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/kernel-dbgeng.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## ::@title dbgeng kernel ::@desc ::@desc

Kernel debugging using dbgeng (in a Python interpreter)

diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-attach.bat b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-attach.bat index fa79e59322..4683d2efc8 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-attach.bat +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-attach.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## ::@title dbgeng attach ::@desc ::@desc

Attach with dbgeng (in a Python interpreter)

diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-ext.bat b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-ext.bat index 9f4330ad91..30e4433a37 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-ext.bat +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-ext.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## ::@title dbgeng extra options ::@image-opt env:OPT_TARGET_IMG ::@desc diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-trace.bat b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-trace.bat index fa1e4708d9..50c3634cd4 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-trace.bat +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-trace.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## ::@title dbgeng TTD ::@desc ::@desc

Open trace with dbgeng (in a Python interpreter)

diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng.bat b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng.bat index f2a17af3e9..3f30bb48cd 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng.bat +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## ::@title dbgeng ::@image-opt env:OPT_TARGET_IMG ::@desc diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/remote-dbgeng.bat b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/remote-dbgeng.bat index d54cd208d3..48e543b597 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/remote-dbgeng.bat +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/remote-dbgeng.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## ::@title dbgeng remote ::@desc ::@desc

Connect to a remote debugger (via the .server interface)

diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/svrcx-dbgeng.bat b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/svrcx-dbgeng.bat index f87bae0516..e1d6834150 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/svrcx-dbgeng.bat +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/svrcx-dbgeng.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## ::@title dbgeng svrcx ::@image-opt env:OPT_TARGET_IMG ::@desc diff --git a/Ghidra/Debug/Debugger-agent-gdb/certification.manifest b/Ghidra/Debug/Debugger-agent-gdb/certification.manifest index 97d4475c6b..c6aac33ff6 100644 --- a/Ghidra/Debug/Debugger-agent-gdb/certification.manifest +++ b/Ghidra/Debug/Debugger-agent-gdb/certification.manifest @@ -2,16 +2,10 @@ ##MODULE IP: JSch License Module.manifest||GHIDRA||||END| README.md||GHIDRA||||END| -data/debugger-launchers/local-gdb.ps1||GHIDRA||||END| -data/debugger-launchers/qemu-sys-gdb.ps1||GHIDRA||||END| -data/debugger-launchers/remote-gdb.ps1||GHIDRA||||END| -data/debugger-launchers/ssh-gdb.ps1||GHIDRA||||END| -data/debugger-launchers/ssh-gdbserver.ps1||GHIDRA||||END| data/scripts/fallback_info_proc_mappings.gdb||GHIDRA||||END| data/scripts/fallback_maintenance_info_sections.gdb||GHIDRA||||END| data/scripts/getpid-linux-i386.gdb||GHIDRA||||END| data/scripts/wine32_info_proc_mappings.gdb||GHIDRA||||END| -data/support/gdbsetuputils.ps1||GHIDRA||||END| src/main/help/help/TOC_Source.xml||GHIDRA||||END| src/main/help/help/topics/gdb/gdb.html||GHIDRA||||END| src/main/help/help/topics/gdb/images/GdbLauncher.png||GHIDRA||||END| diff --git a/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/local-gdb.ps1 b/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/local-gdb.ps1 index 3b43315a3c..4b44c1632a 100644 --- a/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/local-gdb.ps1 +++ b/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/local-gdb.ps1 @@ -1,3 +1,18 @@ +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## #@title gdb #@image-opt arg:1 #@desc diff --git a/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/qemu-sys-gdb.ps1 b/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/qemu-sys-gdb.ps1 index 299d93a1a3..249bc91518 100644 --- a/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/qemu-sys-gdb.ps1 +++ b/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/qemu-sys-gdb.ps1 @@ -1,3 +1,18 @@ +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## #@title gdb + qemu-system #@image-opt env:OPT_TARGET_IMG #@desc diff --git a/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/remote-gdb.ps1 b/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/remote-gdb.ps1 index fab6f3cc16..1d6ec9585a 100644 --- a/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/remote-gdb.ps1 +++ b/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/remote-gdb.ps1 @@ -1,3 +1,18 @@ +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## #@title gdb remote #@image-opt arg:1 #@desc diff --git a/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/ssh-gdb.ps1 b/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/ssh-gdb.ps1 index cc6474cde5..52c1f30c42 100644 --- a/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/ssh-gdb.ps1 +++ b/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/ssh-gdb.ps1 @@ -1,3 +1,18 @@ +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## #@timeout 60000 #@title gdb via ssh #@image-opt arg:1 diff --git a/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/ssh-gdbserver.ps1 b/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/ssh-gdbserver.ps1 index 12c5b08060..1e7b598f60 100644 --- a/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/ssh-gdbserver.ps1 +++ b/Ghidra/Debug/Debugger-agent-gdb/data/debugger-launchers/ssh-gdbserver.ps1 @@ -1,3 +1,18 @@ +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## #@timeout 60000 #@title gdb + gdbserver via ssh #@image-opt arg:1 diff --git a/Ghidra/Debug/Debugger-agent-gdb/data/support/gdbsetuputils.ps1 b/Ghidra/Debug/Debugger-agent-gdb/data/support/gdbsetuputils.ps1 index 32f8962900..e39e313e87 100644 --- a/Ghidra/Debug/Debugger-agent-gdb/data/support/gdbsetuputils.ps1 +++ b/Ghidra/Debug/Debugger-agent-gdb/data/support/gdbsetuputils.ps1 @@ -1,4 +1,18 @@ - +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## . ..\..\..\Debugger-rmi-trace\data\support\setuputils.ps1 function Add-Gdb-Init-Args { diff --git a/Ghidra/Debug/Debugger-agent-lldb/certification.manifest b/Ghidra/Debug/Debugger-agent-lldb/certification.manifest index 9178e37035..4491d87e61 100644 --- a/Ghidra/Debug/Debugger-agent-lldb/certification.manifest +++ b/Ghidra/Debug/Debugger-agent-lldb/certification.manifest @@ -4,12 +4,6 @@ Module.manifest||GHIDRA||||END| README.md||GHIDRA||||END| build.gradle||GHIDRA||||END| -data/debugger-launchers/android-lldb.ps1||GHIDRA||||END| -data/debugger-launchers/kernel-lldb.ps1||GHIDRA||||END| -data/debugger-launchers/local-lldb.ps1||GHIDRA||||END| -data/debugger-launchers/remote-lldb.ps1||GHIDRA||||END| -data/debugger-launchers/ssh-lldb.ps1||GHIDRA||||END| -data/support/lldbsetuputils.ps1||GHIDRA||||END| src/main/help/help/TOC_Source.xml||GHIDRA||||END| src/main/help/help/topics/lldb/lldb.html||GHIDRA||||END| src/main/py/LICENSE||GHIDRA||||END| diff --git a/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/android-lldb.ps1 b/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/android-lldb.ps1 index 4cb31d104b..6943baf2a3 100644 --- a/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/android-lldb.ps1 +++ b/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/android-lldb.ps1 @@ -1,3 +1,18 @@ +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## #@title lldb Android #@image-opt arg:1 #@desc diff --git a/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/kernel-lldb.ps1 b/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/kernel-lldb.ps1 index faf22b61eb..3bc3f402a4 100644 --- a/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/kernel-lldb.ps1 +++ b/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/kernel-lldb.ps1 @@ -1,3 +1,18 @@ +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## #@title lldb kernel (kdp) #@desc #@desc

Launch with local lldb and connect to a remote kernel

diff --git a/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/local-lldb.ps1 b/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/local-lldb.ps1 index 51ce6b9bd7..3a250451b0 100644 --- a/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/local-lldb.ps1 +++ b/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/local-lldb.ps1 @@ -1,3 +1,18 @@ +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## #@title lldb #@image-opt arg:1 #@desc diff --git a/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/remote-lldb.ps1 b/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/remote-lldb.ps1 index a4fd41666d..e94cb07381 100644 --- a/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/remote-lldb.ps1 +++ b/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/remote-lldb.ps1 @@ -1,3 +1,18 @@ +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## #@title lldb remote (gdb) #@image-opt arg:1 #@desc diff --git a/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/ssh-lldb.ps1 b/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/ssh-lldb.ps1 index 4ddc7bf771..194ad80e2a 100644 --- a/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/ssh-lldb.ps1 +++ b/Ghidra/Debug/Debugger-agent-lldb/data/debugger-launchers/ssh-lldb.ps1 @@ -1,3 +1,18 @@ +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## #@timeout 60000 #@title lldb via ssh #@image-opt arg:1 diff --git a/Ghidra/Debug/Debugger-agent-lldb/data/support/lldbsetuputils.ps1 b/Ghidra/Debug/Debugger-agent-lldb/data/support/lldbsetuputils.ps1 index f83e8d42e4..3af4bfbaee 100644 --- a/Ghidra/Debug/Debugger-agent-lldb/data/support/lldbsetuputils.ps1 +++ b/Ghidra/Debug/Debugger-agent-lldb/data/support/lldbsetuputils.ps1 @@ -1,4 +1,18 @@ - +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## . ..\..\..\Debugger-rmi-trace\data\support\setuputils.ps1 function Add-Lldb-Init-Args { diff --git a/Ghidra/Debug/Debugger-rmi-trace/certification.manifest b/Ghidra/Debug/Debugger-rmi-trace/certification.manifest index 3d590fe366..596d5a3829 100644 --- a/Ghidra/Debug/Debugger-rmi-trace/certification.manifest +++ b/Ghidra/Debug/Debugger-rmi-trace/certification.manifest @@ -5,7 +5,6 @@ DEVNOTES.txt||GHIDRA||||END| Module.manifest||GHIDRA||||END| README.md||GHIDRA||||END| data/ExtensionPoint.manifest||GHIDRA||||END| -data/support/setuputils.ps1||GHIDRA||||END| src/main/help/help/TOC_Source.xml||GHIDRA||||END| src/main/help/help/topics/TraceRmiConnectionManagerPlugin/TraceRmiConnectionManagerPlugin.html||GHIDRA||||END| src/main/help/help/topics/TraceRmiConnectionManagerPlugin/images/ConnectDialog.png||GHIDRA||||END| diff --git a/Ghidra/Debug/Debugger-rmi-trace/data/support/setuputils.ps1 b/Ghidra/Debug/Debugger-rmi-trace/data/support/setuputils.ps1 index b4e050f88d..e8dfad0ab6 100644 --- a/Ghidra/Debug/Debugger-rmi-trace/data/support/setuputils.ps1 +++ b/Ghidra/Debug/Debugger-rmi-trace/data/support/setuputils.ps1 @@ -1,3 +1,18 @@ +## ### +# IP: GHIDRA +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## function Find-App-Properties { [IO.FileInfo] $simple = "$Env:GHIDRA_HOME\Ghidra\applications.properties" if ($simple.Exists) { diff --git a/Ghidra/RuntimeScripts/Windows/ghidraRun.bat b/Ghidra/RuntimeScripts/Windows/ghidraRun.bat index 36bcb0227a..a4117fa6e3 100644 --- a/Ghidra/RuntimeScripts/Windows/ghidraRun.bat +++ b/Ghidra/RuntimeScripts/Windows/ghidraRun.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: Ghidra launch @echo off diff --git a/Ghidra/RuntimeScripts/Windows/server/ghidraSvr.bat b/Ghidra/RuntimeScripts/Windows/server/ghidraSvr.bat index 41e2467e8e..702cbb7f6a 100644 --- a/Ghidra/RuntimeScripts/Windows/server/ghidraSvr.bat +++ b/Ghidra/RuntimeScripts/Windows/server/ghidraSvr.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## @echo off :: --------------------------------------------------------------------------------------- diff --git a/Ghidra/RuntimeScripts/Windows/server/svrAdmin.bat b/Ghidra/RuntimeScripts/Windows/server/svrAdmin.bat index debb9b3503..f467a11642 100644 --- a/Ghidra/RuntimeScripts/Windows/server/svrAdmin.bat +++ b/Ghidra/RuntimeScripts/Windows/server/svrAdmin.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## @echo off :: *********************************************************** diff --git a/Ghidra/RuntimeScripts/Windows/server/svrInstall.bat b/Ghidra/RuntimeScripts/Windows/server/svrInstall.bat index 2e73d7afab..1f6d95c6c7 100644 --- a/Ghidra/RuntimeScripts/Windows/server/svrInstall.bat +++ b/Ghidra/RuntimeScripts/Windows/server/svrInstall.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## @echo off setlocal diff --git a/Ghidra/RuntimeScripts/Windows/server/svrUninstall.bat b/Ghidra/RuntimeScripts/Windows/server/svrUninstall.bat index eb58d014c4..05dd76eb65 100644 --- a/Ghidra/RuntimeScripts/Windows/server/svrUninstall.bat +++ b/Ghidra/RuntimeScripts/Windows/server/svrUninstall.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## @echo off setlocal diff --git a/Ghidra/RuntimeScripts/Windows/support/GhidraGo/ghidraGo.bat b/Ghidra/RuntimeScripts/Windows/support/GhidraGo/ghidraGo.bat index 8a7061b997..33a97f012d 100644 --- a/Ghidra/RuntimeScripts/Windows/support/GhidraGo/ghidraGo.bat +++ b/Ghidra/RuntimeScripts/Windows/support/GhidraGo/ghidraGo.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: GhidraGo launch @echo off diff --git a/Ghidra/RuntimeScripts/Windows/support/analyzeHeadless.bat b/Ghidra/RuntimeScripts/Windows/support/analyzeHeadless.bat index e577293f24..496ae49803 100644 --- a/Ghidra/RuntimeScripts/Windows/support/analyzeHeadless.bat +++ b/Ghidra/RuntimeScripts/Windows/support/analyzeHeadless.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: Ghidra Headless Analyzer launch (see analyzeHeadlessREADME.html) @echo off diff --git a/Ghidra/RuntimeScripts/Windows/support/bsim.bat b/Ghidra/RuntimeScripts/Windows/support/bsim.bat index fcc059ca19..7cad14976d 100644 --- a/Ghidra/RuntimeScripts/Windows/support/bsim.bat +++ b/Ghidra/RuntimeScripts/Windows/support/bsim.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: Command-line script for interacting with a BSim database @echo off diff --git a/Ghidra/RuntimeScripts/Windows/support/buildGhidraJar.bat b/Ghidra/RuntimeScripts/Windows/support/buildGhidraJar.bat index 4ae026640e..96e0f3323a 100644 --- a/Ghidra/RuntimeScripts/Windows/support/buildGhidraJar.bat +++ b/Ghidra/RuntimeScripts/Windows/support/buildGhidraJar.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: Ghidra Jar Builder launch @echo off diff --git a/Ghidra/RuntimeScripts/Windows/support/convertStorage.bat b/Ghidra/RuntimeScripts/Windows/support/convertStorage.bat index 7e6a894651..66912c65c7 100644 --- a/Ghidra/RuntimeScripts/Windows/support/convertStorage.bat +++ b/Ghidra/RuntimeScripts/Windows/support/convertStorage.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: Ghidra Filesystem Conversion launch @echo off diff --git a/Ghidra/RuntimeScripts/Windows/support/createPdbXmlFiles.bat b/Ghidra/RuntimeScripts/Windows/support/createPdbXmlFiles.bat index fed8c216c4..c0e9b52176 100644 --- a/Ghidra/RuntimeScripts/Windows/support/createPdbXmlFiles.bat +++ b/Ghidra/RuntimeScripts/Windows/support/createPdbXmlFiles.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: Script that takes either a single .pdb file or a directory :: that contains .pdb files (search for files is recursive). :: diff --git a/Ghidra/RuntimeScripts/Windows/support/dbgengGADPServerRun.bat b/Ghidra/RuntimeScripts/Windows/support/dbgengGADPServerRun.bat index 58747dbeb6..820daf39cb 100644 --- a/Ghidra/RuntimeScripts/Windows/support/dbgengGADPServerRun.bat +++ b/Ghidra/RuntimeScripts/Windows/support/dbgengGADPServerRun.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: GADP Server launch @echo off diff --git a/Ghidra/RuntimeScripts/Windows/support/dbgmodelGADPServerRun.bat b/Ghidra/RuntimeScripts/Windows/support/dbgmodelGADPServerRun.bat index 163a00c823..2106c0bf22 100644 --- a/Ghidra/RuntimeScripts/Windows/support/dbgmodelGADPServerRun.bat +++ b/Ghidra/RuntimeScripts/Windows/support/dbgmodelGADPServerRun.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: GADP Server launch @echo off diff --git a/Ghidra/RuntimeScripts/Windows/support/ghidraClean.bat b/Ghidra/RuntimeScripts/Windows/support/ghidraClean.bat index 8b8c4a59fb..49e506f737 100644 --- a/Ghidra/RuntimeScripts/Windows/support/ghidraClean.bat +++ b/Ghidra/RuntimeScripts/Windows/support/ghidraClean.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: Ghidra-Clean :: An interactive utility to discover and delete artifacts that Ghidra lays down on the filesystem. @@ -6,4 +21,4 @@ setlocal set VMARG_LIST=-Djava.awt.headless=true -call "%~dp0launch.bat" fg jdk Ghidra-Clean "" "" utility.application.AppCleaner Ghidra \ No newline at end of file +call "%~dp0launch.bat" fg jdk Ghidra-Clean "" "" utility.application.AppCleaner Ghidra diff --git a/Ghidra/RuntimeScripts/Windows/support/ghidraDebug.bat b/Ghidra/RuntimeScripts/Windows/support/ghidraDebug.bat index 5b335a0fb5..e5d6f1f1c0 100644 --- a/Ghidra/RuntimeScripts/Windows/support/ghidraDebug.bat +++ b/Ghidra/RuntimeScripts/Windows/support/ghidraDebug.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: Ghidra debug launch @echo off diff --git a/Ghidra/RuntimeScripts/Windows/support/jshellRun.bat b/Ghidra/RuntimeScripts/Windows/support/jshellRun.bat index 37238450c0..155b46b916 100644 --- a/Ghidra/RuntimeScripts/Windows/support/jshellRun.bat +++ b/Ghidra/RuntimeScripts/Windows/support/jshellRun.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: Ghidra JShell launch @echo off diff --git a/Ghidra/RuntimeScripts/Windows/support/jythonRun.bat b/Ghidra/RuntimeScripts/Windows/support/jythonRun.bat index 8782f9cec7..a4ae43bf51 100644 --- a/Ghidra/RuntimeScripts/Windows/support/jythonRun.bat +++ b/Ghidra/RuntimeScripts/Windows/support/jythonRun.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: Ghidra jython launch @echo off diff --git a/Ghidra/RuntimeScripts/Windows/support/launch.bat b/Ghidra/RuntimeScripts/Windows/support/launch.bat index 47c95d81b6..ca6b5d94f8 100644 --- a/Ghidra/RuntimeScripts/Windows/support/launch.bat +++ b/Ghidra/RuntimeScripts/Windows/support/launch.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## @echo off goto continue diff --git a/Ghidra/RuntimeScripts/Windows/support/pyghidraRun.bat b/Ghidra/RuntimeScripts/Windows/support/pyghidraRun.bat index 2af21aac33..96e331ec67 100644 --- a/Ghidra/RuntimeScripts/Windows/support/pyghidraRun.bat +++ b/Ghidra/RuntimeScripts/Windows/support/pyghidraRun.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: PyGhidra launch @echo off diff --git a/Ghidra/RuntimeScripts/Windows/support/sleigh.bat b/Ghidra/RuntimeScripts/Windows/support/sleigh.bat index 8b602f8024..15003568de 100644 --- a/Ghidra/RuntimeScripts/Windows/support/sleigh.bat +++ b/Ghidra/RuntimeScripts/Windows/support/sleigh.bat @@ -1,3 +1,18 @@ +:: ### +:: IP: GHIDRA +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: ## :: Ghidra Sleigh language compiler launch @echo off diff --git a/Ghidra/RuntimeScripts/certification.manifest b/Ghidra/RuntimeScripts/certification.manifest index c50f377991..339a44c4c2 100644 --- a/Ghidra/RuntimeScripts/certification.manifest +++ b/Ghidra/RuntimeScripts/certification.manifest @@ -30,25 +30,5 @@ Linux/support/jshellRun||GHIDRA||||END| Linux/support/jythonRun||GHIDRA||||END| Linux/support/pyghidraRun||GHIDRA||||END| Linux/support/sleigh||GHIDRA||||END| -Windows/ghidraRun.bat||GHIDRA||||END| -Windows/server/ghidraSvr.bat||GHIDRA||||END| -Windows/server/svrAdmin.bat||GHIDRA||||END| -Windows/server/svrInstall.bat||GHIDRA||||END| -Windows/server/svrUninstall.bat||GHIDRA||||END| -Windows/support/GhidraGo/ghidraGo.bat||GHIDRA||||END| Windows/support/README_createPdbXmlFiles.txt||GHIDRA||||END| -Windows/support/analyzeHeadless.bat||GHIDRA||||END| -Windows/support/bsim.bat||GHIDRA||||END| -Windows/support/buildGhidraJar.bat||GHIDRA||||END| -Windows/support/convertStorage.bat||GHIDRA||||END| -Windows/support/createPdbXmlFiles.bat||GHIDRA||||END| -Windows/support/dbgengGADPServerRun.bat||GHIDRA||||END| -Windows/support/dbgmodelGADPServerRun.bat||GHIDRA||||END| Windows/support/ghidra.ico||GHIDRA||||END| -Windows/support/ghidraClean.bat||GHIDRA||||END| -Windows/support/ghidraDebug.bat||GHIDRA||||END| -Windows/support/jshellRun.bat||GHIDRA||||END| -Windows/support/jythonRun.bat||GHIDRA||||END| -Windows/support/launch.bat||GHIDRA||||END| -Windows/support/pyghidraRun.bat||GHIDRA||||END| -Windows/support/sleigh.bat||GHIDRA||||END| diff --git a/certification.local.manifest b/certification.local.manifest index f5bd4d865f..41a63dceb1 100644 --- a/certification.local.manifest +++ b/certification.local.manifest @@ -11,4 +11,3 @@ README.md||GHIDRA||||END| ghidra.repos.config||GHIDRA||||END| gradle.properties||GHIDRA||||END| gradlew||Apache License 2.0||||END| -gradlew.bat||Apache License 2.0||||END| diff --git a/gradle/support/ip.gradle b/gradle/support/ip.gradle index bedd453246..8244aa2786 100644 --- a/gradle/support/ip.gradle +++ b/gradle/support/ip.gradle @@ -217,10 +217,21 @@ def isBashSourceFile(File file) { // NOTE: bash/shell scripts without extension will not utilize a header return filename.endsWith(".py") || filename.endsWith(".sh") || + filename.endsWith(".ps1") || filename.endsWith(".bash") || filename.endsWith(".command"); } +/********************************************************************************* + * checks if a file supports a Windows Batch style header based on its extension. + *********************************************************************************/ +def isBatchSourceFile(File file) { + + String filename = file.getName().toLowerCase(); + + return filename.endsWith(".bat"); +} + /********************************************************************************* * Gets the ip for a file in the module from its header (or certification.manifest) @@ -236,6 +247,9 @@ def getIp(File projectDir, File file) { ip = getIpForSourceFile(file, "# IP:"); } } + else if (isBatchSourceFile(file)) { + ip = getIpForSourceFile(file, ":: IP:"); + } if (ip == null) { ip = getIpForNonSourceFile(projectDir, file); } diff --git a/gradlew.bat b/gradlew.bat index eb0c161e41..5ee39252b5 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -1,3 +1,6 @@ +:: ### +:: IP: Apache License 2.0 +:: ## @rem @rem Copyright 2015 the original author or authors. @rem