Sunday, July 5, 2015

Introduction to Programming



Computer Programming– A program has a set of instructions written in correct order to get the desired result. The method of writing the instructions to solve the given problem is called programming.

Programming languages can be divided into two categories:

(i)                Low Level Languages or Machine Oriented Languages: The language whose design is governed by the circuitry and the structure of the machine is known as the Machine language. This language is difficult to learn and use. It is specific to a given computer and is different for different computers i.e. these languages are machine-dependent. These languages have been designed to give a better machine efficiency, i.e. faster program execution. Such languages are also known as Low Level Languages. Another type of Low-Level Language is the Assembly Language. We will code the assembly language program in the form of mnemonics. Every machine provides a different set of mnemonics to be used for that machine only depending upon the processor that the machine is using

(ii)             High Level Languages or Problem Oriented Languages: These languages are particularly oriented towards describing the procedures for solving the problem in a concise, precise and unambiguous manner. Every high level language follows a precise set of rules. They are developed to allow application programs to be run on a variety of computers. These languages are machine-independent. Languages falling in this category are FORTRAN, BASIC, PASCAL etc. They are easy to learn and programs may be written in these languages with much less effort. However, the computer cannot understand them and they need to be translated into machine language with the help of other programs known as Compilers or Translators.

Programming techniques: - There are two type of programming techniques commonly used:-
1.      Procedural Programming
2.      Object Oriented Programming (OOP)

Procedural Programming– In Procedural Programming, for a given problem, variables are identified and instructions are written using the variables in the correct sequence to get the required result.
                        The procedural Programming method is commonly used to solve scientific and engineering problem involving variables.

Object Oriented Programming (OOP)– In Object Oriented Programming, Objects which have data related to a person or item are used. The program can be written using many functional blocks. The functional block contains instructions similar to procedural programming.
                        Object Oriented Programming method is commonly used to develop software packages. C++ is one of the commonly used object oriented programming languages.

Algorithm – In order to write computer programs without any logical errors, it is recommended programmers prepare a rough writing showing the steps involved in the program. This is called an algorithm.
                        An algorithm presents step by step instructions required to solve any problem. These steps can be shown diagrammatically using a flowchart.


Flowchart – Flowchart is a symbolic or diagrammatic representation of an algorithm. It uses several geometrical figures to represent the operations, and arrows to show the direction of flow. Following are the commonly used symbols in flowcharts:-

(Click on image for large view)


Question – Answer

Q. 1 Write the algorithm and draw the flowchart to find the sum and product of given two numbers.

Solution:

            In this problem, two numbers, Let A and B, are given (input) and the result, sum (A+B) of two numbers and product (A*B) of two numbers, are to be calculated.

Algorithm:
1.      Read a, b
2.      Sum ← a+b
3.      Product ←a*b
4.      Print sum, product
5.      Stop

Flowchart:

Note – We can use equal to (=) sign instead of arrow (←). E.g. sum = a+b

Video Tutorial Click Below:



Like it ? Share it.

Thursday, July 2, 2015

Reliance Unlimited 3G Trick


Today i am going to tell you how to use Reliance Unlimited 3G at very low cost. This is an USSD process of activation Reliance 3G.

How to Activate:
  1. There should be balance in your main account.
  2. Dial *129*2# after dialing this code you will receive a Message "Recharge of Rs. 9 Successful Enjoy 1GB 2G Data Unlimited Whatsapp Facebook Twitter. Valid for Today"
     
  3. Rs. 9 will deduct from your main account balance.
     
  4. Repeat above USSD code and each activation will give you 1 GB Data. So if you want 10 GB Data then you need to dial above code 10 times as well Rs. 90 will be deduct.
  5. Now Dial *129# then reply with 7 for more option again reply with 1 for 100 MB @ Rs. 9 3G Data activation. Remember Rs. 9 will be deduct again from your main account.
     
  6. Wait for a while and restart your Mobile/Device.
  7. Done
Term Condition:
  1. This is not an official plan so you should not ask customer care executive about this otherwise they will fix this bug and our enjoyment will be vanish.
  2. There Should be Balance its unlimited but not free.
  3. Validity will be only 1 Day till 12 AM.
  4. You can not blame anyone if this trick is not working for you.
  5. Enjoy it silently 



Like it ? Share it.

Thursday, June 18, 2015

Input Statement (cin) in C++



cin (console input) –  It is used to read/input value of variables from the keyboard.
Syntax :-
cin >> variable_name;
Ex: -
cin >> a;
where >>is known as extraction or get from operator.

  cin >> a
  where a is variable.



Tuesday, May 12, 2015

Output Statement (cout) in C++


cout (console output) –  It is used to print/display value of variable.
Syntax:-
cout << variable_name;
cout << “Any Message”;

