Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Security
General Security Discussions
What is a DLL?
Message
<blockquote data-quote="JM Safe" data-source="post: 786664" data-attributes="member: 35684"><p>Sometimes we read that malware infections start thanks to .dll files code injection. But what is a DLL? A DLL (Dynamic Link Library) is a library which can contains methods (pieces of source code that could return a result for example an integer, a string, boolean, etc.), but obviously methods could also return nothing (but instead this type of methods do stuff in the body of the method but without a result, this is called void method).</p><p></p><p>The power of DLL files is that they can be used by software by importing them and use library source code without rewrite all the source code of the library, but instead use simply and fastly the DLL source code. To stay a bit safer against DLL injection it is possible to do not permit processes to get high privileges, so privilege escalation.</p><p></p><p>Example of DLL:</p><p></p><p>[CODE=csharp]namespace DLL1</p><p>{</p><p> public class DLL1Class</p><p> {</p><p> public static int algorithm(int n)</p><p> {</p><p> </p><p> n++; //do a simple increment here</p><p> return n;</p><p> </p><p> }</p><p> }</p><p>}[/CODE]</p><p></p><p>Ok guys, now to use a method of a DLL we can use this:</p><p></p><p>[CODE=csharp]DLL1.DLL1Class.algorithm(6);[/CODE]</p></blockquote><p></p>
[QUOTE="JM Safe, post: 786664, member: 35684"] Sometimes we read that malware infections start thanks to .dll files code injection. But what is a DLL? A DLL (Dynamic Link Library) is a library which can contains methods (pieces of source code that could return a result for example an integer, a string, boolean, etc.), but obviously methods could also return nothing (but instead this type of methods do stuff in the body of the method but without a result, this is called void method). The power of DLL files is that they can be used by software by importing them and use library source code without rewrite all the source code of the library, but instead use simply and fastly the DLL source code. To stay a bit safer against DLL injection it is possible to do not permit processes to get high privileges, so privilege escalation. Example of DLL: [CODE=csharp]namespace DLL1 { public class DLL1Class { public static int algorithm(int n) { n++; //do a simple increment here return n; } } }[/CODE] Ok guys, now to use a method of a DLL we can use this: [CODE=csharp]DLL1.DLL1Class.algorithm(6);[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Top