Skip to content

JasonGardner-code/WirelessFun

Repository files navigation

WirelessFun

#hello_world# The hello_world_wav.py script reads an audio file (hello_world.wav) and transmits it using the BladeRF and receives it on a USRP. The received audio is additionally captured to a PCAP file for analysis in Wireshark. Make sure to replace the audio file with your own recording or use any suitable audio file in WAV format.

The appropriate sample rate and gain settings depend on various factors, including the characteristics of your signal, the transmission medium, and the capabilities of your hardware.

Here are some considerations:

Sample Rate:

  • Higher Sample Rate: A higher sample rate allows you to capture more detail in the signal, especially at higher frequencies. However, it also requires more processing power and bandwidth. Use a sample rate that is at least twice the bandwidth of your signal (Nyquist theorem).

Gain:

  • Optimal Gain: The optimal gain setting depends on the strength of your signal and the dynamic range of your hardware. Too low a gain might result in a weak signal, while too high a gain could lead to distortion or saturation.
  • Adjustable Gain: Many SDR devices provide adjustable gain settings. You may need to experiment with different gain values to find the one that works best for your specific setup.

Specific Recommendations:

  • BladeRF: For the BladeRF, a sample rate of 1 MHz (1e6 Hz) is often a reasonable starting point for experimentation. The gain setting can vary depending on your specific application and signal strength, but you can start with a moderate gain value like 20 dB.

  • USRP: For the USRP, the recommended sample rate and gain settings depend on the specific model (e.g., B200). Generally, you can start with a sample rate of 1 MHz and a moderate gain setting, adjusting as needed.

Experimentation:

It's recommended to start with conservative settings and then gradually increase or decrease the sample rate and gain while observing the received signal's quality. Monitor for issues such as distortion, saturation, or inadequate signal strength.

Remember that these recommendations are general guidelines, and the optimal settings can vary based on your specific use case. If possible, refer to the documentation for your specific hardware and consider any recommendations or best practices provided by the device manufacturer.

broadcast_time_SSID:

To use this script:

  1. Make sure you have hostapd installed on your system. You can install it using sudo apt-get install hostapd.

  2. Open a text editor, copy the script into a new file, and save it with a .sh extension (e.g., broadcast_time_loop.sh).

  3. Set the appropriate interface name in the interface variable.

  4. Optionally, modify the wpa_passphrase to set the desired passphrase for the Wi-Fi network.

  5. Run the script using bash broadcast_time_loop.sh or ./broadcast_time_loop.sh (if you have given executable permissions to the script using chmod +x broadcast_time_loop.sh).

broadcasting

Here is what we see in the terminal.

And below is what the devices see. There are slight delays in how the time is received at times but it works well and you can now now tell the time just by looking at your SSIDs.

id

2adapter.sh

Step 1: Prepare Configuration Files First, prepare two configuration files for hostapd: hostapd_card1.conf and hostapd_card2.conf. These files should be pre-configured with the settings for each wireless card, except for the SSID which will be dynamically updated. Example configuration for hostapd_card1.conf (and similarly for hostapd_card2.conf with appropriate adjustments for the interface):

  1. run script

Key Points: Ensure each hostapd instance is correctly set up for your hardware. The interface names (wlan0, wlan1) should match those of your wireless cards.

SSID Length: Since the length of emojis in terms of byte size can vary and some devices might not support very long SSIDs, ensure the generated SSID is within a reasonable length. This script assumes it stops adding emojis once the string length is 32 characters or more, but you may need to adjust this based on how your system calculates the length of Unicode characters.

Running the Script: Run this script as root or with sudo to ensure it has the necessary permissions to modify hostapd configuration files and reload the service.

This setup assumes that you have both hostapd instances configured to start with their respective configuration files and that your system correctly supports managing multiple wireless interfaces simultaneously.

z.sh

Dynamic Emoji SSID with Zalgo Text

Welcome to the dynamic emoji SSID generator with Zalgo text! This Bash script creates a continuously changing WiFi SSID, composed of random emojis enhanced with Zalgo text effects, ensuring your WiFi network stands out in the most cyberpunk way possible.

How It Works

The script selects random emojis from a predefined list and adds a touch of Zalgo text to each, generating an SSID that's both unique and visually intriguing. It then updates the SSID of your WiFi network at one-minute intervals, keeping the broadcast fresh and dynamic.

Features

  • Generates a unique emoji-based SSID.
  • Enhances emojis with Zalgo text for a more eerie, cyberpunk aesthetic.
  • Updates WiFi SSID every minute.

Setup Instructions

  1. Ensure hostapd is installed: The script requires hostapd for creating the WiFi network. Install it using your package manager if you haven't already.

  2. Configure hostapd: Modify hostapd_card1.conf and hostapd_card2.conf with your specific settings, such as interface and driver.

  3. Run the Script: Execute the script with sudo ./dynamic_emoji_ssid.sh to start broadcasting your dynamic SSIDs.

Disclaimer

This script is intended for educational and experimental purposes. Please ensure you comply with local regulations and consent requirements before broadcasting SSIDs in public spaces.

Contributing

Feel free to fork this repository, submit pull requests, or suggest features to make this project even more fun.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published