Repository navigation
RevEngAI Radare2 Plugin v2.1.1
RevEngAI Radare2 Plugin Release v2.1.1
This release contains the RevEngAI plugin for Radare2 with automated install scripts.
π¦ Downloads
| Platform | Download | Contents |
|---|---|---|
| π§ Linux | reai-r2-linux.tar.gz |
Radare2 plugin + install script |
| π macOS | reai-r2-macos.tar.gz |
Radare2 plugin + install script |
| πͺ Windows | reai-r2-windows.zip |
Radare2 plugin + install script |
π What's Included
Linux:
- π
libreai_radare.so- Radare2 plugin - π
libreai.so- RevEngAI runtime library - π
install-linux.sh- Automated installer with rpath fixing - π
README.md- Detailed installation documentation
macOS:
- π
libreai_radare.so- Radare2 plugin - π
libreai.dylib- RevEngAI runtime library - π
install-macos.sh- Automated installer with rpath fixing - π
README.md- Detailed installation documentation
Windows:
- π
reai_radare.dll- Radare2 plugin - π
reai_radare.lib- Plugin import library - π
reai.dll+reai.lib- RevEngAI runtime library - π
libcurl.dll+libcurl_imp.lib- HTTP client library - π
install-windows.ps1- Automated installer with PATH setup - π
README.md- Detailed installation documentation
π Installation (Recommended)
π― Use the included install scripts for best results:
Linux
# Download and extract
wget https://github.com/RevEngAI/reai-r2/releases/download/v2.1.1/reai-r2-linux.tar.gz
tar -xzf reai-r2-linux.tar.gz
cd reai-r2-linux
# Run automated installer (requires patchelf)
sudo apt install patchelf radare2 # Ubuntu/Debian
chmod +x install-linux.sh
./install-linux.shmacOS
# Download and extract
curl -L -O https://github.com/RevEngAI/reai-r2/releases/download/v2.1.1/reai-r2-macos.tar.gz
tar -xzf reai-r2-macos.tar.gz
cd reai-r2-macos
# Run automated installer (requires Xcode tools)
brew install radare2 # if not already installed
xcode-select --install # if not already installed
chmod +x install-macos.sh
./install-macos.shWindows
# Download and extract (PowerShell)
Invoke-WebRequest "https://github.com/RevEngAI/reai-r2/releases/download/v2.1.1/reai-r2-windows.zip" -OutFile "reai-r2-windows.zip"
Expand-Archive "reai-r2-windows.zip" -Force
cd reai-r2-windows
# Run automated installer
.\install-windows.ps1π οΈ What The Install Scripts Do
The install scripts provide intelligent, platform-specific installation:
- β
Install libraries to proper user directories (
~/.local/lib/) - β
Install Radare2 plugin to
$(radare2 -H R2_USER_PLUGINS) - β Fix rpath/library paths so plugins can find dependencies
- β Set up environment with helper scripts for easy usage
- β Verify installation and provide clear success/error messages
π Manual Installation (Advanced)
If you prefer manual installation or the scripts don't work:
Exact File Locations
Shared Libraries:
- Linux:
~/.local/lib/libreai.so - macOS:
~/.local/lib/libreai.dylib - Windows:
%USERPROFILE%\.local\bin\reai.dll+%USERPROFILE%\.local\lib\reai.lib
Radare2 Plugin:
- All platforms: Copy to
$(radare2 -H R2_USER_PLUGINS)
Windows Additional Dependencies:
libcurl.dllβ%USERPROFILE%\.local\bin\libcurl_imp.libβ%USERPROFILE%\.local\lib\reai_radare.libβ Plugin directory
export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH" # Linux
export DYLD_LIBRARY_PATH="$HOME/.local/lib:$DYLD_LIBRARY_PATH" # macOSβ Verification
After installation, verify the plugin works:
Radare2:
radare2 /bin/ls
[0x00000000]> reai help
# Should display RevEngAI plugin helpCheck plugin loading:
radare2 -c "L" /bin/ls | grep reai
# Should show the loaded reai pluginπ Configuration
Create a configuration file at ~/.creait:
api_key = YOUR_REVENGAI_API_KEY
host = https://api.reveng.aiπ§ Requirements
- Radare2 5.9.8 or compatible version
- Internet connection for RevEngAI API access
- Valid RevEngAI API key from https://portal.reveng.ai
Platform-specific:
- Linux:
patchelftool for rpath fixing (sudo apt install patchelf) - macOS: Xcode command line tools for rpath fixing (
xcode-select --install) - Windows: PowerShell (included with Windows)
π Issues & Support
- π Installation issues: Check the install script output for detailed error messages
- π§ Plugin not loading: Verify environment variables are set (see install script output)
- π API issues: Verify your API key and configuration file
- π Bug reports: https://github.com/RevEngAI/reai-r2/issues
π Troubleshooting
Plugin not found:
# Check plugin directory
radare2 -H R2_USER_PLUGINS
ls "$(radare2 -H R2_USER_PLUGINS)"
# Check if plugin file exists
ls -la "$(radare2 -H R2_USER_PLUGINS)"/libreai_radare.*Library not found (Unix):
# macOS
otool -L ~/.local/lib/libreai.dylib
export DYLD_LIBRARY_PATH="$HOME/.local/lib:$DYLD_LIBRARY_PATH"
# Linux
ldd ~/.local/lib/libreai.so
export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"Windows DLL issues:
# Check if DLLs are in PATH
where reai.dll
where libcurl.dll
# Add to PATH if needed
$env:PATH = "$env:USERPROFILE\.local\bin;$env:PATH"What's Changed
- Use ai_summary Only For Now by @brightprogrammer in #8
Full Changelog: v2.1.0...v2.1.1