Skip to content

Commit

Permalink
#59 Done. Identifying unsupported instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Oca committed Oct 14, 2016
1 parent 1a295fe commit 397dccd
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Ponce/src/callbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ void tritonize(ea_t pc, thid_t threadID)
msg("[+] Triton At " HEX_FORMAT ": %s (Thread id: %d)\n", pc, tritonInst->getDisassembly().c_str(), threadID);

/* Process the IR and taint */
triton::api.buildSemantics(*tritonInst);
if (!triton::api.buildSemantics(*tritonInst))
msg("[!] Instruction at " HEX_FORMAT " not supported by Triton: %s (Thread id: %d)\n", pc, tritonInst->getDisassembly().c_str(), threadID);

/*In the case that the snapshot engine is in use we shoudl track every memory write access*/
if (snapshot.exists())
Expand Down
40 changes: 34 additions & 6 deletions builds/PonceBuild/Ponce/Ponce.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -159,42 +159,42 @@
<IntDir>$(Platform)\$(Configuration)\</IntDir>
<TargetExt>.plw</TargetExt>
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)_x86_static</TargetName>
<TargetName>$(ProjectName)_x86_IDA69_win</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='x68ReleaseStatic_IDA6.8|Win32'">
<OutDir>$(SolutionDir)$(Platform)\</OutDir>
<IntDir>$(Platform)\$(Configuration)\</IntDir>
<TargetExt>.plw</TargetExt>
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)_x86_static_IDA68</TargetName>
<TargetName>$(ProjectName)_x86_IDA68_win</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='X64ReleaseStatic|Win32'">
<OutDir>$(SolutionDir)$(Platform)\</OutDir>
<IntDir>$(Platform)\$(Configuration)\</IntDir>
<TargetExt>.p64</TargetExt>
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)_x64_static</TargetName>
<TargetName>$(ProjectName)_x64_IDA69_win</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='X64ReleaseStatic_IDA6.8|Win32'">
<OutDir>$(SolutionDir)$(Platform)\</OutDir>
<IntDir>$(Platform)\$(Configuration)\</IntDir>
<TargetExt>.p64</TargetExt>
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)_x64_static_IDA68</TargetName>
<TargetName>$(ProjectName)_x64_IDA68_win</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='x86ReleaseZ3dyn|Win32'">
<OutDir>$(SolutionDir)$(Platform)\</OutDir>
<IntDir>$(Platform)\$(Configuration)\</IntDir>
<TargetExt>.plw</TargetExt>
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)_x86_z3dyn</TargetName>
<TargetName>$(ProjectName)_x86_IDA69_win_z3dyn</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='x64ReleaseZ3dyn|Win32'">
<OutDir>$(SolutionDir)$(Platform)\</OutDir>
<IntDir>$(Platform)\$(Configuration)\</IntDir>
<TargetExt>.p64</TargetExt>
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)_x64_z3dyn</TargetName>
<TargetName>$(ProjectName)_x64_IDA69_win_z3dyn</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='x64Release|Win32'">
<OutDir>$(SolutionDir)$(Platform)\</OutDir>
Expand All @@ -214,6 +214,10 @@
<PostBuildEvent>
<Command>copy /Y $(TargetPath) "C:\Program Files (x86)\IDA 6.95\plugins"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>"C:\Program Files\Git\git-bash.exe" -c "cd /c/PonceProject/; bash version_number_update.sh"</Command>
<Message>This event update the version before compile the plugin</Message>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='x86ReleaseStatic|Win32'">
<ClCompile>
Expand Down Expand Up @@ -251,6 +255,10 @@
<PostBuildEvent>
<Command>copy /Y $(TargetPath) "C:\Program Files (x86)\IDA 6.95\plugins"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>"C:\Program Files\Git\git-bash.exe" -c "cd /c/PonceProject/; bash version_number_update.sh"</Command>
<Message>This event update the version before compile the plugin</Message>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='x68ReleaseStatic_IDA6.8|Win32'">
<ClCompile>
Expand Down Expand Up @@ -288,6 +296,10 @@
<PostBuildEvent>
<Command>copy /Y $(TargetPath) "C:\Program Files (x86)\IDA 6.95\plugins"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>"C:\Program Files\Git\git-bash.exe" -c "cd /c/PonceProject/; bash version_number_update.sh"</Command>
<Message>This event update the version before compile the plugin</Message>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='X64ReleaseStatic|Win32'">
<ClCompile>
Expand Down Expand Up @@ -325,6 +337,10 @@
<PostBuildEvent>
<Command>copy /Y $(TargetPath) "C:\Program Files (x86)\IDA 6.95\plugins"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>"C:\Program Files\Git\git-bash.exe" -c "cd /c/PonceProject/; bash version_number_update.sh"</Command>
<Message>This event update the version before compile the plugin</Message>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='X64ReleaseStatic_IDA6.8|Win32'">
<ClCompile>
Expand Down Expand Up @@ -362,6 +378,10 @@
<PostBuildEvent>
<Command>copy /Y $(TargetPath) "C:\Program Files (x86)\IDA 6.95\plugins"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>"C:\Program Files\Git\git-bash.exe" -c "cd /c/PonceProject/; bash version_number_update.sh"</Command>
<Message>This event update the version before compile the plugin</Message>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='x86ReleaseZ3dyn|Win32'">
<ClCompile>
Expand Down Expand Up @@ -399,6 +419,10 @@
<PostBuildEvent>
<Command>copy /Y $(TargetPath) "C:\Program Files (x86)\IDA 6.95\plugins"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>"C:\Program Files\Git\git-bash.exe" -c "cd /c/PonceProject/; bash version_number_update.sh"</Command>
<Message>This event update the version before compile the plugin</Message>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='x64ReleaseZ3dyn|Win32'">
<ClCompile>
Expand Down Expand Up @@ -475,6 +499,10 @@
<PostBuildEvent>
<Command>copy /Y $(TargetPath) "C:\Program Files (x86)\IDA 6.95\plugins"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>"C:\Program Files\Git\git-bash.exe" -c "cd /c/PonceProject/; bash version_number_update.sh"</Command>
<Message>This event update the version before compile the plugin</Message>
</PreBuildEvent>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
Binary file modified external-libs/libs/ALL_static_MT_x86/triton.lib
Binary file not shown.
Binary file modified external-libs/libs/Z3_dyn_rest_static_MT_x86/triton.lib
Binary file not shown.

0 comments on commit 397dccd

Please sign in to comment.