dungtv543 / dutas Goto Github PK
View Code? Open in Web Editor NEWAnalysis PE file or Shellcode
Analysis PE file or Shellcode
Hello there,
I created a simple shellcode file,
msfvenom -f raw -p windows/exec CMD=calc -o shellcode
And received this,
%> ./UniAna.py -s shellcode
Emulate i386 code
Emulating...
=======Creating Report=======
ERROR: Invalid memory read (UC_ERR_READ_UNMAPPED)
Hi,
I've prepared Dutas Dockerfile with capstone & unicorn based on Ubuntu 16.04. Running UniAna under Python 2.7.11 results in segmentation fault. It looks more like an unicorn fault, but You might want to investigate it anyway.
(Pdb) p UC_X86_REG_FS, FS_0
(32, 4096)
(Pdb) list
403 def simulator_initialisation(mu):
404 try:
405 # init FS
406 fss = x86_OS().init_FS()
407 mu.mem_write(FS_0, fss)
408 B-> mu.reg_write(UC_X86_REG_FS, FS_0)
409 # load dll
410 advapi32 = dll_loader("advapi32.dll", DLL_BASE)
411 mu.mem_write(DLL_BASE, advapi32)
412 kernel32_base = DLL_BASE + len(advapi32)
413 kernel32 = dll_loader("kernel32.dll", kernel32_base)
(Pdb) bt
/usr/lib/python2.7/bdb.py(400)run()
-> exec cmd in globals, locals
<string>(1)<module>()
/Dutas/UniAna.py(493)<module>()
-> main(sys.argv[1:])
/Dutas/UniAna.py(471)main()
-> simulator_initialisation(mu)
> /Dutas/UniAna.py(408)simulator_initialisation()
-> mu.reg_write(UC_X86_REG_FS, FS_0)
(Pdb) next
Segmentation fault (core dumped)
Thanks for providing the excellent project, I wonder where I can find the source of DLLs? Were they written by yourself or from other projects?
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.