# WinFiHack | A Windows Wifi Brute Forcing Utility

**URL:** <https://onehack.st/t/winfihack-a-windows-wifi-brute-forcing-utility/278059>\
**Category:** Tools & Scripts\
**Tags:** tools, hacking, cracking, tips-tricks\
**Created:** [March 18, 2024, 9:25pm UTC](https://onehack.st/t/winfihack-a-windows-wifi-brute-forcing-utility/278059 "2024-03-18T21:25:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhiteHat](https://onehack.st/user_avatar/onehack.st/whitehat/32/162514_2.png) [@WhiteHat](https://onehack.st/u/WhiteHat)\
**Post date:** [March 18, 2024, 9:25pm UTC](https://onehack.st/t/winfihack-a-windows-wifi-brute-forcing-utility/278059/1 "2024-03-18T21:25:40Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/c/b/cb0f1e6f92763a778f4e8096419396a369083357.png)

# WinFiHack

\_\_ \_\_\_ \_\_\_\_\_ \_ \_ \_ \_ \ \ / (_)_ \_\_ | _() | | | \_\_ \_ | | \_\_ \ \ /\ / /| | ’ | | | | || |/ ` |/ **| |/ / \ V V / | | | | | | | | \_ | (| | (**| \< \_/\_/ ||| |_|_| |_|_| |_|\__,_|\_\_\_|\_|\_\

WinFiHack is a recreational attempt by me to rewrite my previous project [Brute-Hacking-Framework’s](https://github.com/morpheuslord/Brute-Hacking-Framework-SourceCode) main wifi hacking script that uses netsh and native Windows scripts to create a wifi bruteforcer. This is in no way a fast script nor a superior way of doing the same hack but it needs no external libraries and just Python and python scripts.

## Installation

The packages are minimal or nearly none 😅. The package install command is:

pip install rich pyfiglet

Thats it.

## Features

So listing the features:

- _Overall Features:_
  - We can use custom interfaces or non-default interfaces to run the attack.
  - Well-defined way of using netsh and listing and utilizing targets.
  - Upgradeability

- _Code-Wise Features:_
  - Interactive menu-driven system with `rich`.
  - versatility in using interface, targets, and password files.

## How it works

So this is how the bruteforcer works:

- _Provide Interface:_
  - The user is required to provide the network interface for the tool to use.
  - By default, the interface is set to `Wi-Fi`.

- _Search and Set Target:_
  - The user must search for and select the target network.
  - During this process, the tool performs the following sub-steps:
    - Disconnects all active network connections for the selected interface.
    - Searches for all available networks within range.

- _Input Password File:_
  - The user inputs the path to the password file.
  - The default path for the password file is `./wordlist/default.txt`.

- _Run the Attack:_
  - With the target set and the password file ready, the tool is now prepared to initiate the attack.

- _Attack Procedure:_
  - The attack involves iterating through each password in the provided file.
  - For each password, the following steps are taken:
    - A custom XML configuration for the connection attempt is generated and stored.
    - The tool attempts to connect to the target network using the generated XML and the current password.
    - To verify the success of the connection attempt, the tool performs a “1 packet ping” to Google.
    - If the ping is unsuccessful, the connection attempt is considered failed, and the tool proceeds to the next password in the list.
    - This loop continues until a successful ping response is received, indicating a successful connection attempt.

## How to run this

After installing all the packages just run `python main.py` rest is history 👍 make sure you run this on Windows cause this won’t work on any other OS. The interface looks like this: [![image](https://private-user-images.githubusercontent.com/70637311/309796408-4f0fd195-7729-47fd-888c-0f1a64f90dce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3OTcyOTksIm5iZiI6MTcxMDc5Njk5OSwicGF0aCI6Ii83MDYzNzMxMS8zMDk3OTY0MDgtNGYwZmQxOTUtNzcyOS00N2ZkLTg4OGMtMGYxYTY0ZjkwZGNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDIxMjMxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI5MjQzNTFkNmNhZWM0ZmNiZjBkMGMwMzgyYmJiYjJkNDQ5OWQ1MGNlNWIxNDZmZTgzMzc0MDhlOWQyNjQ3NTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yopNIDaYVabb3h6hAt4Tg8nQTGHDDNJ4BA9Uhrlwx1A)](https://private-user-images.githubusercontent.com/70637311/309796408-4f0fd195-7729-47fd-888c-0f1a64f90dce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3OTcyOTksIm5iZiI6MTcxMDc5Njk5OSwicGF0aCI6Ii83MDYzNzMxMS8zMDk3OTY0MDgtNGYwZmQxOTUtNzcyOS00N2ZkLTg4OGMtMGYxYTY0ZjkwZGNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDIxMjMxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI5MjQzNTFkNmNhZWM0ZmNiZjBkMGMwMzgyYmJiYjJkNDQ5OWQ1MGNlNWIxNDZmZTgzMzc0MDhlOWQyNjQ3NTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yopNIDaYVabb3h6hAt4Tg8nQTGHDDNJ4BA9Uhrlwx1A)

## Contributions

For contributions:

- _First Clone:_ First Clone the repo into your dev env and do the edits.
- _Comments:_ I would apprtiate if you could add comments explaining your POV and also explaining the upgrade.
- _Submit:_ Submit a PR for me to verify the changes and apprive it if necessary.

## GitHub:

> **[GitHub - morpheuslord/WinFiHack: A windows Wifi Brute forcing utility which is an...](https://github.com/morpheuslord/WinFiHack)**
>
> A windows Wifi Brute forcing utility which is an extremely old method but still works without the requirement of external dependencies.
