Безопасность компьютерных систем 2017/Бинарные программы 1 — различия между версиями

Материал из Wiki - Факультет компьютерных наук
Перейти к: навигация, поиск
(Новая страница: «== Материалы семинара №1 по бинарным уязвимостям == === Ссылки на IDA PRO === You can download the IDA demo from…»)
 
Строка 7: Строка 7:
 
* Linux:    http://out7.hex-rays.com/demo/download/linux
 
* Linux:    http://out7.hex-rays.com/demo/download/linux
 
* Mac OS X: http://out7.hex-rays.com/demo/download/mac
 
* Mac OS X: http://out7.hex-rays.com/demo/download/mac
 +
 +
=== Тестовый пример на семинаре ===
 +
 +
  #include <cstdlib>
 +
  #include <string>
 +
  void foo(char *arr, int b)
 +
  {
 +
    int c;
 +
    int t;
 +
    char arr_local[35];
 +
    strcpy(arr_local, arr);
 +
  }
 +
  int main(int argc, char *argv[])
 +
  {
 +
    foo(argv[1], 5);
 +
  }

Версия 12:59, 31 октября 2017

Материалы семинара №1 по бинарным уязвимостям

Ссылки на IDA PRO

You can download the IDA demo from the following links:

Тестовый пример на семинаре

  #include <cstdlib>
  #include <string>
  void foo(char *arr, int b)
  {
    int c;
    int t;
    char arr_local[35];
    strcpy(arr_local, arr);
  }
  int main(int argc, char *argv[])
  {
    foo(argv[1], 5);
  }