Add rabin2, radiff2 ragg2 and rahash2 to the wapm ##build

This commit is contained in:
pancake 2024-04-01 14:05:23 +02:00
parent 3d157d361c
commit 1c7e7952a9
16 changed files with 117 additions and 1 deletions

7
dist/wapm/rabin2/Makefile vendored Normal file
View File

@ -0,0 +1,7 @@
all: rabin2.wasm
vim wapm.toml
# wapm login
wapm publish
rabin2.wasm:
cp -f ../../../radare2-*-wasi/rabin2.wasm rabin2.wasm

1
dist/wapm/rabin2/README.md vendored Normal file
View File

@ -0,0 +1 @@
wasi build of rabin2 to parse executable and library binaries (part of the radare2 project)

15
dist/wapm/rabin2/wapm.toml vendored Normal file
View File

@ -0,0 +1,15 @@
[package]
name = "pancake/rabin2"
version = "5.9.0"
description = "Unix-Like Reverse Engineering Framework"
license = "LGPL3"
readme = "README.md"
[[module]]
name = "rabin2"
source = "rabin2.wasm"
abi = "wasi"
[[command]]
name = "rabin2"
module = "rabin2"

7
dist/wapm/radiff2/Makefile vendored Normal file
View File

@ -0,0 +1,7 @@
all: radiff2.wasm
vim wapm.toml
# wapm login
wapm publish
radiff2.wasm:
cp -f ../../../radare2-*-wasi/radiff2.wasm radiff2.wasm

1
dist/wapm/radiff2/README.md vendored Normal file
View File

@ -0,0 +1 @@
wasi build of radiff2 to find changes between two binaries (part of the radare2 project)

15
dist/wapm/radiff2/wapm.toml vendored Normal file
View File

@ -0,0 +1,15 @@
[package]
name = "pancake/radiff2"
version = "5.9.0"
description = "Unix-Like Reverse Engineering Framework"
license = "LGPL3"
readme = "README.md"
[[module]]
name = "radiff2"
source = "radiff2.wasm"
abi = "wasi"
[[command]]
name = "radiff2"
module = "radiff2"

7
dist/wapm/rafind2/Makefile vendored Normal file
View File

@ -0,0 +1,7 @@
all: rafind2.wasm
vim wapm.toml
# wapm login
wapm publish
rafind2.wasm:
cp -f ../../../radare2-*-wasi/rafind2.wasm rafind2.wasm

1
dist/wapm/rafind2/README.md vendored Normal file
View File

@ -0,0 +1 @@
wasi build of rafind2 to search patterns in binaries (part of the radare2 project)

15
dist/wapm/rafind2/wapm.toml vendored Normal file
View File

@ -0,0 +1,15 @@
[package]
name = "pancake/rafind2"
version = "5.9.0"
description = "Unix-Like Reverse Engineering Framework"
license = "LGPL3"
readme = "README.md"
[[module]]
name = "rafind2"
source = "rafind2.wasm"
abi = "wasi"
[[command]]
name = "rafind2"
module = "rafind2"

7
dist/wapm/ragg2/Makefile vendored Normal file
View File

@ -0,0 +1,7 @@
all: ragg2.wasm
vim wapm.toml
# wapm login
wapm publish
ragg2.wasm:
cp -f ../../../radare2-*-wasi/ragg2.wasm ragg2.wasm

1
dist/wapm/ragg2/README.md vendored Normal file
View File

@ -0,0 +1 @@
wasi build of ragg2 to construct and encode shellcode eggs (part of the radare2 project)

15
dist/wapm/ragg2/wapm.toml vendored Normal file
View File

@ -0,0 +1,15 @@
[package]
name = "pancake/ragg2"
version = "5.9.0"
description = "Unix-Like Reverse Engineering Framework"
license = "LGPL3"
readme = "README.md"
[[module]]
name = "ragg2"
source = "ragg2.wasm"
abi = "wasi"
[[command]]
name = "ragg2"
module = "ragg2"

7
dist/wapm/rahash2/Makefile vendored Normal file
View File

@ -0,0 +1,7 @@
all: rahash2.wasm
vim wapm.toml
# wapm login
wapm publish
rahash2.wasm:
cp -f ../../../radare2-*-wasi/rahash2.wasm rahash2.wasm

1
dist/wapm/rahash2/README.md vendored Normal file
View File

@ -0,0 +1 @@
wasi build of rahash2 checksum, encoder end cipher part of the radare2 project)

15
dist/wapm/rahash2/wapm.toml vendored Normal file
View File

@ -0,0 +1,15 @@
[package]
name = "pancake/rahash2"
version = "5.9.0"
description = "Unix-Like Reverse Engineering Framework"
license = "LGPL3"
readme = "README.md"
[[module]]
name = "rahash2"
source = "rahash2.wasm"
abi = "wasi"
[[command]]
name = "rahash2"
module = "rahash2"

View File

@ -3,6 +3,7 @@
WASI_ROOT=${HOME}/Downloads/wasi
WASI_MAJOR=20
WASI_VERSION=${WASI_MAJOR}.0
TOOLS="rax2 radiff2 rahash2 radare2 rasm2 rabin2 rafind2"
export WASI_SDK=${WASI_ROOT}/wasi-sdk-${WASI_VERSION}
export WASI_SYSROOT=${WASI_ROOT}/wasi-sysroot-${WASI_VERSION}
@ -44,7 +45,7 @@ make -j
R2V=`./configure -qV`
D="radare2-$R2V-wasi"
mkdir -p $D
for a in rax2 radare2 rasm2 rabin2 rafind2 ; do
for a in ${TOOLS} ; do
make -C binr/$a
cp -f binr/$a/$a.wasm $D || ERR=1
done