If at first you don't succeed, call it version 1.0

Contact Me

Sarvesh Kushwaha
Email : sarveshkushwaha@outlook.com

Total Pageviews

Powered by Blogger.

Wednesday 15 October 2014

Hack proof your Javascript using javascript Obfuscation in ASP.NET applications


Introduction:

This article is the Part-5 Article of my series Hack Proof your asp.net and asp.net mvc applications.
In this article i will describe how to obfuscate your JavaScript code (Your written business logic in JavaScript or those  JavaScript libraries you don't want to expose to others) in asp.net application with visual studio.

Background :

You can read previous article of this series from below links :

    1. Secure your ASP.NET applications from SQL Injection
    2. Secure your ASP.NET applications from XSS Attack
    3. Secure your ASP.NET applications from CSRF Attack
    4. Secure your ASP.NET applications from Sensitive Data Exposure and Information Leakage

    Thursday 18 September 2014

    Sunday 24 August 2014

    Application Initialization in IIS 7.5 and IIS 8


    Why we need Application initialization ?

    On first HTTP requests asp.net applications both asp.net web forms and asp.net mvc application requires initialization tasks and "warm up" tasks (Startup processing , generating contents) etc.

    Application initialization proactively loads and initialize all the dependencies like database connection , compilation of asp.net code and loading of assemblies etc...

    Benefits of Application initialization :

    • its decreases the first response time by preloading the application
    • Can set a static page to increase the user experience while application is initializing
    • Provides overlapped process recycling 

    Friday 22 August 2014

    ASP.NET Precompilation for Deployment


    Benefits of Precompilation in ASP.NET:

    • Initial response of application will be faster for users, because code and files will not have to be compiled at the first time any user requested.
    • We can ensure error free application at compile time
    • From security concern people who have access to production server cannot see the source code and cannot make the changes(if you have chose the option of not updatable at the time of publish).
    • Large websites must use this precompilation.

    Friday 15 August 2014

    Calculate the Execution time of a Function in C# , Razor View, Aspx View


    My previous article was on the how to do the performance profiling with Visual Studio. Using Visual Studio analyze tool we can profile a function , dynamic link library, project and solution.
    Link of  - Performance Profiling with Visual Studio

    Requirements :

    1. However if we want to see execution for a particular function , you definitely don't want to run the profiler for that.Although profiler is more sophisticated way.
    2. if you have any loop on your razor / aspx view of asp.net application ,through profile it wolld be difficult to calculate the time of that loop.

    Monday 11 August 2014

    Performance Profiling in Visual Studio


    Hi Guys after a long time i am writing this article ( Feeling very poor [GARIB] ), Jokes apart In this article i will describe how to do the performance profiling using Visual Studio.
    There are many third party tools which do the Code Profiling , Memory profiling and Performance Profiling for us these are paid tools but they are good as well :
    • ANTS
    • Just Trace
    • Your KIT 
    • .NET Memory Profiler
    • Eqatec
    • Slim Tune Profiler
    • Dot Trace

    As i said am feeling poor, i will describe -"How to do Performance Profiling using Visual Studio inbuilt performance analysis tools ?"

    Sunday 8 June 2014

    IE-10 right align text input issue


    Remove Clear Icon - "X" from input fields of Internet Explorer

    Recently i added style text-align to right of an input :
    <input type="text" style="text-align: right;">
    

    Issue :
    But when someone types number in that then the last part of the text inside the textbox isn't displayed completely in Internet Explorer 10 as soon as the textbox loses focus.It because of its "Clear Icon - x".
    Even they have fixed this in their latest version of Internet Explorere - 11.

    Friday 6 June 2014

    Hack proof your ASP.NET applications from Sensitive Data Exposure and Information Leakage


    Introduction:

    This is Part 4 of my series Hack proof your asp.net application.In this article ,I will describe How we sometimes unintentionally expose some sensitive information or leak some information to a hacker , who used that information to hack us. Keeping These terms separate "Sensitive Data exposure" which can directly harm to an individual or an organization, "Information leakage" are which helps attacker to perform malicious activities.Both terms are correlated and we can say Information leakage can contain Sensitive data exposure and vice versa.

    Background:

    You can read previous article of this series from below links :

    Sunday 13 April 2014

    What is Heartbleed bug and Its solutions ?


    Introduction 
    From last few days Heartbleed trending on the internet and saying to the internet, I am the evil. People are calling this bug as "Biggest Security Threat" to the internet. Some Websites called this bug "Catastrophic".
    I was Gawked to know i was not safe since 2011 December Since OpneSSL included Heartbeat Extension.







    Friday 11 April 2014

    Thursday 10 April 2014

    Sunday 6 April 2014

    CLR in .Net


    Common Language Runtime : 

    As its names depicts, its an execution environment for .Net applications (.Net supported languages). CLR job is managing the application while it executes.CLR manages the execution of programs written in supported language of .NET framework like (C#, Visual Basic, F#, IronPython, IronRuby, Boo, etc.).

    Saturday 8 March 2014

    Knockout Built In Bindings- Part 1


    Knockout providing Some built in bindings which update UI automatically and finally it keeps a clean layout with no dependency on ID and CSS class.
    We can categorize Knockout Built in bindings into four types:

    1. Text and Appearance
    2. Control flow
    3. Forms 
    4. Templates

    Saturday 1 February 2014

    Knockout Observables


    What are Knockout Observables ? 
    Lets keeping it simple , Our UI gets automatically update when the ViewModel changes.To tell KO about changes in ViewModel we used Observables. Hey hey  ... you just used term ViewModel . how will i create a ViewModel with KO ?  

    Friday 31 January 2014

    Knockout Key Concepts


    From the beginning since knockout have launched , they have their limited key concepts and that's what i do like about this library .They never tried to bring too many things with this library.Knockout creators are very clear with their concepts and goal. Below are their Key concepts :

    Tuesday 28 January 2014

    Places to Learn ,Run and Test Knokout.js


    Before getting dive into into Knockout we should learn where we can use knockout syntax and run them to make ourselves Knockout Developers .As some of my friends are Java developers for them I am listing some places,where they can learn and play with knockout and obviously for Dot net developers How can we setup environment into Visual Studio for knockout :-

    1. Knockout.js : I must say , knockout itself done very great job .they are providing us a place to play with knockout . Visit http://learn.knockoutjs.com/

    Monday 27 January 2014

    What is Knockout and Why to use it ?


    Knockout JavaScript :

    Knockout.js is JavaScript framework which allow us to implement MVVM (Model View View-Model) UI pattern in JavaScript and HTML.
    Knockout.js is a pure JavaScript library with no external dependencies. It is supported on all major browsers, IE 6+, Firefox 2+, Chrome, Opera, Safari (desktop/mobile).

    Knockout javascript Series


    As technology changing rapidly many JavaScript libraries have become the new trend .Lots of JavaScript libraries are coming to internet to make web faster and user friendly .
    So i am going with the time starting series of blogs for Knockout .Below you will find the knockout introduction presentation , i will describe each slide in details in upcoming blog post .