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.

Showing posts with label Asp.net MVC. Show all posts
Showing posts with label Asp.net MVC. Show all posts

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 ?"

    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, 24 November 2013

    Hack Proof Your Asp.Net Application Part 3 (Cross Site Request Forgery)


    Introduction:

    This is part -3 of my series Secure your Asp.Net Applications. In this article, I will describe what exactly Cross Site Request Forgery (CSRF) is and how hacker exploit it and how we can prevent from CSRF attack.

    Background:

    You can read my previous article of this series from :
    cross site request forgery is also known as one click attack, sea surf and session riding and abbreviated as CSRF. CSRF attack is kind of secuirty exploit attack in which attacker uses the authentication of the victim on victim's browser.

    Sunday, 6 October 2013

    Tips and Tricks for Faster Asp.NET and Asp.net MVC applications


    I have studied these tips and tricks from many websites and blogs then tried them on my applications , authenticated those tips and tricks myself and completed this presentation .Although points i have mentioned are just suggestions not the benchmarks .



    Wednesday, 13 February 2013

    Saturday, 9 February 2013

    Asp.Net MVC 4 Hosting issue


    Recently i was trying to host Asp.net MVC4 web application ,and i faced some difficulties .so i m writing here what were the things to care , while hosting Asp.net MVC4 application - 

    Step 1 : Make sure Asp.net4 registered with IIS