Git Product home page Git Product logo

kick_off_wifi's Introduction

Wifi Kick Off

References

Goal: remove devices that are on the same wifi network

Strategy: ARP Spoofing

Libraries:

  • Scapy

How ARP Spoofing works:

packet = ARP(op=2, psrc=gateway_ip, hwsrc='12:34:56:78:9A:BC', pdst=target_ip, hwdst=target_mac)

The code represents:

{
     'op': 2, # ARP operation type (2 for ARP response)
     'psrc': gateway_ip, # Source IP address (gateway IP)
     'hwsrc': '12:34:56:78:9A:BC',# Source MAC address (MAC of the device sending the packet)
     'pdst': target_ip, # Destination IP address (target device IP)
     'hwdst': target_mac # Target MAC address (target device MAC)
}

Here is how a computer interprets this information when receiving this ARP packet:

  • Type of Operation (op): The value 2 indicates an ARP response. In other words, the device is responding to a previous ARP request.
  • Source IP Address (psrc): Indicates the IP address of the device sending the packet. In this case, it is the IP of the gateway (router).
  • Source MAC Address (hwsrc): Specifies the MAC address of the device sending the packet. In this example, it is '12:34:56:78:9A:BC'.
  • Destination IP Address (pdst): Indicates the IP address of the target device to which the ARP packet is being sent.
  • Destination MAC Address (hwdst): Specifies the MAC address of the target device. In this example, it is the MAC of the target device.

Upon receiving this ARP packet, the target device (with the IP address target_ip) would update its ARP table with the information provided. This means that the device would now associate the IP address gateway_ip with the MAC address '12:34:56:78:9A:BC' in its ARP table.

kick_off_wifi's People

Contributors

medeirosgabriel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.