Jackk

Untitled

Jan 23rd, 2015
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. Imports System.IO
  2. Public Class Form1
  3. Dim ofd As New OpenFileDialog
  4. Private Sub btnBrowse_Click(sender As System.Object, e As System.EventArgs) Handles btnBrowse.Click
  5. ofd.Filter = "Executable Files | *.exe"
  6. ofd.Title = "Select original file"
  7. If ofd.ShowDialog = Windows.Forms.DialogResult.OK Then
  8. txtFilePath.Text = ofd.FileName
  9. End If
  10. End Sub
  11.  
  12. Private Sub btnSpoof_Click(sender As System.Object, e As System.EventArgs) Handles btnSpoof.Click
  13. If txtFilePath.Text = "" Then
  14. MsgBox("Error! Please browse a file!")
  15. Else
  16. My.Computer.FileSystem.RenameFile(ofd.FileName, Split(ofd.SafeFileName, ".")(0) & "‮‮‮" & StrReverse(cmbExtension.SelectedItem.ToString) & ".exe")
  17. MsgBox("Extension Changed!")
  18. End If
  19. End Sub
  20.  
  21. Private Sub btnBrowseIcon_Click(sender As System.Object, e As System.EventArgs) Handles btnBrowseIcon.Click
  22. ofd.Filter = "Icon Files | *.ico"
  23. ofd.Title = "Select icon file"
  24. If ofd.ShowDialog = Windows.Forms.DialogResult.OK Then
  25. txtIconPath.Text = ofd.FileName
  26. PictureBox1.ImageLocation = txtIconPath.Text
  27. End If
  28.  
  29. End Sub
  30.  
  31. Private Sub btnChangeIcon_Click(sender As System.Object, e As System.EventArgs) Handles btnChangeIcon.Click
  32. If txtIconPath.Text = "" Or txtFilePath.Text = "" Then
  33. MsgBox("Please make sure you have loaded a Icon and EXE File")
  34. Else
  35. IconInjector.InjectIcon(txtFilePath.Text, txtIconPath.Text)
  36. MsgBox("Icon changed!")
  37. End If
  38. End Sub
  39. End Class
Advertisement
Add Comment
Please, Sign In to add comment