I have been unable to load a basic x86_64 binary in patcherex backend. It looks like the backend is assuming a cgc binary and throwing an exception when it's not one.
Compiled this to a 64-bit binary with just base gcc on ubuntu 16.04 (attached). The following is the error output:
In [1]: from patcherex.backends import DetourBackend
In [2]: backend = DetourBackend("./test")
WARNING | 2018-06-06 00:29:10,156 | ?[33mangr.analyses.cfg.cfg_fast?[0m | ?[33m"auto_load_libs" is enabled. With libraries loaded in project, CFGFast will cover libraries, which may take significantly more time than expected. You may reload the binary with "auto_load_libs" disabled, or specify "regions" to limit the sc
ope of CFG recovery.?[0m
WARNING | 2018-06-06 00:29:10,393 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: mremap?[0m
WARNING | 2018-06-06 00:29:10,395 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: mremap?[0m
WARNING | 2018-06-06 00:29:10,396 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: mremap?[0m
WARNING | 2018-06-06 00:29:10,396 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: mremap?[0m
WARNING | 2018-06-06 00:29:10,436 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: mremap?[0m
WARNING | 2018-06-06 00:29:10,475 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigprocmask?[0m
WARNING | 2018-06-06 00:29:10,476 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigprocmask?[0m
WARNING | 2018-06-06 00:29:10,477 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigprocmask?[0m
WARNING | 2018-06-06 00:29:10,477 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigprocmask?[0m
WARNING | 2018-06-06 00:29:10,511 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigprocmask?[0m
WARNING | 2018-06-06 00:29:10,808 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:10,810 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:10,810 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:10,810 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:10,858 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:10,860 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:10,861 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:10,861 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:10,861 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:10,907 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:10,908 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:10,915 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:10,916 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:10,917 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:10,958 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:10,958 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:11,284 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: madvise?[0m
WARNING | 2018-06-06 00:29:11,286 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: madvise?[0m
WARNING | 2018-06-06 00:29:11,286 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: madvise?[0m
WARNING | 2018-06-06 00:29:11,286 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: madvise?[0m
WARNING | 2018-06-06 00:29:11,287 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: madvise?[0m
WARNING | 2018-06-06 00:29:11,428 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:11,430 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:11,430 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:11,431 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:11,435 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:11,625 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sched_yield?[0m
WARNING | 2018-06-06 00:29:11,627 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sched_yield?[0m
WARNING | 2018-06-06 00:29:11,627 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sched_yield?[0m
WARNING | 2018-06-06 00:29:11,627 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sched_yield?[0m
WARNING | 2018-06-06 00:29:11,628 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sched_yield?[0m
WARNING | 2018-06-06 00:29:14,757 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: clock_getres?[0m
WARNING | 2018-06-06 00:29:14,759 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: clock_getres?[0m
WARNING | 2018-06-06 00:29:14,760 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: clock_getres?[0m
WARNING | 2018-06-06 00:29:14,760 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: clock_getres?[0m
WARNING | 2018-06-06 00:29:14,768 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: clock_getres?[0m
WARNING | 2018-06-06 00:29:15,049 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:15,051 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:15,053 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:15,576 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:15,578 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:15,578 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:15,706 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:15,707 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:15,708 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:15,735 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:15,737 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:15,738 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:17,515 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: ioctl?[0m
WARNING | 2018-06-06 00:29:17,517 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: ioctl?[0m
WARNING | 2018-06-06 00:29:17,517 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: ioctl?[0m
WARNING | 2018-06-06 00:29:17,517 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: ioctl?[0m
WARNING | 2018-06-06 00:29:17,518 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: ioctl?[0m
WARNING | 2018-06-06 00:29:18,416 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:18,418 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:18,421 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:18,609 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:18,611 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:18,632 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:18,633 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:18,668 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:18,670 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:18,671 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:18,678 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:18,679 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:18,680 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:19,273 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,274 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,275 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,351 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,352 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,354 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,453 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,455 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,455 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,464 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,465 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,467 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,609 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,610 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:19,611 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:20,423 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:20,424 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:20,426 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:20,461 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: kill?[0m
WARNING | 2018-06-06 00:29:20,463 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: kill?[0m
WARNING | 2018-06-06 00:29:20,463 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: kill?[0m
WARNING | 2018-06-06 00:29:20,463 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: kill?[0m
WARNING | 2018-06-06 00:29:20,464 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: kill?[0m
WARNING | 2018-06-06 00:29:20,532 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: lstat?[0m
WARNING | 2018-06-06 00:29:20,534 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: lstat?[0m
WARNING | 2018-06-06 00:29:20,535 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: lstat?[0m
WARNING | 2018-06-06 00:29:20,535 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: lstat?[0m
WARNING | 2018-06-06 00:29:20,537 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: lstat?[0m
WARNING | 2018-06-06 00:29:20,567 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:20,568 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:20,569 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:20,569 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:20,571 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:20,612 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:20,614 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:20,615 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:20,615 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:20,622 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:20,623 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:20,626 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:20,626 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:20,635 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:20,636 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:20,638 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:20,662 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getdents?[0m
WARNING | 2018-06-06 00:29:20,663 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getdents?[0m
WARNING | 2018-06-06 00:29:20,664 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getdents?[0m
WARNING | 2018-06-06 00:29:20,664 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getdents?[0m
WARNING | 2018-06-06 00:29:20,668 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getdents?[0m
WARNING | 2018-06-06 00:29:20,699 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: newfstatat?[0m
WARNING | 2018-06-06 00:29:20,700 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: newfstatat?[0m
WARNING | 2018-06-06 00:29:20,701 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: newfstatat?[0m
WARNING | 2018-06-06 00:29:20,701 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: newfstatat?[0m
WARNING | 2018-06-06 00:29:20,710 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: newfstatat?[0m
WARNING | 2018-06-06 00:29:20,727 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:20,728 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:20,731 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:21,070 | ?[34mangr.engines.successors?[0m | ?[34mExit state has over 256 possible solutions. Likely unconstrained; skipping. <BV64 global_c000020_411_64{UNINITIALIZED}>?[0m
WARNING | 2018-06-06 00:29:21,126 | ?[34mangr.engines.successors?[0m | ?[34mExit state has over 256 possible solutions. Likely unconstrained; skipping. <BV64 global_c000038_426_64{UNINITIALIZED}>?[0m
WARNING | 2018-06-06 00:29:21,595 | ?[34mangr.engines.successors?[0m | ?[34mExit state has over 256 possible solutions. Likely unconstrained; skipping. <BV64 global_c000054_2485_64{UNINITIALIZED}>?[0m
WARNING | 2018-06-06 00:29:21,641 | ?[34mangr.engines.successors?[0m | ?[34mExit state has over 256 possible solutions. Likely unconstrained; skipping. <BV64 global_c00006c_2492_64{UNINITIALIZED}>?[0m
WARNING | 2018-06-06 00:29:21,711 | ?[34mangr.engines.successors?[0m | ?[34mExit state has over 256 possible solutions. Likely unconstrained; skipping. <BV64 global_c000094_2514_64{UNINITIALIZED}>?[0m
WARNING | 2018-06-06 00:29:21,948 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:21,949 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:21,950 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:21,993 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: socket?[0m
WARNING | 2018-06-06 00:29:21,995 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: socket?[0m
WARNING | 2018-06-06 00:29:21,996 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: socket?[0m
WARNING | 2018-06-06 00:29:21,996 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: socket?[0m
WARNING | 2018-06-06 00:29:21,996 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: socket?[0m
WARNING | 2018-06-06 00:29:22,044 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: dup?[0m
WARNING | 2018-06-06 00:29:22,045 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: dup?[0m
WARNING | 2018-06-06 00:29:22,046 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: dup?[0m
WARNING | 2018-06-06 00:29:22,299 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: bind?[0m
WARNING | 2018-06-06 00:29:22,300 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: bind?[0m
WARNING | 2018-06-06 00:29:22,301 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: bind?[0m
WARNING | 2018-06-06 00:29:22,301 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: bind?[0m
WARNING | 2018-06-06 00:29:22,302 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: bind?[0m
WARNING | 2018-06-06 00:29:22,368 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setsockopt?[0m
WARNING | 2018-06-06 00:29:22,370 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setsockopt?[0m
WARNING | 2018-06-06 00:29:22,371 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setsockopt?[0m
WARNING | 2018-06-06 00:29:22,371 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setsockopt?[0m
WARNING | 2018-06-06 00:29:22,372 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setsockopt?[0m
WARNING | 2018-06-06 00:29:22,382 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: connect?[0m
WARNING | 2018-06-06 00:29:22,384 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: connect?[0m
WARNING | 2018-06-06 00:29:22,386 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: connect?[0m
WARNING | 2018-06-06 00:29:22,386 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: connect?[0m
WARNING | 2018-06-06 00:29:22,387 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: connect?[0m
WARNING | 2018-06-06 00:29:22,393 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: connect?[0m
WARNING | 2018-06-06 00:29:22,394 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: connect?[0m
WARNING | 2018-06-06 00:29:22,395 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: connect?[0m
WARNING | 2018-06-06 00:29:22,441 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sendto?[0m
WARNING | 2018-06-06 00:29:22,442 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sendto?[0m
WARNING | 2018-06-06 00:29:22,443 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sendto?[0m
WARNING | 2018-06-06 00:29:22,444 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sendto?[0m
WARNING | 2018-06-06 00:29:22,446 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sendto?[0m
WARNING | 2018-06-06 00:29:22,452 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sendto?[0m
WARNING | 2018-06-06 00:29:22,454 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sendto?[0m
WARNING | 2018-06-06 00:29:22,455 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sendto?[0m
WARNING | 2018-06-06 00:29:22,658 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: recvmsg?[0m
WARNING | 2018-06-06 00:29:22,659 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: recvmsg?[0m
WARNING | 2018-06-06 00:29:22,660 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: recvmsg?[0m
WARNING | 2018-06-06 00:29:22,660 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: recvmsg?[0m
WARNING | 2018-06-06 00:29:22,662 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: recvmsg?[0m
WARNING | 2018-06-06 00:29:22,668 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: recvmsg?[0m
WARNING | 2018-06-06 00:29:22,670 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: recvmsg?[0m
WARNING | 2018-06-06 00:29:22,670 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: recvmsg?[0m
WARNING | 2018-06-06 00:29:22,678 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getsockname?[0m
WARNING | 2018-06-06 00:29:22,679 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getsockname?[0m
WARNING | 2018-06-06 00:29:22,680 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getsockname?[0m
WARNING | 2018-06-06 00:29:22,680 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getsockname?[0m
WARNING | 2018-06-06 00:29:22,681 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getsockname?[0m
WARNING | 2018-06-06 00:29:22,818 | ?[34mangr.engines.successors?[0m | ?[34mExit state has over 256 possible solutions. Likely unconstrained; skipping. <BV64 global_c0000ac_2566_64{UNINITIALIZED}>?[0m
WARNING | 2018-06-06 00:29:23,144 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:23,146 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:23,153 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:23,155 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:23,155 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:23,156 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:24,208 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: access?[0m
WARNING | 2018-06-06 00:29:24,209 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: access?[0m
WARNING | 2018-06-06 00:29:24,210 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: access?[0m
WARNING | 2018-06-06 00:29:24,210 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: access?[0m
WARNING | 2018-06-06 00:29:24,216 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: access?[0m
WARNING | 2018-06-06 00:29:24,989 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: readlink?[0m
WARNING | 2018-06-06 00:29:24,990 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: readlink?[0m
WARNING | 2018-06-06 00:29:24,991 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: readlink?[0m
WARNING | 2018-06-06 00:29:24,991 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: readlink?[0m
WARNING | 2018-06-06 00:29:24,994 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: readlink?[0m
WARNING | 2018-06-06 00:29:25,331 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: lstat?[0m
WARNING | 2018-06-06 00:29:25,332 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: lstat?[0m
WARNING | 2018-06-06 00:29:25,334 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: lstat?[0m
WARNING | 2018-06-06 00:29:25,356 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:25,358 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:25,360 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:25,407 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getdents?[0m
WARNING | 2018-06-06 00:29:25,409 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getdents?[0m
WARNING | 2018-06-06 00:29:25,410 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getdents?[0m
WARNING | 2018-06-06 00:29:25,431 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: newfstatat?[0m
WARNING | 2018-06-06 00:29:25,434 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: newfstatat?[0m
WARNING | 2018-06-06 00:29:25,436 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: newfstatat?[0m
WARNING | 2018-06-06 00:29:25,451 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:25,452 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:25,454 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:27,668 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:27,670 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:27,677 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:27,678 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:27,686 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:27,687 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:27,688 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:27,688 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:27,688 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:27,701 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setitimer?[0m
WARNING | 2018-06-06 00:29:27,703 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setitimer?[0m
WARNING | 2018-06-06 00:29:27,704 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setitimer?[0m
WARNING | 2018-06-06 00:29:27,704 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setitimer?[0m
WARNING | 2018-06-06 00:29:27,704 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setitimer?[0m
WARNING | 2018-06-06 00:29:29,880 | ?[34mangr.engines.successors?[0m | ?[34mExit state has over 256 possible solutions. Likely unconstrained; skipping. <BV64 global_c0000cc_2698_64{UNINITIALIZED}>?[0m
WARNING | 2018-06-06 00:29:29,916 | ?[34mangr.engines.successors?[0m | ?[34mExit state has over 256 possible solutions. Likely unconstrained; skipping. <BV64 global_c0000d4_2711_64{UNINITIALIZED}>?[0m
WARNING | 2018-06-06 00:29:30,033 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:30,035 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:30,035 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:30,136 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:30,138 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:30,138 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:30,151 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigreturn?[0m
WARNING | 2018-06-06 00:29:30,153 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigreturn?[0m
WARNING | 2018-06-06 00:29:30,153 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigreturn?[0m
WARNING | 2018-06-06 00:29:30,154 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigreturn?[0m
WARNING | 2018-06-06 00:29:30,154 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigreturn?[0m
WARNING | 2018-06-06 00:29:31,367 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:31,368 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:31,625 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:31,628 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:32,522 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:32,522 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sys_623?[0m
WARNING | 2018-06-06 00:29:32,748 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:32,748 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigaction?[0m
WARNING | 2018-06-06 00:29:32,749 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigprocmask?[0m
WARNING | 2018-06-06 00:29:32,749 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigprocmask?[0m
WARNING | 2018-06-06 00:29:32,963 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:32,963 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: writev?[0m
WARNING | 2018-06-06 00:29:33,184 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getdents?[0m
WARNING | 2018-06-06 00:29:33,185 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getdents?[0m
WARNING | 2018-06-06 00:29:33,190 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: clock_getres?[0m
WARNING | 2018-06-06 00:29:33,190 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: clock_getres?[0m
WARNING | 2018-06-06 00:29:33,192 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sched_yield?[0m
WARNING | 2018-06-06 00:29:33,192 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sched_yield?[0m
WARNING | 2018-06-06 00:29:33,194 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: lstat?[0m
WARNING | 2018-06-06 00:29:33,194 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: lstat?[0m
WARNING | 2018-06-06 00:29:33,195 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: newfstatat?[0m
WARNING | 2018-06-06 00:29:33,195 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: newfstatat?[0m
WARNING | 2018-06-06 00:29:33,199 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:33,200 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: fcntl?[0m
WARNING | 2018-06-06 00:29:33,202 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: dup?[0m
WARNING | 2018-06-06 00:29:33,202 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: dup?[0m
WARNING | 2018-06-06 00:29:33,208 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:33,208 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: openat?[0m
WARNING | 2018-06-06 00:29:33,215 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: ioctl?[0m
WARNING | 2018-06-06 00:29:33,215 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: ioctl?[0m
WARNING | 2018-06-06 00:29:33,221 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: madvise?[0m
WARNING | 2018-06-06 00:29:33,221 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: madvise?[0m
WARNING | 2018-06-06 00:29:33,240 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: mremap?[0m
WARNING | 2018-06-06 00:29:33,240 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: mremap?[0m
WARNING | 2018-06-06 00:29:33,241 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: bind?[0m
WARNING | 2018-06-06 00:29:33,241 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: bind?[0m
WARNING | 2018-06-06 00:29:33,242 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: connect?[0m
WARNING | 2018-06-06 00:29:33,242 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: connect?[0m
WARNING | 2018-06-06 00:29:33,243 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getsockname?[0m
WARNING | 2018-06-06 00:29:33,244 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: getsockname?[0m
WARNING | 2018-06-06 00:29:33,244 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: recvmsg?[0m
WARNING | 2018-06-06 00:29:33,244 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: recvmsg?[0m
WARNING | 2018-06-06 00:29:33,246 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sendto?[0m
WARNING | 2018-06-06 00:29:33,246 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: sendto?[0m
WARNING | 2018-06-06 00:29:33,247 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setsockopt?[0m
WARNING | 2018-06-06 00:29:33,247 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setsockopt?[0m
WARNING | 2018-06-06 00:29:33,248 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: socket?[0m
WARNING | 2018-06-06 00:29:33,248 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: socket?[0m
WARNING | 2018-06-06 00:29:33,351 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: kill?[0m
WARNING | 2018-06-06 00:29:33,352 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: kill?[0m
WARNING | 2018-06-06 00:29:33,867 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: readlink?[0m
WARNING | 2018-06-06 00:29:33,867 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: readlink?[0m
WARNING | 2018-06-06 00:29:34,077 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: access?[0m
WARNING | 2018-06-06 00:29:34,077 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: access?[0m
WARNING | 2018-06-06 00:29:34,083 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigreturn?[0m
WARNING | 2018-06-06 00:29:34,084 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: rt_sigreturn?[0m
WARNING | 2018-06-06 00:29:34,148 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setitimer?[0m
WARNING | 2018-06-06 00:29:34,148 | ?[32mangr.procedures.definitions?[0m | ?[32munsupported syscall: setitimer?[0m
---------------------------------------
AssertionErrorTraceback (most recent call last)
<ipython-input-2-6967bae71b80> in <module>()
----> 1 backend = DetourBackend("./test")
/home/angr/angr-dev/patcherex/patcherex/backends/detourbackend.py in __init__(self, filename, data_fallback, try_pdf_removal)
94 # not all the touched bytes are bad, they are only a serious problem in case of InsertCodePatch
95 self.touched_bytes = set()
---> 96 self.modded_segments = self.dump_segments()
97
98 if self.try_pdf_removal == True:
/home/angr/angr-dev/patcherex/patcherex/backends/detourbackend.py in dump_segments(self, tprint)
323 cgcef_shentsize, cgcef_shnum, cgcef_shstrndx) = struct.unpack("<xxxxxxxxxxxxxxxxHHLLLLLHHHHHH", buf)
324 phent_size = 8 * 4
--> 325 assert cgcef_phnum != 0
326 assert cgcef_phentsize == phent_size
327
AssertionError: