Как я могу настроить Ghidra как ida pro? - PullRequest
0 голосов
/ 07 мая 2020

Я использую Гидру. У меня кое-что вопрос. Когда я открывал бинарный IDA pro, код был очень хорош для анализа. Это код декомпиляции IDA pro

printf("Tell me something about yourself: ");
  fgets(&s, 32, edata);
  std::string::operator=(&input, &s);
  std::allocator<char>::allocator(&v5);
  std::string::string((int)&v4, (int)"you", (int)&v5);
  std::allocator<char>::allocator(&v7);
  std::string::string((int)&v6, (int)"I", (int)&v7);
  replace((std::string *)&v3);

, а это та же часть Ghidra.

  printf("Tell me something about yourself: ");
  fgets(local_40,0x20,stdin);
  operator=((basic_string<char,std--char_traits<char>,std--allocator<char>> *)&input,local_40);
  allocator();
  basic_string((char *)local_1c,(allocator *)&DAT_08049823);
  allocator();
  basic_string((char *)local_14,(allocator *)&DAT_08049827);
  replace(local_20,&input,local_14,local_1c);
  operator=((basic_string<char,std--char_traits<char>,std--allocator<char>> *)&input,
            (basic_string *)local_20);

Вопрос в том, когда я открываю двоичный файл с помощью IDA Pro, они могут показать мне строку. как

std::string::string((int)&v4, (int)"you", (int)&v5); 
std::string::string((int)&v6, (int)"I", (int)&v7);

, но в Ghidra

  basic_string((char *)local_1c,(allocator *)&DAT_08049823);
  allocator();
  basic_string((char *)local_14,(allocator *)&DAT_08049827);

Я просто хочу знать, как я могу изменить конфигурацию в ghidra. Вот так

local_1c -> "you" , local_14 -> "I"
...