The Simplest way to Reveal Password behind Astrisk
To reveal password in web browser,1) Copy the whole code below, paste it in the URL address bar of your browser and press enterjavascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");})();
Edit content of any website
You can edit the content of any website,
1) Open any website(like google, facebook, etc..) that you want to edit content in it.
2) copy below code and paste it in the URL address bar of your browser and press enter.
javascript:document.body.contentEditable='true'; document.desinMode='on'; void 0
Now edit the website.....
Batch Programming Commands
The first command you should know is ECHO. All ECHO does is simply print something onto the screen. It’s like “printf” in C or “PRINT” in Basic. Anyway, this is how we use it. ECHO Hello World! All right, now save the above line as a .bat file and double click it. This should be the output - C:\WINDOWS\Desktop\>ECHO Hello World!
Hello World! Did you notice that it shows the command before executing it. But we’re coders right? We don’t want our code to look so untidy so just add an @ sign before ECHO and execute it. The code looks much better. The @ sign tells DOS to hide from the user whatever commands it is executing. Now, what if I want to write to a file? This is how I do it - @ECHO Hello World > hello.txt Simple huh? Remember, “>” to create or overwrite a file and “>>” to append ( write at the end ) of a file that already exists. Guess why this program wont work as desired to - @ECHO Hello World > hello.txt
@ECHO Hello World Again > hello.txt Looking at it, you will see that the program is supposed to write two lines one after another but it wont work because in the first line it will create a file called hello.txt and write the words “Hello World” to it, and in the second line it just over-writes the earlier text. So actually what it is doing is that it creates a file and writes to it and then over-writes what it had earlier written, to change this we just add a “>”. The additional “>” will make DOS append to the file. So here’s the improved form of the program -
@ECHO Hello World > hello.txt
@ECHO Hello World Again >> hello.txt Save the above code as a .bat file and execute it, it will work without a hitch. The next thing we should learn is the GOTO statement. GOTO is just the same as it is in BASIC or for that fact any programming language but the only difference is between the labels. This is a label in C or BASIC – label: This is a label in batch – :label
In C or BASIC, the “:” comes after the label and in Batch it comes before the label. Bear this in mind as you proceed. Here’s an example of the GOTO statement - :labelone
@ECHO LoL
GOTO labelone If you execute this code, you will see that it is an unlimited loop; it will keep printing to the screen till the end of time if you don’t interrupt it Smile The GOTO statement is very useful when it comes to building big Batch programs. Now, we will learn the IF and EXIST commands. The IF command is usually used for checking if a file exists, like this - @IF EXIST C:\WINDOWS\EXPLORER.EXE ECHO It exists Observe that I have not used inverted commas ( ” ) as I would in BASIC or C. The EXIST command is only found in Batch and not in any other language. The EXIST command can also be used to check if a file does not exist, like this -
@IF NOT EXIST C:\WINDOWS\EXPLORER.EXE ECHO It does not exist Remember, Batch is not a language like C or BASIC or Pascal, it cannot do mathematical functions. In Batch, all you can do is control DOS. In the above example notice that there is no THEN command as there would be in most languages.
Sick and tired off using the @ sign before each and every command ? Let’s do some research, go to the DOS prompt and type in ECHO /? and press enter. Interesting, in this way, when you hear of a new DOS command you don’t know about, just type in “command /?” and you can get help on it. Now back to ECHO. According to the help we received by typing in ECHO /? you must have concluded if you type in ECHO OFF you no longer need to type an @ sign before every command.
Wait! just add an @ before ECHO OFF so that it does not display the message – ECHO is off.
The next command we are going to learn about is the CLS command. It stands for CLear Screen. If you know BASIC, you will have no problem understanding this command. All it does is clear the screen. Here’s an example -
@ECHO OFF
CLS
ECHO This is DOS This command needs no further explanation but type in CLS /? to get more help on the command. The next command we are going to learn is CD. It stands for Current Directory. It displays the current directory in which you are if you just type in “CD” but if you type in”CD C:\Windows\Desktop” it will take you to the Desktop. Here’s an example - @ECHO OFF
CD C:WindowsDesktop
ECHO Testing.. > test.txt
ECHO Testing…>>test.txt This will change the directory to the Desktop and create a file there called test.txt and write to it. If we had not used the CD command, this is how the program would have looked. @ECHO OFF
ECHO Testing.. > C:\Windows\Desktop\test.txt
ECHO Testing…>> C:\Windows\Desktop\test.txt See the difference? Anyway that’s all for the The Basics of Batch File Programming. Remember, each an every DOS command can be used in Batch.. I Hope you liked it. I am sure you learnt something new.
C Program without Main FunctionThe Simplest way to Reveal Password behind Astrisk
Edit content of any website
Batch Programming Commands
To reveal password in web browser, 1) Copy the whole code below, paste it in the URL address bar of your browser and press enter javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");})(); |
Edit content of any website
You can edit the content of any website, 1) Open any website(like google, facebook, etc..) that you want to edit content in it. 2) copy below code and paste it in the URL address bar of your browser and press enter. javascript:document.body.contentEditable='true'; document.desinMode='on'; void 0 Now edit the website..... |
Batch Programming Commands
The first command you should know is ECHO. All ECHO does is simply print something onto the screen. It’s like “printf” in C or “PRINT” in Basic. Anyway, this is how we use it. ECHO Hello World! All right, now save the above line as a .bat file and double click it. This should be the output - C:\WINDOWS\Desktop\>ECHO Hello World! Hello World! Did you notice that it shows the command before executing it. But we’re coders right? We don’t want our code to look so untidy so just add an @ sign before ECHO and execute it. The code looks much better. The @ sign tells DOS to hide from the user whatever commands it is executing. Now, what if I want to write to a file? This is how I do it - @ECHO Hello World > hello.txt Simple huh? Remember, “>” to create or overwrite a file and “>>” to append ( write at the end ) of a file that already exists. Guess why this program wont work as desired to - @ECHO Hello World > hello.txt @ECHO Hello World Again > hello.txt Looking at it, you will see that the program is supposed to write two lines one after another but it wont work because in the first line it will create a file called hello.txt and write the words “Hello World” to it, and in the second line it just over-writes the earlier text. So actually what it is doing is that it creates a file and writes to it and then over-writes what it had earlier written, to change this we just add a “>”. The additional “>” will make DOS append to the file. So here’s the improved form of the program - @ECHO Hello World > hello.txt @ECHO Hello World Again >> hello.txt Save the above code as a .bat file and execute it, it will work without a hitch. The next thing we should learn is the GOTO statement. GOTO is just the same as it is in BASIC or for that fact any programming language but the only difference is between the labels. This is a label in C or BASIC – label: This is a label in batch – :label In C or BASIC, the “:” comes after the label and in Batch it comes before the label. Bear this in mind as you proceed. Here’s an example of the GOTO statement - :labelone @ECHO LoL GOTO labelone If you execute this code, you will see that it is an unlimited loop; it will keep printing to the screen till the end of time if you don’t interrupt it Smile The GOTO statement is very useful when it comes to building big Batch programs. Now, we will learn the IF and EXIST commands. The IF command is usually used for checking if a file exists, like this - @IF EXIST C:\WINDOWS\EXPLORER.EXE ECHO It exists Observe that I have not used inverted commas ( ” ) as I would in BASIC or C. The EXIST command is only found in Batch and not in any other language. The EXIST command can also be used to check if a file does not exist, like this - @IF NOT EXIST C:\WINDOWS\EXPLORER.EXE ECHO It does not exist Remember, Batch is not a language like C or BASIC or Pascal, it cannot do mathematical functions. In Batch, all you can do is control DOS. In the above example notice that there is no THEN command as there would be in most languages. Sick and tired off using the @ sign before each and every command ? Let’s do some research, go to the DOS prompt and type in ECHO /? and press enter. Interesting, in this way, when you hear of a new DOS command you don’t know about, just type in “command /?” and you can get help on it. Now back to ECHO. According to the help we received by typing in ECHO /? you must have concluded if you type in ECHO OFF you no longer need to type an @ sign before every command. Wait! just add an @ before ECHO OFF so that it does not display the message – ECHO is off. The next command we are going to learn about is the CLS command. It stands for CLear Screen. If you know BASIC, you will have no problem understanding this command. All it does is clear the screen. Here’s an example - @ECHO OFF CLS ECHO This is DOS This command needs no further explanation but type in CLS /? to get more help on the command. The next command we are going to learn is CD. It stands for Current Directory. It displays the current directory in which you are if you just type in “CD” but if you type in”CD C:\Windows\Desktop” it will take you to the Desktop. Here’s an example - @ECHO OFF CD C:WindowsDesktop ECHO Testing.. > test.txt ECHO Testing…>>test.txt This will change the directory to the Desktop and create a file there called test.txt and write to it. If we had not used the CD command, this is how the program would have looked. @ECHO OFF ECHO Testing.. > C:\Windows\Desktop\test.txt ECHO Testing…>> C:\Windows\Desktop\test.txt See the difference? Anyway that’s all for the The Basics of Batch File Programming. Remember, each an every DOS command can be used in Batch.. I Hope you liked it. I am sure you learnt something new. |
#include<stdio.h> #define decode(s,t,u,m,p,e,d) m##s##u##t #define begin decode(a,n,i,m,a,t,e) int begin() { printf("Hello"); } |
Here we are using preprocessor directive #define with arguments to give an impression that program runs without mai. But in reality it runs with hidden main function.
The ## operator is called the token pasting or token merging operator. That is we can merge two or more characters with it.
NOTE: A Preprocessor is program which processess the source code before compilation.
Look at the 2nd line of program -
#define decode(s,t,u,m,p,e,d) m##s##u##t
What is the preprocessor doing here. The macro decode(s,t,u,m,p,e,d) is being expanded as “msut” (The ## operator merges m,s,u & t into msut). The logic is when you pass (s,t,u,m,p,e,d) as argument it merges the 4th,1st,3rd & the 2nd characters(tokens)
Now look at the third line of the program -
#define begin decode(a,n,i,m,a,t,e)
Here the preprocessor replaces the macro “begin” with the expansion decode(a,n,i,m,a,t,e). According to the macro definition in the previous line the argument must be expanded so that the 4th,1st,3rd & the 2nd characters must be merged. In the argument (a,n,i,m,a,t,e) 4th,1st,3rd & the 2nd characters are ‘m’,’a’,’i’ & ‘n’.
So the third line “int begin” is replaced by “int main” by the preprocessor before the program is passed on for the compiler. That’s it…
The bottom line is there can never exist a C program without a main function. Here we are just playing a gimmick that makes us beleive the program runs without main function, but actually there exists a hidden main function in the program. Here we are using the proprocessor directive to intelligently replace the word begin” by “main”. In simple words int begin=int main.