13 Commits
Author SHA1 Message Date
Romain Lesteven e0abd462ce Replace jitter.run boolean by jitter.running 2021-05-05 11:02:33 +02:00
Fabrice Desclaux 80e40a3d2c Avoid generate default locationdb 2020-08-31 07:50:01 +02:00
Caroline Leman 19a25f3831 Test/Win Api: Add test to virtualprotect functions 2020-01-28 15:42:14 +01:00
Fabrice Desclaux 4dc802e354 Clear get_str_* API
get_str_ansi decoded strings using utf8 and was blindly used for pure
windows function (LoadLibraryA) and for stdlib functions (printf,
strlen, ...) even if strlen does not use utf8...

New API is:

get_win_str_a/get_win_str_w and set_win_str_a/set_win_str_w for
windows (respectively codepage1252/windows utf16) .Those functions
should only be used in windows strings manipulations, so there are taken
out of the jitter.

get_c_str/set_c_str: as those functions are "classic" in OSes, they are
keeped in the jitter.
2019-11-12 15:10:44 +01:00
Fabrice Desclaux 523507835e Fix get_str_ansi: return str
get_str_ansi and get_str_unic now returns both *str* object:
As get_str_unic decodes the string, get_str_ansi should do the same.
2019-09-22 22:02:51 +02:00
Fabrice Desclaux 944806c506 Rename miasm2 to miasm 2019-03-05 16:52:51 +01:00
Fabrice Desclaux 02bbb30efe Support python2/python3 2019-03-05 16:52:49 +01:00
Pierre LALET 814ccf5031 Fix typos & add codespell 2018-12-23 19:26:44 +01:00
Adrien Guinet 33dccf7012 Various Win32 API additions/fixes (#616)
Various Win32 API additions/fixes

* add a get_size method to Miasm heap object, which allows the
implementation of mscvrt_realloc
* add the concept of "current directory", with the default value being
arbitrary set to "c:\tmp", which allows the implementation of
{Get,Set}CurrentDirecrtory
* various other methods implemented:

 - advapi32_RegCloseKey
 - advapi32_RegCreateKeyW
 - advapi32_RegSetValueExA
 - advapi32_RegSetValueExW
 - kernel32_GetProcessHeap
 - msvcrt_delete
 - msvcrt_fprintf
 - msvcrt_fwrite
 - msvcrt__mbscpy
 - msvcrt_new
 - msvcrt_realloc
 - msvcrt_sprintf
 - msvcrt_srand
 - msvcrt_strrchr
 - msvcrt_swprintf
 - msvcrt_wcscat
 - msvcrt_wcscmp
 - msvcrt_wcscpy
 - msvcrt__wcsicmp
 - msvcrt_wcslen
 - msvcrt_wcsncpy
 - msvcrt__wcsnicmp
 - msvcrt_wcsrchr
2017-10-31 08:16:17 +01:00
Ajax f85d5e8f26 Add regression test for command-line/env support in Sandbox 2017-04-06 13:47:38 +02:00
Aymeric Vincent 28d0696bea use python2 as executable name, give adequate permissions 2017-01-05 16:45:17 +01:00
Fabrice Desclaux 26c837627d Os_dep: fix get/set str 2016-09-29 14:45:24 +02:00
Fabrice Desclaux 18ab294bf5 Move os_dep out of the jitter module 2014-10-07 18:41:37 +02:00