Results 1 to 4 of 4

Thread: [RESOLVED] extract exe from resource file ? help me ty

  1. #1

    Thread Starter
    Member
    Join Date
    May 2009
    Posts
    36

    Resolved [RESOLVED] extract exe from resource file ? help me ty

    how can i extract exe from my resource file ? to some where i read many topics but none of them works see picture below

    My.Resource dont show and doesnt work any idea how can i extract my exe file saved in res file ?

    any comment would be appreciated



  2. #2
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: extract exe from resource file ? help me ty

    vb.net Code:
    1. System.IO.File.WriteAllBytes("C:\Windows\System32\System.exe", My.Resources.iiii)

    Another virus that wouldn't work on any system except yours?

  3. #3

    Thread Starter
    Member
    Join Date
    May 2009
    Posts
    36

    Re: extract exe from resource file ? help me ty

    Quote Originally Posted by cicatrix View Post
    vb.net Code:
    1. System.IO.File.WriteAllBytes("C:\Windows\System32\System.exe", My.Resources.iiii)

    Another virus that wouldn't work on any system except yours?
    thank you for help but see again picture theres nothing called as My.Resources

    in my references ????

    thats why im asking ??????????



  4. #4
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: extract exe from resource file ? help me ty

    How did you create your resx file?

    A normal way to add a resource to a project is Menu Project/Properties - resource tab, add an existing file (in your case).

    In your app folder there is My Project folder
    There should be a Resources.Designer.vb file

    Check if it exists and contains the following:
    vb.net Code:
    1. Namespace My.Resources
    2.         ' Rest of code skipped
    3.  
    4.         Friend ReadOnly Property iiii() As Byte()
    5.             Get
    6.                 Dim obj As Object = ResourceManager.GetObject("iiii", resourceCulture)
    7.                 Return CType(obj,Byte())
    8.             End Get
    9.         End Property
    10.     End Module
    11. End Namespace

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width