# GUI Input Capture

Adversaries may mimic common operating system GUI components to prompt users for credentials with a seemingly legitimate prompt. When programs are executed that need additional privileges than are present in the current user context, it is common for the operating system to prompt the user for proper credentials to authorize the elevated privileges for the task (ex: Bypass User Account Control).

Adversaries may mimic functionality to prompt users for credentials with a seemingly legitimate prompt for a number of reasons that mimic normal usage, such as a fake installer requiring additional access or a fake malware removal suite. This type of prompt can be used to collect credentials via various languages such as AppleScript and PowerShell.

**Example:**

I will demonstrate a GUI Capture by using a tool called **Pickle** the tool is great for social engineering on internal networks  having users believe that they need to re-login because of an error or anything that tricks them to input there credentials, the great thing about this tool is that it will actually try the credentials against SMB and verify if they are correct.

![](https://315180959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRh03Vwd4nuiUi3Oje7%2F-MRkfyL-KivqpqO7yjCv%2F-MRkfzOXEPqpslwxZjSh%2Fimage.png?alt=media\&token=35eac75f-aba2-491a-8766-4c22997ed662)

A sample of the prompt asking for credentials and typing the incorrect ones.

![](https://315180959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRh03Vwd4nuiUi3Oje7%2F-MRkfyL-KivqpqO7yjCv%2F-MRkg-4pboFvOHouS-E2%2Fimage.png?alt=media\&token=41cf01c1-e057-4a33-85b7-41a3151b026a)

And once the correct credentials are added it will close and show the correct credentials.

![](https://315180959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRh03Vwd4nuiUi3Oje7%2F-MRkfyL-KivqpqO7yjCv%2F-MRkg-qmSL11uW4aR1in%2Fimage.png?alt=media\&token=c279b31f-3bc0-478c-abc4-d0724f002591)
