Hack wifi wpa/wpa2 password using python



Hey guys , have you ever wondered how to hack a wifi using python, am going to show you guys how. 

Wifiphisher is a security tool that mounts automatic victim-customized phishing attacks against WiFi victims so as to get credentials or infect the victims with malware.
It’s primarily a social engineering attack that in contrast to alternative strategies it doesn’t embody any brute forcing. It’s a simple method for getting credentials from captive portals and third-party login pages (e.g. in social networks) or WPA/WPA2 pre-shared keys.
We can achieve to obtain WPA/WPA2 WiFi Passwords by Jamming the network same as We used to Perform DDoS Attacks.

How the Tool Works


  • It endlessly jams all of the target access point’s WLAN devices inside vary by shaping “de-authenticate” or “Disassociate” packets to disrupt existing associations.
  • Also, it sniffs the realm and copies the target access point’s settings. It then creates a villain wireless access purpose that’s shapely by the target. It conjointly sets up a NAT/DHCP server and forwards the correct ports.
  • Ir employs a stripped-down net server that responds to hypertext transfer protocol & HTTPS requests. As shortly because the victim requests a page from the net, wifiphisher can respond with a sensible pretend page that asks for credentials or serves malware.

Demonstration Wifiphisher – Kali Linux Tutorial


In this Kali Linux Tutorial we are to see how easy we can use Wifiphisher.For Downloading and Installing from GitHub
git clone https://github.com/wifiphisher/wifiphisher.git
cd wifiphisher
sudo python setup.py install
To Launch the WifiPhispher and help
wifiphisher -h

Simply spawn an open Wi-Fi network
wifiphisher –nojamming

And then it will show the available Networks.

We should select an available network from the list and then it will ask for Firmware Upgrade.
After it makes the victim to connect with our Rogue WiFi Network and ask to update Frimware by entering WiFi password.

Once Victim Entered the Wifi Password then we can Capture that.
It will result in automatic association of nearby Windows devices.

Disclaimer

This article is only for an Educational purpose. Any actions and or activities related to the material contained within this Website is solely your responsibility.

DONT FORGET TO SHARE !!

Python machine learning for beginners (PART 1)

Hello guys, today am going to teach you some basics on machine in python. 

Machine Learning is a step into the direction of artificial intelligence (AI).

What is machine learning ?

Machine learning is a type of artificial intelligence (AI) that provides computers with the ability to learn without being explicitly programmed. 

In this tutorial we will go back to mathematics and study statistics, and how to calculate important numbers based on data sets.

Data set

In the mind of a computer, a data set is any collection of data. It can be anything from an array to a complete database.

Example of an array:


[99,86,87,88,111,86,103,87,94,78,77,85,86]

By looking at the array, we can guess that the average value is probably around 80 or 90, and we are also able to determine the highest value and the lowest value, but what else can we do?

And by looking at the database we can see that the most popular color is white, and the oldest car is 17 years, but what if we could predict if a car had an AutoPass, just by looking at the other values?

That is what Machine Learning is for! Analyzing data and predict the outcome!

MEAN

In Machine Learning (and in mathematics) there are often three values that interests us:

  • Mean - The average value

Example: We have registered the speed of 13 cars:

speed = [99,86,87,88,111,86,103,87,94,78,77,85,86]



What is the average, the middle, or the most common speed value?


Mean

The mean value is the average value.

To calculate the mean, find the sum of all values, and divide the sum by the number of values:


(99+86+87+88+111+86+103+87+94+78+77+85+86) / 13 = 89.77


The NumPy module has a method for this:


Use the NumPy mean() method to find the average speed:


Get your python IDE set: 

Insert the code below: 


import numpy

speed = [99,86,87,88,111,86,103,87,94,78,77,85,86]

x = numpy.mean(speed)

print(x)


Returns:  89.76923076923077


Part Two coming soon stay tuned. 

Switch "ON" Android phone flashlight from web



Hey, have you ever think of switching ON an android phone flashlight from the web? Here is a source code for that below.

1. Open Your IDE



