Skip to content

Commit

Permalink
Fix bug with IDA windows form
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Garcia Illera committed May 16, 2021
1 parent 993cdde commit c1d220b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion docs/misc/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ If you want to debug Ponce and being able to step into functions and put breakpo

- Make sure you set the `IDA_INSTALLED_DIR` parameter when building with CMake.
- Secondly you should open the IDA binary under Visual Studio. Do File -> Open -> Project and select the `C:\Program Files\IDA Pro 7.5\ida64.exe` binary.
-
- In the properties of the project you can set the arguments to the binary you IDA to run
- Now right click on the solution and go to Add -> Exixting Project and select the `Ponce64` project.
- Remember to compile Ponce on Debug so the breakpoints get hit
6 changes: 3 additions & 3 deletions src/formConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void prompt_conf_window(void) {
symbolic_or_taint_engine = cmdOptions.use_symbolic_engine ? 0 : 1;
}
if (ask_form(form,
modcb, // the call to this function can be omitted. It's only usefull if a checkbox activate or dissable other elements of the form
modcb,
&symbolic_or_taint_engine,
&chkgroup1,
&chkgroup2,
Expand Down Expand Up @@ -179,8 +179,8 @@ void prompt_conf_window(void) {
"addCommentsControlledOperands: %s\n"
"RenameTaintedFunctionNames: %s\n"
"addCommentssymbolizexpresions: %s\n"
"addCommentssymbolizexpresions: %s\n"
"color_tainted_execution: %x\n"
"color_tainted: %x\n"
"color_executed_instruction: %x\n"
"color_tainted_condition: %x\n",
cmdOptions.limitTime,
cmdOptions.limitInstructionsTracingMode,
Expand Down
4 changes: 2 additions & 2 deletions src/formConfiguration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ static const char form[] =
//
"<#Add comments to controlled operands#IDA View expand info#Add comments with controlled operands:C15>\n"
"<#This helps to track the tainted functions in large programms#Add prefix to tainted function names:C16>\n"
"<#Will add a comment for every instruction with his symbolic expression. Will dirt the IDA view.#Add comments with symbolic expresions:C17>>\n"
"<#Will add a comment for every instruction with his symbolic expression. Will pollute the IDA view.#Add comments with symbolic expresions:C17>>\n"
"\n"
"Ponce will heads up you after:\n"
"<#Time in seconds#Seconds running :D1:12:12>\n"
"<#Number of the instructions executed during tracing before ask to the user#Instructions executed :D2:12:12>\n"
"\n"
"<#Time in seconds#Solver timeout :D3:12:12>\n"
"<#Time in seconds#Solver timeout :D23:12:12>\n"
"\n"
"<#-1 is default colour#Color Tainted Instruction :K19:::>\n"
"<#-1 is default colour#Color Executed Instruction :K20:::>\n"
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ int idaapi init(void)
#elif IDA_SDK_VERSION == 700
if (strcmp(version, "7.00") != 0) {
#elif IDA_SDK_VERSION < 700
#error // not supported
#error "Ponce does not support IDA < 7.0"
#endif
warning("[!] This Ponce plugin was built for IDA %d, you are using: %s\n", IDA_SDK_VERSION, version);
}
Expand Down

0 comments on commit c1d220b

Please sign in to comment.