This repository contains binaries for testing angr.
angr / binaries Goto Github PK
View Code? Open in Web Editor NEWA repository with binaries for angr tests and examples.
License: Other
A repository with binaries for angr tests and examples.
License: Other
The file tests/x86/windows/packed_pe32.exe is detected by McAfee as a trojan, and subjected to corporate quarantine policies. Since this repos is pulled as part of angr-dev, one can get an unexpected surprise. If it was intended that a binary with malware in it be provided as a test case, I would suggest that such binaries be sequestered in an optional repos specifically for that purpose.
No response
No response
No response
I compile the source code of coretuils-8.25 with gcc -no-pie, and the size of dir is 562.1KB, which is more than twice of dir-gcc-O0.
More importantly, when I use the Reassembler module to assemble the file dir and compile the output, it gets errors.
The file dir is here
dir.zip
The errors as follow:
INFO | 2020-04-23 15:34:22,151 | __main__ | /home/l1b0/Desktop/test_binaries/x86_64/dir
WARNING | 2020-04-23 15:34:22,636 | angr.state_plugins.symbolic_memory | The program is accessing memory or registers with an unspecified value. This could indicate unwanted behavior.
WARNING | 2020-04-23 15:34:22,636 | angr.state_plugins.symbolic_memory | angr will cope with this by generating an unconstrained symbolic variable and continuing. You can resolve this by:
WARNING | 2020-04-23 15:34:22,636 | angr.state_plugins.symbolic_memory | 1) setting a value to the initial state
WARNING | 2020-04-23 15:34:22,636 | angr.state_plugins.symbolic_memory | 2) adding the state option ZERO_FILL_UNCONSTRAINED_{MEMORY,REGISTERS}, to make unknown regions hold null
WARNING | 2020-04-23 15:34:22,636 | angr.state_plugins.symbolic_memory | 3) adding the state option SYMBOL_FILL_UNCONSTRAINED_{MEMORY_REGISTERS}, to suppress these messages.
WARNING | 2020-04-23 15:34:22,636 | angr.state_plugins.symbolic_memory | Filling memory at 0x7fffffff with 8 unconstrained bytes referenced from 0x4047d5 (_start+0x5 in dir (0x4047d5))
WARNING | 2020-04-23 15:34:24,421 | angr.analyses.cfg.indirect_jump_resolvers.jumptable.JumpTableProcessor | unsupported operand type(s) for &: 'RegisterOffset' and 'int'
WARNING | 2020-04-23 15:34:24,473 | angr.analyses.cfg.indirect_jump_resolvers.jumptable.JumpTableProcessor | unsupported operand type(s) for &: 'RegisterOffset' and 'int'
WARNING | 2020-04-23 15:34:24,770 | angr.analyses.cfg.indirect_jump_resolvers.jumptable.JumpTableProcessor | unsupported operand type(s) for &: 'RegisterOffset' and 'int'
WARNING | 2020-04-23 15:34:24,865 | angr.analyses.cfg.indirect_jump_resolvers.jumptable.JumpTableProcessor | unsupported operand type(s) for &: 'RegisterOffset' and 'int'
WARNING | 2020-04-23 15:34:24,915 | angr.analyses.cfg.indirect_jump_resolvers.jumptable.JumpTableProcessor | unsupported operand type(s) for &: 'RegisterOffset' and 'int'
WARNING | 2020-04-23 15:34:26,637 | angr.state_plugins.symbolic_memory | Filling memory at 0x7ffffffffff0040 with 4 unconstrained bytes referenced from 0x4047bb (main+0x20eb in dir (0x4047bb))
Deprecation warning: Use self.model.nodes() instead of nodes
/home/l1b0/Desktop/test_binaries/x86_64/dir_new.s: Assembler messages:
/home/l1b0/Desktop/test_binaries/x86_64/dir_new.s:52657: 警告:end of file not at end of a line; newline inserted
/tmp/cczz8fMv.o:在函数‘.label_61’中:
(.text+0xb08):对‘.label_2’未定义的引用
(.text+0xb0f):对‘label_3’未定义的引用
/tmp/cczz8fMv.o:在函数‘.label_84’中:
(.text+0x172b):对‘.label_2’未定义的引用
(.text+0x1732):对‘label_3’未定义的引用
/tmp/cczz8fMv.o:在函数‘rpl_mktime’中:
(.text+0x12273):对‘label_2005’未定义的引用
collect2: error: ld returned 1 exit status
Traceback (most recent call last):
File "/media/l1b0/code/test_ramblr.py", line 116, in <module>
ropDefense("/home/l1b0/Desktop/test_binaries/x86_64/dir")
File "/media/l1b0/code/test_ramblr.py", line 103, in ropDefense
compile_asm(bin_filepath, '_new', assembly_normal)
File "/media/l1b0/code/test_ramblr.py", line 80, in compile_asm
subprocess.check_call(compile_list)
File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '-z', 'noexecstack', '-no-pie', '/home/l1b0/Desktop/test_binaries/x86_64/dir_new.s', '-o', '/home/l1b0/Desktop/test_binaries/x86_64/dir_new']' returned non-zero exit status 1.
‘’‘
Is it okay if I throw some binaries in tests
that might not be able to compile on your CI setup, or do they have to be a single *.c
file that can compile with gcc?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.