The gMan nixWiki

Because the mind is made of Teflon...

User Tools

Site Tools


hack_wireless_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
hack_wireless_setup [2020/04/18 18:56] – created gmanhack_wireless_setup [2020/05/31 17:44] (current) – [Wireless: Connect] gman
Line 1: Line 1:
-====== Wireless ======+====== Wireless: Set-Up ======
  
 **Adapters:** Built-in wireless adapters in retail computers will not perform for what you need. You need a wireless adapter that will support: Monitor Mode & Packet Injection ([[https://youtu.be/0lqRZ3MWPXY|Explanation]]). **Adapters:** Built-in wireless adapters in retail computers will not perform for what you need. You need a wireless adapter that will support: Monitor Mode & Packet Injection ([[https://youtu.be/0lqRZ3MWPXY|Explanation]]).
   * Tools are found in the [[https://www.aircrack-ng.org/documentation.html|aircrack-ng]] suite.   * Tools are found in the [[https://www.aircrack-ng.org/documentation.html|aircrack-ng]] suite.
- 
-===== Adapter Setup ===== 
- 
-**Attaching USB Device to VM in VirtualBox** 
-  * Start the following process WITHOUT the wireless adapter attached. Do NOT connect it yet. 
-  * Even after you have your adapter installed, recognized and functioning, ALWAYS start Kali with the adapter UNCONNECTED.  
-  * For some reason, Kali VM does not play nicely when booted with the adapter attached. Boot. Attach. Play. 
- 
-**VirtualBox (Host) Setup:** 
-  - In Linux you need to add the current user to the virtualbox group:  
-    * As root: ''adduser [username: echo $USER] vboxuser'' 
-    * Then you need to logout (of X, of current session) and log back in. 
-  - Open VirtualBox and click on the machine you want to select it. 
-  - Go to Settings... USB... Make sure USB is enabled (checkbox is checked). 
-  - Pick the USB version used by your adapter (1.1, 2.0, or 3.0; mine was 3.0). 
-  - Click on the icon to the right of the Filter box with the plus sign (+). 
-    * If you have devices already connected to that version of USB, they will show up in the menu. 
-  - Now connect the adapter and do #4 again (plus sign). 
-    * You should see a new entry in the pop-up menu. 
-    * It will be listed according to the chipset, not the brand name of the adapter. 
-    * This will be the same chipset you see with ''lsusb'' in the host Linux O/S. 
-  - Click on the adapater (chipset) entry to select it. 
-  - Click on OK to accept the addition and close the USB menu window. 
-  - Before starting the VM, physically disconnect the wireless adapter. 
-  - Start the VM and let it fully load THEN connect your USB wireless adapter (you should see the adapters visual feedback light up). 
-    * Check to make sure the adapter connection is recognized. 
-    * Go to the VM menu (all the way on the top): Devices... USB... 
-    * You should see your adapter/chipset entry selected with a check mark. 
- 
-**Virtual Machine (Guest) Setup:**  
-  - In a term window in your Linux VM, do ''lsusb''. You should see your chipset. 
-  - Check to see if the adapter was recognized by the O/S. Use one or more of the following: 
-    * ''ifconfig'' or ''iwconfig'' or ''ip a'' 
-  - If you do not see a wireless adapter (wlan0, etc.), then you need to install the drivers. 
-    * https://virtuallyonit.com/2018/09/10/install-a-wireless-adapter-on-kali-linux/ 
-  - Search for the chipset name (e.g., RTL8812AU or realtek, etc.) 
-    * ''apt-cache search RTL8812AU'' or ''apt-cache search realtek'', etc. 
-  - Install your chipset's driver package. 
-    * My example: ''apt install realtek-rtl88xxau-dkms'' 
-  - After a successful installation of the package, power down the VM. 
-  - Remove the USB adapter (if connected), power up the VM, update and upgrade to make sure it works. 
-    *  ''apt update'' and then ''apt full-upgrade'' 
-  - For some reason, some folks needed to do a key addition to get the upgrade to work (mine worked fine without it). Also, :  
-<code> 
-apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6 
-systemctl restart network-manager 
-</code> 
-  - Connect your USB wireless adapter. Check in Devices... USB... to make sure it's there. Check ''lsusb'' in terminal. 
-  - Check to see if the adapter was recognized by the O/S (mine worked, got a wlan0): 
-    * ''ifconfig'' or ''iwconfig'' or ''ip a'' 
- 
----- 
  
 ===== Change MAC ===== ===== Change MAC =====
Line 122: Line 70:
  
 Do an ''iwconfig'' to check out ''wlan0'' (or whatever your interface name is): should be ''Mode: Managed'' (you need to change to ''Monitored'' in order to catch all network traffic). Do an ''iwconfig'' to check out ''wlan0'' (or whatever your interface name is): should be ''Mode: Managed'' (you need to change to ''Monitored'' in order to catch all network traffic).
-  * **Important:** It is important that you use ''ifconfig'' (or ''ip'') here and not ''ifup''. ([[configs#ifupdown_vs_ifconfig|See explanation]].)+  * **Important:** It is important that you use ''ifconfig'' (or ''ip'') here and not ''ifup''. ([[https://nix.kedrovsky.net/general_cli#ifupdown_vs_ifconfig|See explanation]].) 
 +  * In a nutshell: 
 +    * An ''ifconfig up eth0'' activates eth0 but does not setup IP addresses, etc. 
 +    * An ''ifup eth0'' sets up IP addresses and other options based on the interface's configuration in /etc/network/interfaces.
  
 1. Disable the interface. 1. Disable the interface.
Line 152: Line 103:
   * ''monitor'' (the node is not associated with any cell and passively monitor all packets on the frequency)   * ''monitor'' (the node is not associated with any cell and passively monitor all packets on the frequency)
   * ''auto''   * ''auto''
 +
 +----
 +
 +===== Adapter Setup (VM) =====
 +
 +**Attaching USB Device to VM in VirtualBox**
 +  * Start the following process WITHOUT the wireless adapter attached. Do NOT connect it yet.
 +  * Even after you have your adapter installed, recognized and functioning, ALWAYS start Kali with the adapter UNCONNECTED. 
 +  * For some reason, Kali VM does not play nicely when booted with the adapter attached. Boot. Attach. Play.
 +
 +**VirtualBox (Host) Setup:**
 +  - In Linux you need to add the current user to the virtualbox group: 
 +    * As root: ''adduser [username: echo $USER] vboxuser''
 +    * Then you need to logout (of X, of current session) and log back in.
 +  - Open VirtualBox and click on the machine you want to select it.
 +  - Go to Settings... USB... Make sure USB is enabled (checkbox is checked).
 +  - Pick the USB version used by your adapter (1.1, 2.0, or 3.0; mine was 3.0).
 +  - Click on the icon to the right of the Filter box with the plus sign (+).
 +    * If you have devices already connected to that version of USB, they will show up in the menu.
 +  - Now connect the adapter and do #4 again (plus sign).
 +    * You should see a new entry in the pop-up menu.
 +    * It will be listed according to the chipset, not the brand name of the adapter.
 +    * This will be the same chipset you see with ''lsusb'' in the host Linux O/S.
 +  - Click on the adapater (chipset) entry to select it.
 +  - Click on OK to accept the addition and close the USB menu window.
 +  - Before starting the VM, physically disconnect the wireless adapter.
 +  - Start the VM and let it fully load THEN connect your USB wireless adapter (you should see the adapters visual feedback light up).
 +    * Check to make sure the adapter connection is recognized.
 +    * Go to the VM menu (all the way on the top): Devices... USB...
 +    * You should see your adapter/chipset entry selected with a check mark.
 +
 +**Virtual Machine (Guest) Setup:** 
 +  - In a term window in your Linux VM, do ''lsusb''. You should see your chipset.
 +  - Check to see if the adapter was recognized by the O/S. Use one or more of the following:
 +    * ''ifconfig'' or ''iwconfig'' or ''ip a''
 +  - If you do not see a wireless adapter (wlan0, etc.), then you need to install the drivers.
 +    * https://virtuallyonit.com/2018/09/10/install-a-wireless-adapter-on-kali-linux/
 +  - Search for the chipset name (e.g., RTL8812AU or realtek, etc.)
 +    * ''apt-cache search RTL8812AU'' or ''apt-cache search realtek'', etc.
 +  - Install your chipset's driver package.
 +    * My example: ''apt install realtek-rtl88xxau-dkms''
 +  - After a successful installation of the package, power down the VM.
 +  - Remove the USB adapter (if connected), power up the VM, update and upgrade to make sure it works.
 +    *  ''apt update'' and then ''apt full-upgrade''
 +  - For some reason, some folks needed to do a key addition to get the upgrade to work (mine worked fine without it). Also, : 
 +<code>
 +apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
 +systemctl restart network-manager
 +</code>
 +  - Connect your USB wireless adapter. Check in Devices... USB... to make sure it's there. Check ''lsusb'' in terminal.
 +  - Check to see if the adapter was recognized by the O/S (mine worked, got a wlan0):
 +    * ''ifconfig'' or ''iwconfig'' or ''ip a''
  
 ---- ----
  
hack_wireless_setup.1587236207.txt.gz · Last modified: by gman