Hack Forums
[.NET] [VB.NET] Reading/Writing Resources via Codedom - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [VB.NET] Reading/Writing Resources via Codedom (/showthread.php?tid=836316)

Pages: Pages 1 2


[VB.NET] Reading/Writing Resources via Codedom - DarkShadowz - Nov 21, 2010

Well, I was just trying to recreate the managed resource data storage method for my crypter, and I was wondering if some people may find this useful for recreating the managed resource data storage method themselves.

Writing the Resource:
Code
'To Create Resource File
Using R As New Resources.ResourceWriter(Application.StartupPath & "\ResourceFileName.resources")
            R.AddResource("resourcenamehere", "file data/string/image here")
            R.Generate()
        End Using

'To Include Resource File
parameters.EmbeddedResources.Add(Application.StartupPath & "\ResourceFileName.resources")

'To Delete Resource File After Use
If IO.File.Exists(Application.StartupPath & "\ResourceFileName.resources") Then : IO.File.Delete(Application.StartupPath & "\ResourceFileName.resources") : End If

Reading the Resource:
Code
Dim resourceManager As New Resources.ResourceManager("ResourceFileName", Assembly.GetExecutingAssembly)

'Reading bytes from Resource File
Dim resourceBytes As Byte() = DirectCast(resourceManager.GetObject("resourcenamehere"), Byte())

'Reading a string from Resource File
Dim resourceString As Byte() = resourceManager.GetString("resourcenamehere")

Hope you guys find this useful ^_^.


* - iRtehLeet™ - Nov 21, 2010

Stop feeding leechers lol


* - Alison Wonderland - Nov 21, 2010

thanks man. Looks good.

Hope it works (If i use it)


* - DarkShadowz - Nov 21, 2010

(Nov 21, 2010 01:29 AM)iRtehLeet™ Wrote:  Stop feeding leechers lol

Lol sorry, though I haven't posted anything much to contribute to the community for ages <_<.
Besides, leechers won't know how to use this in their work xD.


* - iRtehLeet™ - Nov 21, 2010

(Nov 21, 2010 01:31 AM)DarkShadowz Wrote:  Lol sorry, though I haven't posted anything much to contribute to the community for ages <_<.

Yeah I know what you mean but there is no explanation or learning process in your thread its just ok start copying here and then press paste in vb type thing 🤣


* - DarkShadowz - Nov 22, 2010

(Nov 21, 2010 01:32 AM)iRtehLeet™ Wrote:  Yeah I know what you mean but there is no explanation or learning process in your thread its just ok start copying here and then press paste in vb type thing 🤣

Well, atleast it is kind of leech-proof if they do not know what to do with it.


* - bloodqman - Nov 22, 2010

thanks i needed this.. i'll look around for some other samples too..


* - DarkShadowz - Nov 24, 2010

Oh god, 112 views and only a few people replied. Leech much?

Can't believe you guys aren't even trying to use it for your crypters lol.


* - pr0t0typ3 - Nov 24, 2010

(Nov 24, 2010 03:35 AM)DarkShadowz Wrote:  Oh god, 112 views and only a few people replied. Leech much?

Can't believe you guys aren't even trying to use it for your crypters lol.

90 % of all viewers don't understand it but they are trying to leech anyway, 2 % Already knew it and the rest is leeching it with understanding it.
P.S. 122 Views is very little.. I had 10k Downloads on my CodeDom Crypter Source and 200 replies


* - DarkShadowz - Feb 7, 2011

Bump, trying to show people a way to make a less leeched crypter (sorta).


* - Adept - Feb 13, 2011

How would i go about using this in my crypter. I also have prototypes source for the codedom. It is 7 out of 16 fud on nvt i was wondering how to make it more fud???


* - Morbid Saint - Jun 10, 2011

Looks very nice bro thanks for the share. :)


* - .CRz - Jun 10, 2011

i'm not like others, i dont leech, i larn and mod for my personal use.

Thanks, this was wath i am searching for, it looks like you fall from the sky at the right moment xD

man, 627 views and no only 12 posts? just dont understand this people.
try encrypt the code with some errors, maybe that stop's +50% of leeching.
Greetings and if i was l33t + rep ;)

PS: Hehe, 100 POsts ;)


* - felicixus - Jun 12, 2011

this make your exe file detected from 3 antivirus: Zoner antivirus, A-Squared Security,IKARUS Security



* - .CRz - Jun 12, 2011

(Jun 12, 2011 06:24 AM)felicinox Wrote:  this make your exe file detected from 3 antivirus: Zoner antivirus, A-Squared Security,IKARUS Security

i dont think so, i had an good experience in learning this and trying change some methods.👍
and i just bypassed avira becuse of storage method. 😊