606 Commits

Author SHA1 Message Date
Sam Hocevar
ae3f5c5a31 win32: add some console handling function diversions. 2012-08-23 14:10:27 +00:00
Sam Hocevar
96c7e71350 win32: add more explicit error messages and add support for 0xb8 opcode. 2012-08-23 11:21:31 +00:00
Kévin Szkudłapski
b77afc7583 add relocate_hook to improve api hooking, fix dll name string comparison (no case sensitive), fix used after free on win32, add more hooks related to async file access 2012-08-20 12:27:26 +00:00
Sam Hocevar
60a9b3a67a build: fix compilation by including <wchar.h> and checking for regwexec. 2012-08-05 12:24:53 +00:00
Sam Hocevar
1684e8936e cosmetic: get rid of CRLF line endings. 2012-08-05 12:24:46 +00:00
Kévin Szkudłapski
6b45a58b96 add new hook for windows (CreateFileMapping(A|W), MapViewOfFile, ReadFileEx), re-enable option -U, start to port network on windows 2012-08-03 17:26:43 +00:00
Kévin Szkudłapski
22b40f04a0 port zzuf to win64 (amd64) 2012-08-02 14:50:21 +00:00
Kévin Szkudłapski
a50075a0f3 add regex feature for win32 2012-08-01 12:17:25 +00:00
Kévin Szkudłapski
7e045dfcd2 change the method of hooking, now we disassemble the beginning of the targeted function and insert a jump to the new function. 2012-07-31 13:54:47 +00:00
Kévin Szkudłapski
fca5de058a start to implement hotpatch hook on win32 port, but some API don't look to use it for some reason (e.g. kernel32!ReadFile) 2012-07-12 14:26:10 +00:00
Kévin Szkudłapski
9c9d0b082a win32 port starts to fuzz executable (only few functions related to file handling are implemented) 2012-07-11 17:39:13 +00:00
Kévin Szkudłapski
bc1087d8b0 fix tmp file creation on win32, start to implement handling of win32 exception with GetExitCodeProcess 2012-07-11 15:31:23 +00:00
Kévin Szkudłapski
8349e4746d on win32, use a named pipe and IOCP to read stdout, stderr and debugfd correctly. 2012-07-11 13:01:20 +00:00
Kévin Szkudłapski
714c203ece 2012-07-10 10:18:31 +00:00
Sam Hocevar
f6f9cad61f win32: add debug information to the function diversion code. 2012-06-11 17:05:19 +00:00
Sam Hocevar
df2dfb9ffa linux: fix a few compilation warnings. 2012-04-16 23:09:37 +00:00
Sam Hocevar
177d421111 Fix a weird problem with lib6 versioned symbols. 2012-04-16 23:02:42 +00:00
Sam Hocevar
2384fa2601 osx: do not enforce flat namespace in copy mode on OS X. 2012-04-16 23:02:35 +00:00
Sam Hocevar
4724f045cf Win64 support in the VS solution. 2011-02-01 15:59:23 +00:00
Sam Hocevar
b86cd9d9ce Fix wrong pointer types in the network range structures. 2010-10-07 22:53:05 +00:00
Sam Hocevar
710b26fd21 Fix line endings. 2010-10-07 22:53:00 +00:00
Sam Hocevar
ca2d1ada85 Get rid of the getopt reimplementation and depend on libcaca instead. 2010-10-07 22:52:54 +00:00
Sam Hocevar
4c504ac53e Implement ReOpenFile and fix a few Win32 compilation warnings. 2010-10-06 22:44:47 +00:00
Sam Hocevar
8c527cd15a Fix Win32 intermediate build directories. 2010-10-06 22:33:15 +00:00
Sam Hocevar
9d20383fa3 Fix missing ZZUF_DEBUGFD passing and debug function availability. 2010-10-06 21:33:19 +00:00
Sam Hocevar
4c3383d7c4 Fix a bug in the %i formatting and implement %S. 2010-10-06 21:31:40 +00:00
Sam Hocevar
b69bd84604 Get the debug channel to work on Win32. 2010-10-06 21:10:15 +00:00
Sam Hocevar
6b942564a2 Treat %x arguments as unsigned in the printf reimplementation. 2010-10-06 21:08:28 +00:00
Sam Hocevar
22935dc54c Fix the printf reimplementation to properly handle INT_MIN. 2010-10-06 21:04:50 +00:00
Sam Hocevar
2eab0c2b46 Disable select() on Win32. It is not supported on non-sockets. 2010-10-06 19:33:24 +00:00
Sam Hocevar
531ad70c79 Remove useless PARENT_FD/CHILD_FD hack. 2010-10-05 12:57:09 +00:00
Sam Hocevar
111bdd0735 Make it easier to dynamically allocate the debug filedescriptor later. 2010-10-05 12:57:03 +00:00
Sam Hocevar
6c5d32e89b Filedescriptor 0 is the debug channel, not stdin! Fix that. 2010-10-05 12:40:19 +00:00
Sam Hocevar
9476ba411d Proper child command line construction on Win32. There is no need
to hardcode stuff for debugging purposes any longer.
2010-10-05 12:08:03 +00:00
Sam Hocevar
46d9462488 Inherit stdin/stdout/stderr in the child process under Win32. 2010-10-05 00:16:54 +00:00
Sam Hocevar
bfcb7051fb Remove useless code for Win32 diversions. 2010-10-04 21:37:41 +00:00
Sam Hocevar
8ad42b6b1c Mark diverted Win32 functions as __stdcall, it's the correct calling
convention.
2010-09-22 23:57:01 +00:00
Sam Hocevar
2552b8cae1 Divert ReadFile() and CloseHandle(). 2010-09-22 23:38:36 +00:00
Sam Hocevar
58bac4bfc4 Drop Visual Studio 2008 support and require the 2010 version. The
2010 express version is free to use and it's a lot better.
2010-09-22 22:42:04 +00:00
Sam Hocevar
775042db3a Fix compilation warnings on Win32. 2010-09-22 22:31:55 +00:00
Sam Hocevar
f377a31839 Divert CreateFileW in addition to CreateFileA. 2010-09-22 22:26:44 +00:00
Sam Hocevar
c60b52ccb3 Fix the Linux build to accomodate with the new Win32 features. 2010-09-22 22:18:07 +00:00
Sam Hocevar
6ac571b003 CreateFile() diversion proof of concept. 2010-09-22 22:06:46 +00:00
Sam Hocevar
9cb7e326fc Add a mechanism for Win32 diversions. 2010-09-22 21:21:52 +00:00
Sam Hocevar
8609a8a230 Fix a bug caused by undefined function call precedence. 2010-09-22 20:34:37 +00:00
Sam Hocevar
44d11b68e7 Fix zzat compilation on Win32 and create a .vcxproj file for it. 2010-09-22 19:47:56 +00:00
Sam Hocevar
6214fcb74c Minor Win32 code simplification in sys.c. 2010-09-22 19:47:00 +00:00
Sam Hocevar
3b69b6baae Divert AttachConsole() and AllocConsole() for debugging purposes. 2010-09-20 23:48:51 +00:00
Sam Hocevar
3dc685c15f Full support for ASLR in the Win32 loader. 2010-09-20 23:32:40 +00:00
Sam Hocevar
df1395cdf0 Refactor the DLL initialisation code to allow several diversions. 2010-09-20 21:53:57 +00:00