osirislab / Shellcode

137 stars 56 forks source link

Research Staging techniques #8

Closed evanpjensen closed 10 years ago

evanpjensen commented 11 years ago

Experiment with writing a sager. See if you can load statically compiled executables into memory and run them. Research putting this functionality into the thrower.

evanpjensen commented 11 years ago

Use this code for testing a stage: https://github.com/isislab/Shellcode/tree/master/stagerTest

evanpjensen commented 11 years ago

I added a script that will add the offset to the beginning of an object file the way the loader expects to see it.

evanpjensen commented 11 years ago

https://github.com/stephenfewer/ReflectiveDLLInjection

evanpjensen commented 11 years ago

http://www.offensive-security.com/metasploit-unleashed/About_Meterpreter

evanpjensen commented 11 years ago

http://www.phrack.org/issues.html?issue=59&id=8&mode=txt

evanpjensen commented 11 years ago

Research the internals of the dlopen function and ld.so

evanpjensen commented 11 years ago

http://www.akkadia.org/drepper/dsohowto.pdf

robmdunn commented 11 years ago

I think we can bypass the difficulties with loading ELF binaries by loading a binary locally, dumping memory to disk, then sending the memory image (with the segments already loaded at the correct offsets) over the wire.

evanpjensen commented 11 years ago

http://users.eecs.northwestern.edu/~kch479/docs/notes/linking.html

evanpjensen commented 11 years ago

http://paste.pound-python.org/raw/hXdUpFAjb4DcFlNgxtRV/

evanpjensen commented 11 years ago

http://pages.cs.wisc.edu/~zandy/p/hijack.c

HockeyInJune commented 10 years ago

@wontonSlim posted this, but I deleted it by accident: