Showing posts with label Coding Tricks. Show all posts
Showing posts with label Coding Tricks. Show all posts

Thursday, April 13, 2017

How to get saved password in browser

Sometimes we have saved password on different websites. You can see the User Name but Password is in dots.

how to get saved password in browser
In HTML language, User Name is visible because its type is text and Password field is in dots because of type password.

Now to see the password you need to change its type. 

What how can we change that as we don't have the code? :(

No worries, there is a way to change its type on the UI to solve our purpose.

Steps :-


1) Inspect the password field by pressing the Ctrl + Shift + C or by pressing the simply F12 button and click on Inspect button.

2) Now hover/click the cursor on the password box.

How to get saved password in browser

3) As you hover the cursor and click on the password field it will show like above image.

4) Now as you can see in the opened console window the selected code is the password field. 

5) Check its type="password".

6) Double click on the type and it will be in edit mode. Now delete the "password" from type property. It will become  type="".

7) Password is visible now :)

How to get saved password

Wednesday, January 18, 2017

Print India map using C language

C is very powerful language even you can create your own OS in C like Unix. This post is not about to create new OS but the India’s map using C language. You will be glad just few lines of code can create India’s map.

#include <stdio.h>
main()
{
    int a,b,c;
    int count = 1;
    for (b=c=10;a="- FIGURE?, UMKC,XYZHello Folks,\
    TFy!QJu ROo TNn(ROo)SLq SLq ULo+\
    UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\
    NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\
    HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\
    T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\
    Hq!WFs XDt!" [b+++21]; )
    for(; a-- > 64 ; )
    putchar ( ++c=='Z' ? c = c/ 9:33^b&1);
    return 0;
}

And here is the output

India map using c - array151

How it works?


The long string is simply a binary sequence converted to ASCII. The first for statement makes bstart out at 10, and the [b+++21] after the string yields 31. Treating the string as an array, offset 31 is the start of the "real" data in the string (the second line in the code sample you provided). The rest of the code simply loops through the bit sequence, converting the 1's and 0's to !'s and whitespace and printing one character at a time.