Example Usage
from triton import *
>>> # Create the Triton context with a defined architecture
>>> ctx = TritonContext(ARCH.X86_64)
>>> # Define concrete values (optional)
>>> ctx.setConcreteRegisterValue(ctx.registers.rip, 0x40000)
>>> # Symbolize data (optional)
>>> ctx.symbolizeRegister(ctx.registers.rax, 'my_rax')
>>> # Execute instructions
>>> ctx.processing(Instruction(b"\x48\x35\x34\x12\x00\x00")) # xor rax, 0x1234
>>> ctx.processing(Instruction(b"\x48\x89\xc1")) # mov rcx, rax
>>> # Get the symbolic expression
>>> rcx_expr = ctx.getSymbolicRegister(ctx.registers.rcx)
>>> print(rcx_expr)
(define-fun ref!8 () (_ BitVec 64) ref!1) ; MOV operation - 0x40006: mov rcx, rax
>>> # Solve constraint
>>> ctx.getModel(rcx_expr.getAst() == 0xdead)
{0: my_rax:64 = 0xcc99}
>>> # 0xcc99 XOR 0x1234 is indeed equal to 0xdead
>>> hex(0xcc99 ^ 0x1234)
'0xdead'
See also
-SKYNET-Steam-Emulator
Open Source
Client emulator to play steam games on LAN without Internet connection.…
.NET-Deobfuscator
Open Source
Lists of .NET Deobfuscator and Unpacker (Open Source)…
GH-Offset-Dumper
Free
Scan signatures and netvars. Dumps header files, cheat tables and ReClass files.…
010editor
Free
Templates and scripts for 010 editor…
RetDec
Open Source
Retargetable machine-code decompiler based on LLVM. Developed by Avast. Decompiles x86, ARM, MIPS, P…
IDA Pro
Paid
The industry-standard disassembler and decompiler (with Hex-Rays decompiler). Supports the widest ra…