Hack Forums
[C#] [C#] Unlimited File Cryper\Binder [TUT - Part 2] - 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: [C#] [C#] Unlimited File Cryper\Binder [TUT - Part 2] (/showthread.php?tid=645928)

Pages: Pages 1 2


[C#] Unlimited File Cryper\Binder [TUT - Part 2] - xSilent - Aug 29, 2010

Part 1: https://hackforums.net/showthread.php?tid=645385

Welcome to part 2 - Coding the Stub

From your first project, go to File > Add Project > New Project and add a console application (Yes, console application, just do it and I'll explain later)

Once your in the code form, add a new class and name it Function

Function Code
Spoiler (Click to View)

Now go back to program and finish the stub code.
Spoiler (Click to View)

Couple of more things to do in the stub.

Go to Properties and change Output Style to Windows Application.

Once your done with that, uncomment the "System.IO.File.WriteAllBytes(Path, Properties.Resources.S);" line, add the stub to resources and test it.

Now it has some issues, but you should be able to fix it with no problem as soon as it happens.

Happy Coding ๐Ÿค

C# and VB Versions
http://fileml.com/2F866R


* - xSilent - Aug 29, 2010

No comments at all on this tutorial at all?


* - JackD - Aug 29, 2010

this is c#, the most code in vb.net. but nice tut anyways


* - xSilent - Aug 29, 2010

(Aug 29, 2010 05:39 PM)JackD Wrote:  this is c#, the most code in vb.net. but nice tut anyways

C# and VB is the same thing, just a different syntax. They both run off framework. Unless you use Microsoft.Visualbasic.dll in VB โ“ which is a bad habit IMO


* - ZoomElephant - Aug 31, 2010

Nice tut man, keep it up
too short


* - xSilent - Aug 31, 2010

Bump up this thread one more time.


* - Kink - Aug 31, 2010

Cool :) I have been starting to "try" C# lately and this is a good start from VB.NET..easy to understand.


* - xSilent - Sep 1, 2010

(Aug 31, 2010 10:08 PM)Kink Wrote:  Cool :) I have been starting to "try" C# lately and this is a good start from VB.NET..easy to understand.

C# is easier then VB IMO and it makes more sense due to the C syntax.

VB
Code
Dim Str As String

C#
Code
String Str;

Shorter also ๐ŸŽ‰

Let me know what you think.

Just don't carry any bad habits from the Microsoft.VisualBasic namespace :P


* - laptopguy - Sep 1, 2010

Shit hot tut xSilent.

[Watch my warning level increase now: TOO SHORT]


* - xSilent - Sep 1, 2010

(Sep 1, 2010 09:57 AM)kRaeTwin Wrote:  Shit hot tut xSilent.

[Watch my warning level increase now: TOO SHORT]

Thanks

[Check out my warning level also: too short]


* - dafdpunk - Nov 18, 2010

Iยดv trubles adding the stub.. Compile the stub and add the exe? Add the Project? Add the *.cs files? How I do that?


* - intrigued1980 - Nov 18, 2010

sicccck and smoooth coding, ill have a go at this later , thanks man.


* - intrigued1980 - Nov 19, 2010

Hiya Silent, cool code!

I just gave it a bash and learnt more about using the unmanaged kernel32.dll read and writing resource.

Can I ask why you used that, instead of something simple like , 'System.IO.File.WriteAllBytes(string path, data bytes[])' and 'System.IO.File.ReadAllBytes(string path) , or FileStream class.

Also, wondering why you didn't encrypt the bytes, wouldn't the signature of the programs still reside in the bytes and if malicious be detected by the anti-virus .


* - Do0ks - Dec 19, 2010

Looks like a great tut, Im gonna try this soon. I havent really messed around with C# but i really would like to learn. Thanks for the tut man.


* - IvyMongrain - Jul 7, 2011

Nice tut, easy to follow, though half asleep and drunk I could rush through it last night for some finger exercises^^. Don't know if that's the reason but getting a
Code
System.Overflow exception
for the stub on

Code
Byte[] bPtr = new Byte[size - 1];

any ideas?