Ex: -
cout << a;
cout << “Hello World”;

where << is known as insertion or put to operator.

  cout << “Any Message”
  cout << a
where a is variable and Any message is string



Tuesday, April 7, 2015

C Programming


C programming is a popular computer programming language which is widely used for system and application software. Despite being fairly old programming language, C programming is widely used because of its efficiency and control. This tutorial is intended for beginners who does not have any prior knowledge or have very little knowledge of computer programming.

Theory
Video Tutorials
English
Hindi

Fundamentals of C


 Part 1     Part 2     Part 3

 Part 4     Part 5    Part 6 

 Part 7     Part 8     Part 9

Part 1     Part 2     Part 3

Part 4     Part 5






Decision and Loop Control Statement in C




Array and Subscript



Strings



Functions



Structure and Union



Pointers



Files



C Preprocessor and Command Line Arguments




Graphics Using C



Standard Library Functions







Like it ? Share it.

Monday, March 23, 2015

Crack wifi Password and WPS PIN without Dictionary Attack


What is WPS ?
Wi-Fi Protected Setup is known as WPS. It is a wireless networking standard that tries to make connections between a router and wireless devices faster and easier. Security researcher Stefan Viehböck said, the WPS PIN is highly vulnerable to brute force attacks. The eight-digit PIN is stored by routers in two blocks of four digits each. The router checks the first four digits separately from the last four digits. A hacker can brute-force the first block of four digits and move on to the second block. A smart hacker with the right tools can brute-force the pin within a day.In this tutorial we will learn how to crack wifi WPS PIN and Wifi Password what’s more we will learn how can we crack our same target wifi again and again using WPS PIN within Seconds.

Note - Only for Education Purpose

Requirements:
  • Kali Linux OS
  • External Wifi
  • Target Wifi Router
Note - If you are using Kali Linux in Virtual Machine then you need external wifi but if you are using Kali linux with dual boot or as a host OS then your internal wifi will work fine.

1. Open Terminal
(Click image for large view)

2. Write airmon-ng and Press Enter. You will see your Wifi Interface, Chipset and Driver.

3. Write airmon-ng start wlan0 and Press Enter
          Where wlan0 is my interface. It can be different in your System so write it as per your own Interface.

4. Write wash –i mon0 --ignore-fcs and Press enter. You will see your Target Wifi’s BSSID, Channel, WPS Locked Status and ESSID. Press Ctrl + C to stop this scan.

5.   Write reaver –i mon0 –b E8:94:F6:01:0C:60 –d 40 –S –N –vv and Press Enter
              Where E8:94:F6:01:0C:60 is my target wifi BSSID (write your own target’s BSSID) , 40 is delay for trying per Pin, You can increase or decrease this timer. If you want to know about other terms like –S –N then write reaver and Press Enter in a new terminal.
After running above command (actually reaver is a tool) you will see “Associated with E8:94:F6:01:0C:60 (ESSID: geekyshows.com)”. It is a positive sign of cracking process. Sometime you will see “Failed to associate with E8:94:F6:01:0C:60 (ESSID: geekyshows.com)” which means Your target wifi has no network access right now but it doesn’t mean you can’t crack his wifi. You will have to try after sometime.
Now at the end you will see that you have successfully cracked your target wifi’s WPS PIN and Password.

Note - It takes time to crack but it will provide you positive result. You will have to wait at least 24 hours or less.

6. Now we have our target’s wifi WPS PIN so it doesn’t matter if your target recognizes that someone using his internet and how frequently your target changes wifi password. Just because we have target’s WPS PIN we can crack his wifi password again and again till he doesn’t change his WPS PIN.

7. Now Our target is changing his wifi password his old wifi password was kalilinux which we have cracked previously but now he is changing his password with a new password rajhere192. So let’s see how we will crack his new password once again by using WPS PIN within 5 second.

8. Write reaver –i mon0 –b E8:94:F6:01:0C:60 –p 01140200 –vv and Press Enter
           Where E8:94:F6:01:0C:60 is Target’s BSSID and 01140200 is WPS PIN.
You do not need to wait 24 hours this time because we have attacked him with particular WPS PIN So, Now within 5 Second you will crack his new password.
 (Click image for large view)

Now our Tutorials are available on Youtube. Click Below



Like it ? Share it.

Wednesday, March 11, 2015

Why do we use iostream and namespace in C++

#include<iostream>
or
# include<iostream.h>

  • Istream class supports Input function.
  • Ostream class supports output function.

            All objects are included in iostream file So, we can use input or output statement in our programs.


using namespace std;
  • It includes all C++ standard libraries.
  • We do not use this in old IDE like Turbo C++ but we have to use this in all new IDE like Code Blocks, Dev C++ etc.