File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 53
53
run : |
54
54
Invoke-WebRequest -URI "${{ matrix.ghidra-release-url }}" -OutFile "./tmp/ghidra.zip"
55
55
mkdir ./tmp/ghidra
56
- tar -xf .\ tmp\ ghidra.zip -C .\ tmp\ ghidra
56
+ tar -xf ./ tmp/ ghidra.zip -C ./ tmp/ ghidra
57
57
Rename-Item -Path "./tmp/ghidra/$((Get-ChildItem -Path "./tmp/ghidra").BaseName)" -NewName "ghidra_PUBLIC"
58
58
Invoke-WebRequest -URI "${{ matrix.jep-jar-release-url }}" -OutFile "./lib/jep-4.2.0.jar"
59
59
- name : Build Ghidrathon
60
- run : gradle -PGHIDRA_INSTALL_DIR=${{ github.workspace }}/tmp/ghidra/ghidra_PUBLIC
60
+ run : gradle -PGHIDRA_INSTALL_DIR=${{ github.workspace }}/tmp/ghidra/ghidra_PUBLIC
61
+ - name : Install Ghidrathon Linux/macOS
62
+ if : ${{ matrix.os != 'windows-2019' }}
63
+ run : unzip ./dist/$(ls ./dist) -d ./tmp/ghidra/ghidra_PUBLIC/Ghidra/Extensions/
64
+ - name : Install Ghidrathon Windows
65
+ if : ${{ matrix.os == 'windows-2019' }}
66
+ shell : pwsh
67
+ run : |
68
+ Rename-Item -Path "./dist/$((Get-ChildItem -Path "./dist").BaseName)" -NewName "Ghidrathon.zip"
69
+ tar -xf ./dist/Ghidrathon.zip -C ./tmp/ghidra/ghidra_PUBLIC/Ghidra/Extensions/
Original file line number Diff line number Diff line change
1
+ # Run Ghidrathon unit tests.
2
+ # @author Mike Hunhoff ([email protected] )
3
+ # @category Python 3
4
+ # Copyright (C) 2024 Mandiant, Inc. All Rights Reserved.
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at: [package root]/LICENSE.txt
8
+ # Unless required by applicable law or agreed to in writing, software distributed under the License
9
+ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and limitations under the License.
11
+
12
+ import pathlib
13
+ import jep
14
+
15
+ path = pathlib .Path ("hello.txt" )
16
+ path .write_text (f"Hello from Jep { jep .__version__ } " , encoding = "utf-8" )
You can’t perform that action at this time.
0 commit comments