2. Create an HTML file


3. paste the following code:


 <button class="switch">On / Off</button>


4. Add Javascript To your code:


Run the code on your browser and boom 💥,  it works. 

If you have any questions feel free to ask at the comment section. 



//Test browser support
const SUPPORTS_MEDIA_DEVICES = 'mediaDevices' in navigator;

if (SUPPORTS_MEDIA_DEVICES) {
  //Get the environment camera (usually the second one)
  navigator.mediaDevices.enumerateDevices().then(devices => {
  
    const cameras = devices.filter((device) => device.kind === 'videoinput');

    if (cameras.length === 0) {
      throw 'No camera found on this device.';
    }
    const camera = cameras[cameras.length - 1];

    // Create stream and get video track
    navigator.mediaDevices.getUserMedia({
      video: {
        deviceId: camera.deviceId,
        facingMode: ['user', 'environment'],
        height: {ideal: 1080},
        width: {ideal: 1920}
      }
    }).then(stream => {
      const track = stream.getVideoTracks()[0];

      //Create image capture object and get camera capabilities
      const imageCapture = new ImageCapture(track)
      const photoCapabilities = imageCapture.getPhotoCapabilities().then(() => {

        //todo: check if camera has a torch

        //let there be light!
        const btn = document.querySelector('.switch');
        btn.addEventListener('click', function(){
          track.applyConstraints({
            advanced: [{torch: true}]
          });
        });
      });
    });
  });
  
  //The light will be on as long the track exists
  
  
}

Send mail using javascript cdn (No server side required)



Have you ever wondered how you can send mail from front end using cdn?

Am going to show you how it works , with these few steps :
1.  firstly logon to https://www.smtpjs.com/

2. Open your IDE , e.g sublime text, vscode.. 

3. Include the script: 
<script src="https://smtpjs.com/v3/smtp.js"></script>
4. Send an email using:
Email.send({
  Host : "smtp.yourisp.com",
    Username : "username",
    Password : "password",
    To : 'them@website.com',
    From : "you@isp.com",
    Subject : "This is the subject",
    Body : "And this is the body"
}).then(
  message => alert(message)
);
5. Fill your smtp server details , boom 💥.

How to add security to this?

According to smtpjs.com, you can encrypt your SMTP Credentials, using the script below.
Email.send({
    SecureToken : "C973D7AD-F097-4B95-91F4-40ABC5567812",
    To : 'them@website.com',
    From : "you@isp.com",
    Subject : "This is the subject",
    Body : "And this is the body"
}).then(
  message => alert(message)
);
More features available at smtpjs.com check it out. Don't forget to share.

kivy tutorial for beginner's (python) Part 1

                                            image from kivy.org


Start Developing Kivy Apps Right Away!

Creating Kivy apps is fun and rewarding. This guide should be the perfect starting point to get you on the right track for app development. You will require a basic knowledge of Python to follow this introduction.

Using Kivy on your computer, you can create apps that run on:

  • Desktop computers: OS X, Linux, Windows.
  • iOS devices: iPad, iPhone.
  • Android devices: tablets, phones.
  • Any other touch-enabled professional/homebrew devices supporting TUIO (Tangible User Interface Objects).

                                            #INSTALLATION
 If you want the development version of Kivy in order to benefit from the latest additions to the framework, you can get the source code from github:
                  git clone http://github.com/kivy/kivy
 installation on windows :

Using Conda |

conda install kivy -c conda-forge

Otherwise, continue below to install Kivy in a native Python installation.

