BackTrack - Wireless network interface with command line
Hello,
I have some Difficulty with connecting a wireless interface with command line and would like your opinion on how to do it. I avoid going through the graphical clients. So are there any commands that can help me to connect through the wireless network. Any help regarding this is appreciated. Thank you for your help.
Re: BackTrack - Wireless network interface with command line
Hello,
Even I wanted to do this, I followed a few commands and it worked for me.
This is what I did
I change my MAC address which is a authorized:
Code:
ifconfig wlan0 hw ether XX: XX: XX: XX: XX: XX
I set my card on the desired :
Code:
iwconfig ath0 ap XX: XX: XX: XX: XX: XX
The key is set to
Code:
iwconfig ath0 key 1a2b3c4d5e
And I run the application as
Re: BackTrack - Wireless network interface with command line
Hello,
You can use this command
Code:
# / Bin / sh modprobe-r pcspkr AirDrives kmix-ng reload iwconfig wlan1 channel ......
You will get a long result when you will fire the command in the terminal. I use this to autostart but there is no mac filtering, post if you have an ip assigned with wireless assistant I can see why you would have no one in client side.
Re: BackTrack - Wireless network interface with command line
Hello,
It does not work. Not dhcpcd completes without error code after an eternity, and do not ath0 assigned IP. I just recheck the association: it works impeccable. If you worry for the MAC is a atheros madwifi so with AC drives.
This is what I tried in the command line
Code:
bt ~ # aireplay-ng - fakeauth was 0-8B: 86: B7: 1D: A1: D0 ATH1 No source MAC (-h) sp
Any more help regarding this is appreciated. Thanks for your reply.
Re: BackTrack - Wireless network interface with command line
Hello,
You can try the following command
Code:
# / Bin / sh modprobe-r pcspkr AirDrives kmix-ng reload iwconfig wlan1 channel .........
You will surely get a long list of details of your wireless network card and your computer network configuration.
And for key you can do this
Code:
ifconfig wlan1 down; iwconfig wlan1 mode managed; ifconfig wlan1 iwconfig ..........
Again you will get a long list of information about the network configuration. See if this works else post back with the error you are getting.
Re: BackTrack - Wireless network interface with command line
Hey,
Thank you for the reply but unfortunately, I do not want to use the router. Basically if I make a pattern I want works commme this without buying additional equipment.
Schematic:
PCn 1 network card 1: ------------- 10.0.0.1 to 10.0.0.x network
PCn 1 network card 2: ------------- 20.0.0.1 to 20.0.0.x network
as stated above, on my pc I have two network card so I want to make a bridge network. what is possible, because my cards are not on the same sub network?
Re: BackTrack - Wireless network interface with command line
Hello,
See if you can configure this file
ctrl_interface=/var/run/wpa_supplicant.conf
Code:
network={
ssid="epfl"
key_mgmt=WPA-EAP
proto=WPA2
eap=TTLS
identity="domain name"
password="smpass"
anonymous_identity="domain name with wireless network"
phase2="auth=PAP"
ca_cert="/etc/ssl/certs/name of the file.pem"
subject_match="domain name"
priority=8
}
Re: BackTrack - Wireless network interface with command line
It's just more complicated, but must first install wpa_supplicant. If only the wireless connection is possible and that the package is missing, mirror the approach proposed in the first step to get wpasupplicant and its dependencies sudo aptitude install wpasupplicant
is then corrected / etc / network / interfaces:
Code:
sudo nano / etc / network / interfaces
And it changes the section corresponding to the wireless card ( eth1 here):
Code:
auto eth1 iface eth1 inet dhcp wpa-conf / etc / wpa_supplicant /
wpa_supplicant.conf
We save it and quit (ctrl x). We must now configure wpasupplicant:
Code:
sudo nano / etc / wpa_supplicant / wpa_supplicant.conf