Author: Roy Zafar

Simple Application For Creating Serial Number Based On Hardware Code

by Henry Bobic This is a simple application for creating the serial number based on HDD hardware code. It has 3 necessary part of serial number application(Request Code, Getting Serial Number and Confirming that) Download ApplicationSerialNumber.zip – 16.9 KB Introduction Creating the serial number for a developed application is the common concern of all developers. One of the most popular ways for creating the unique serial number for an application is creating a serial number based on hardware resources code. As you know all of the hardware resources have their own unique serial number (Such as NIC, HDD and …)In this article, I will try to create a 3-part serial number based on HDD hardware code. The application includes 3 parts, 1. Getting the request code 2. Generating the serial number based on HDD hardware code and 3. Confirming the serial number and request code with HDD hardware code. Using the code As I described, the code includes the 3 part; 1.    Generating the Request Code. Request Code has been created based on HDD hardware code. There is a very simple method which returns the HDD hardware code. This method uses the ManagementObjectSearcher class the included in System.Management namespace. Hide Shrink Copy Code private string GetHDDSerialNumber() { string outs = ""; ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_DiskDrive"); foreach (ManagementObject queryObj in searcher.Get()) { string a =...

Read More

How To Protect Your .NET Code, Easily, And For Free

by Kingsley Okei   Learn how to protect your .NET code (whether written with WinForms, WPF, ASP.NET, or Silverlight) easily, and for free! Introduction Very recently, I was developing a School Management Software, using ASP.NET and C#. The software was to be packaged into an installer (containing prerequisites, like MSSQL Server Express Database Engine and the .NET Framework) that would deploy the software to client computers; plus, configure IIS automatically, after installation. I really had a hard time finding a product that could meet this need; but eventually, I did. So, I got the core of my application ready, had my installer-builder on ground, and mapped-out a plan to handle license-registrations via a WCF Service I would deploy to an external server, and then…boom! It dawned on me – With the myriad of .NET Reflectors (programs that can decompile .NET code, and browse the classes therein) out there, I knew I needed a way to disguise my source-code, if I hoped to prevent pirates from taking a peek at it. I was pressed for time, and (don’t laugh) I needed money fast, so, I really wanted a solution that was automated, and didn’t require me to write any code to achieve the feat – I had been coding-up my app for months, and didn’t want to spend more time, tweaking or writing more code to protect my Source Code....

Read More

10 Points to Secure Your ASP.NET MVC Applications.

by saineshwar,   In this article we will run through 10 points which will help us to make our MVC code secure. Download MvcSecurity.zip Download SQLQuerys.zip Contents Introduction 1) Security Misconfiguration (Error Handling Must Setup Custom Error Page) 2) Cross-Site Request Forgery (CSRF) 3) Cross-Site Scripting (XSS) attacks 4) Malicious File Upload. 5) Version Discloser 6) SQL Injection Attack. 7) Sensitive Data Exposure 8) Audit trail 9) Broken authentication and session management 10) Unvalidated Redirects and Forwards Introduction Lot of ASP.NET MVC developers are great in delivery , writing high performance code and so on. But when it comes to security there is no planning done. So in this article we will run through 10 points which will help us to make our MVC code secure. In case you are new to MVC I would suggest to start from this youtube tutorial :- 1) Security Misconfiguration (Error Handling Must Setup Custom Error Page) In this kind of attack the attacker intercepts form data which is submitted by end User and changes values and sends the modified data to the server. So for such kind of scenarios developers do put proper validations in place but when these validations display error lot of information of the server is revealed. So let us demonstrate the same practically. Example:- For showing demo I have created an Employee form which takes basic Employee details....

Read More

Visual Studio Hidden Gems

by Visual Studio Blog   Visual Studio is a powerful IDE with hundreds of productivity features to empower developers to do more, faster. I joined the Visual Studio team about a year ago, and here are some of the great things I’ve discovered. These are all in Visual Studio 2015, and some have been there for a few versions now so you’ll find them in previous versions of Visual Studio as well. Quick-launch (Ctrl-Q) Quick-Launch is an enhanced search box that sits in the title bar in the top-right corner. Not only will it let you find menu commands and options switches, it will also let you search files, settings, NuGet packages and a whole lot more! You can access it directly with the default keyboard shortcut Ctrl+Q. Hovering over the items in the list provides useful additional information – such as shortcut keys or directory information. Multi-language support Visual Studio supports many popular languages out of the box, but if yours is not on the list you can easily add it. With our new support for TextMate bundles, Visual Studio will bring any language to life. TextMate capabilities include new language syntax highlighting, basic IntelliSense and symbolic search. To take advantage of TextMate capabilities, simply add a tmbundle to the user’s extensions directory ([userdir]\.vs\extensions). There is no need to restart Visual Studio; the new language features will be...

Read More

How to Overcome Imposter Syndrome

by Abhishek Pillai http://pre11.deviantart.net/a182/th/pre/i/2010/120/b/c/the_imposter_by_yastach.jpg “Impostor syndrome can be defined as a collection of feelings of inadequacy that persist even in face of information that indicates that the opposite is true. It is experienced internally as chronic self-doubt, and feelings of intellectual fraudulence.” — Caltech Counseling Center Whether you’ve just begun your journey to learn how to code or you’ve been paid to code for many years, you can and (likely) will face imposter syndrome. I’ve been working as a Developer for four years now and I still face imposter syndrome every day! The nature of software development is fast-paced, fluid, and always in flux. It’s what makes building software so challenging, interesting, and fun. But that also means that you’re constantly faced with things you don’t know. And even the things that you don’t know (and everyone says you “need to know ASAP”) are changing before you can even start to know them. So, you’ll need some ways to overcome that feeling of being an imposter. Here are a few ways that help me: Get a Mentor This one ain’t easy but it’s one of the things that most helped me get through my early days as a Developer. Preferably, your mentor is someone who is more experienced than you in software development or has worked on software teams, i.e. in QA, Product, Design, etc. A mentor can really...

Read More