A terminal-based interactive assistant for configuring and managing hostapd.conf files. This Python tool streamlines the process of setting up Wi-Fi access points by allowing you to dynamically modify settings, save/load presets, and write valid hostapd configurations with a clean, color-coded interface.
this isnt super useful on its own but if paired with other scripts / software / tools then it may be more usefull
- 🎨 Color-coded terminal UI using
colorama - ⚙️ Dynamic
SET <option> <value>commands to updatehostapd.confsettings - 💾 Save and load presets from the
hostapd_presets/folder - 👁️ Live preview of your configuration
- 🆘 Built-in help menus with usage examples
- 📁 Easily export and apply changes to
hostapd.conf
You can edit the following hostapd.conf parameters:
interface— Network interface (e.g., wlan0)driver— Wireless driver (e.g., nl80211)ssid— Network SSIDbssid— MAC address of the access pointhw_mode— Band:gfor 2.4GHz,afor 5GHzchannel— Wi-Fi channelauth_algs— Authentication modewep_default_key— WEP key index (0–3)wep_key0— WEP encryption key
Changes are reflected in real time via the color-coded interface.
Presets are saved in the hostapd_presets/ directory and can be:
- 🔄 Loaded using:
load <preset> - 👁️ Viewed using:
show <preset> - 💾 Saved with:
PRESET ' then '<name>
Example:
$> PRESET
$> preset name: office_ap
$> show office_ap
$> load office_ap
git clone https://github.com/Sota-0/hostapd-config-setup-script
pip install colorama
python3 hostapd_write.py
Hostapd : 1.SETUP or 2.PRESET
$> 1
$> SET ssid MyNetwork
$> SET bssid 00:11:22:33:44:55
$> SET channel 6
$> WRITE
$> PRESET
$> preset_1
- This tool does not start
hostapd; it only manages the configuration file. - Ensure the interface and driver are valid and supported on your system.
- Presets are stored as
.conffiles and can be reused or edited manually.
- Python 3.x
- colorama
Install dependencies with:
pip install colorama
or
pip install -r requirements.txt
PRs, issues, and suggestions are welcome! If you’d like to improve or extend the tool, feel free to fork and submit a pull request.