-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We temporarily use MiddleEnd packages from NuGet: https://www.nuget.org/packages?q=B2R2.MiddleEnd
- Loading branch information
Showing
603 changed files
with
46,290 additions
and
36,383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"evaltest": "41af9961df3c75106aedefef2be91a0c96092604", | ||
"switchtest": "fb9e2a0f94ed7cdf0dbd44e618ffdbb5cf153989" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"b2r2.rearend.launcher": { | ||
"version": "0.4.0", | ||
"commands": [ | ||
"b2r2" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,4 @@ | |
|
||
build/ | ||
|
||
B2R2.log | ||
B2R2.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
// ---------------------------------------------------------------------------- | ||
// B2R2 F# Sample. | ||
// ---------------------------------------------------------------------------- | ||
// Currently we assume that you have published all the binaries into the | ||
// `../../build` directory. To do so, you can simply run `make publish` in the | ||
// source root directory. | ||
// ---------------------------------------------------------------------------- | ||
|
||
#r "../../build/B2R2.Core.dll" | ||
#r "../../build/B2R2.BinIR.dll" | ||
#r "../../build/B2R2.BinFile.dll" | ||
#r "../../build/B2R2.FrontEnd.Core.dll" | ||
#r "../../build/B2R2.FrontEnd.Library.dll" | ||
#r "nuget: B2R2.FrontEnd.BinInterface" | ||
|
||
open B2R2 | ||
open B2R2.FrontEnd | ||
open B2R2.BinIR.LowUIR | ||
open B2R2.FrontEnd.BinInterface | ||
|
||
let isa = ISA.OfString "amd64" | ||
let bytes = [| 0x65uy; 0xffuy; 0x15uy; 0x10uy; 0x00uy; 0x00uy; 0x00uy |] | ||
let handler = BinHandler.Init (isa, bytes) | ||
let ins = BinHandler.ParseInstr handler 0UL | ||
let hdl = BinHandle.Init (isa, bytes) | ||
let ins = BinHandle.ParseInstr (hdl, 0UL) | ||
ins.Disasm () |> printfn "%s" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<RootNamespace>VB</RootNamespace> | ||
<TargetFramework>net5.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="B2R2.FrontEnd.BinInterface" Version="0.5.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
' ---------------------------------------------------------------------------- ' | ||
' B2R2 VB Sample. | ||
' ---------------------------------------------------------------------------- ' | ||
|
||
Imports System | ||
Imports B2R2 | ||
Imports B2R2.FrontEnd.BinInterface | ||
|
||
Module Program | ||
Sub Main(args As String()) | ||
Dim i = ISA.OfString("amd64") | ||
Dim bs = New Byte() { &H65, &Hff, &H15, &H10, &H00, &H00, &H00 } | ||
Dim hdl = BinHandle.Init(i, bs) | ||
Dim ins = BinHandle.ParseInstr(hdl, 0) | ||
Console.WriteLine(ins.Disasm()) | ||
End Sub | ||
End Module |
Oops, something went wrong.