Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbasPL committed Nov 21, 2024
0 parents commit 0418ffd
Show file tree
Hide file tree
Showing 13 changed files with 32,283 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/setup-bindiff-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: 'setup BinDiff test'

on:
push:
branches:
- '**'
pull_request:

defaults:
run:
shell: bash

jobs:
bindiff-test-matrix:
name: BinDiff local run on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
download-link: IDA_DOWNLOAD_LINK_LINUX
overlay-links: IDA_OVERLAY_LINKS_LINUX
install-command: IDA_INSTALL_COMMAND_LINUX
- os: windows-latest
download-link: IDA_DOWNLOAD_LINK_WINDOWS
overlay-links: IDA_OVERLAY_LINKS_WINDOWS
install-command: IDA_INSTALL_COMMAND_WINDOWS

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup IDA Pro
uses: cs2-analysis/setup-ida-pro@v1
with:
download-link: '${{ secrets[matrix.download-link] }}'
overlay-links: '${{ secrets[matrix.overlay-links] }}'
install-command: '${{ secrets[matrix.install-command] }}'

- name: Setup BinDiff
uses: ./

- name: Test IDA Pro, BinExport, and BinDiff
run: |
cp -v $(which gzip) ./
idat -B gzip
idat -A -OBinExportAutoAction:BinExportBinary -OBinExportModule:gzip.BinExport gzip.i64
bindiff --version
ls -l gzip{,.i64,.asm,.BinExport}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.env*
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 cs2-analisis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# setup-bindiff

Action to setup BinDiff including the IDA Pro plugins.

> [!NOTE]
> Only IDA Pro 9.0.240925 (Windows and Linux) supported.
## Usage example

```yaml
- name: Setup BinDiff
uses: cs2-analysis/setup-bindiff@v1
# with:
# version: 'latest'
```
17 changes: 17 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Setup BinDiff'
description: 'Setup BinDiff (IDA Pro 9.0)'
author: 'dumbasPL'

inputs:
version:
description: 'BinDiff version'
required: false
default: 'latest'

runs:
using: 'node20'
main: 'dist/index.js'

branding:
icon: 'download'
color: 'blue'
Loading

0 comments on commit 0418ffd

Please sign in to comment.