Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Doed C# can be used for hacking as like c did using win32 API and all?

Does c# can be used for hacking?
Will it help to write malwares, rootkits and DLL hooking?

Can we use c# to do anything like people did using c and c++ ?
Yes you can use C# for same purposes as C/C++. And also C# is easier to learn but it requires .NET framework and C/C++ doesn't.
When you'll hook, you'll have to hook .NET as well which is a joke
(Apr 21, 2016 07:11 AM)0x7FFDF000 Wrote:  When you'll hook, you'll have to hook .NET as well which is a joke
I didn't understand. Can you please explain a little more?
Are you saying it is not possible using C#?
(Apr 21, 2016 09:34 AM)mr.cracker Wrote:  I didn't understand. Can you please explain a little more?
Are you saying it is not possible using C#?
It's possible, just horrible. Whenever you'll inject code into a process and you'll be interested in using initialized objects and methods out of C#, you'll have to include the entire framework your language works with. This is not always feasible. Makes injections awful, bloated, detected. While in C/++ the DLLs are already used as part of the engine (usually) or you can use localized functions/visualized functions as part of a virtual method table.

and this is ignoring object linking of which the MSIL and CLI are not compatible at all with the C/++ linker, symbol table and assembly
but again talking about memory / DLL / lib injection / memory corruption and shellcoding
passively or externally slurping around processes can be done with C#, ReadProcessMemory() etc like here http://www.mpgh.net/forum/showthread.php?t=298510
but it's just shit
tldr learn C/++
(Apr 21, 2016 10:10 AM)0x7FFDF000 Wrote:  It's possible, just horrible. Whenever you'll inject code into a process and you'll be interested in using initialized objects and methods out of C#, you'll have to include the entire framework your language works with. This is not always feasible. Makes injections awful, bloated, detected. While in C/++ the DLLs are already used as part of the engine (usually) or you can use localized functions/visualized functions as part of a virtual method table.

and this is ignoring object linking of which the MSIL and CLI are not compatible at all with the C/++ linker, symbol table and assembly
but again talking about memory / DLL / lib injection / memory corruption and shellcoding
passively or externally slurping around processes can be done with C#, ReadProcessMemory() etc like here http://www.mpgh.net/forum/showthread.php?t=298510
but it's just shit
tldr learn C/++

Thanks. Can you please have a look into this:
Prerequisites for Rootkit Study
(Apr 21, 2016 10:52 AM)mr.cracker Wrote:  Thanks. Can you please have a look into this:
Prerequisites for Rootkit Study
I will not be able to give a good answer


Possibly Related Threads...
Thread / Author Replies Views Last Post
by BrownHammerAug 22, 2021 01:58 PM 1 404 Aug 22, 2021 01:58 PM
Last Post: Dexterminator
by kmz22222Apr 12, 2016 01:56 PM 5 126 Apr 12, 2016 01:56 PM
Last Post: kmz22222
by ChoderbroteMay 15, 2015 08:12 AM 1 60 May 15, 2015 08:12 AM
Last Post: Modern day Hippy