Installing Kivy Stable Release

  1. Ensure you have the latest pip, wheel, and virtualenv:
    python -m pip install --upgrade pip wheel setuptools virtualenv 
    Optionally create a new virtual environment for your Kivy project. Highly recommended:
    1. First create the environment named kivy_venv in your current directory:
      python -m virtualenv kivy_venv 
    2. Activate the virtual environment. You’ll have to do this step from the current directory every time you start a new terminal. On windows CMD do:
      kivy_venv\Scripts\activate
      If you’re in a bash terminal, instead do
      source kivy_venv/Scripts/activate
    Your terminal should now preface the path with something like (kivy_venv), indicating that the kivy_venv environment is active. If it doesn’t say that, the virtual environment is not active.
  2. Install the dependencies (skip gstreamer (~120MB) if not needed, see Kivy’s dependencies). If you are upgrading Kivy, see Updating Kivy from a previous release:
    python -m pip install docutils pygments pypiwin32 kivy_deps.sdl2==0.1.* kivy_deps.glew==0.1.*
    python -m pip install kivy_deps.gstreamer==0.1.*
    
    Note
    If you encounter a MemoryError while installing, add after pip install the –no-cache-dir option.
    For Python 3.5+, you can also use the angle backend instead of glew. This can be installed with:
    python -m pip install kivy_deps.angle==0.1.* 
    Warning
    When installing, pin kivy’s dependencies to the specific version that was released on pypi when your kivy version was released, like above. Otherwise you may get an incompatible dependency when it is updated in the future.
  3. Install kivy:
    python -m pip install kivy==1.11.1 
  4. (Optionally) Install the kivy examples:
    python -m pip install kivy_examples==1.11.1 
    The examples are installed in the share directory under the root directory where python is installed.
That’s it. You should now be able to import kivy in python or run a basic example if you installed the kivy examples:
python kivy_venv\share\kivy-examples\demo\showcase\main.py
Replace kivy_venv with the path where python is installed if you didn’t use a virtualenv.
Note
If you encounter any permission denied errors, try opening the Command prompt as administrator and trying again. The best solution for this is to use a virtual environment instead.

  - First Kivy App

In this section, you will learn how to create and run a Kivy program and how to build a basic interface in Kivy.

Let’s create a file with .py extension.

To create a Kivy interface, we first need to import the Kivy app module in our program using the following statement:

from kivy.app import App
Now importing Label from kivy.uix.label:
from kivy.uix.label import Label
Now is the time to write our main program.
class FirstKivy(App):

    def build(self):

        return Label(text="Hello Kivy!")
In the above snippet, a class is inherited from the App class. Then to build the application we have to return a widget on the build() function. In the code above, we have returned a label with text “Hello Kivy”.

The last step is to call this function. You can either create an object of the class or just write the following statement:
FirstKivy().run()
The entire python file looks like the following:
from kivy.app import App

from kivy.uix.label import Label

class FirstKivy(App):

    def build(self):

        return Label(text="Hello Kivy!")

FirstKivy().run()
The result of this code will be like this:


 Part two of kivy tutorial coming soon...

Laravel Quick Step Installation

 



# INSTALLATION 

                                  Via Laravel Installer

             First, download the Laravel installer using Composer.

                     composer global require "laravel/installer=~1.1"
Make sure to place the ~/.composer/vendor/bin directory in your PATH (or C:\%HOMEPATH%\AppData\Roaming\Composer\vendor\bin if working with Windows) so the laravel executable is found when you run the laravel command in your terminal.
Once installed, the simple laravel new command will create a fresh Laravel installation in the directory you specify. For instance, laravel new blog would create a directory named blog containing a fresh Laravel installation with all dependencies installed. This method of installation is much faster than installing via Composer.

Via Composer

The Laravel framework utilizes Composer for installation and dependency management. If you haven't already, start by installing Composer.
Now you can install Laravel by issuing the following command from your terminal:

               composer create-project laravel/laravel your-project-name 4.2.*
This command will download and install a fresh copy of Laravel in a new your-project-name folder within your current directory.
If you prefer, you can alternatively download a copy of the Laravel repository from GitHub manually. Next run the composer install command in the root of your manually created project directory. This command will download and install the framework's dependencies.

Permissions

After installing Laravel, you may need to grant the web server write permissions to the app/storage directories. See the Installation documentation for more details on configuration.

 

Serving Laravel

 

Typically, you may use a web server such as Apache or Nginx to serve your Laravel applications. If you are on PHP 5.4+ and would like to use PHP's built-in development server, you may use the serve Artisan command:

                                       php artisan serve