Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This is a log of how to connect to McDonalds' Wi-Fi using linux CLI
$ iwlist scanning (api-for-admin|✚3
enp2s0 Interface doesn't support scanning.
bond0 Interface doesn't support scanning.
lo Interface doesn't support scanning.
wlp3s0 Scan completed :
Cell 01 - Address: 14:CC:20:4D:5E:96
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=60/70 Signal level=-50 dBm
Encryption key:off
ESSID:"McDonalds"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=00000000edb4cc78
Extra: Last beacon: 30350ms ago
IE: Unknown: 00094D63446F6E616C6473
IE: Unknown: 010882848B960C121824
IE: Unknown: 03010B
IE: Unknown: 0706554120010D14
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: Unknown: 2D1AEE1103FFFF000000000000000000000000000000000000000000
IE: Unknown: 331AEE1103FFFF000000000000000000000000000000000000000000
IE: Unknown: 3D160B071500000000000000000000000000000000000000
IE: Unknown: 34160B071500000000000000000000000000000000000000
IE: Unknown: DD180050F2020101010003A4000027A4000042435E0062322F00
IE: Unknown: DD0900037F01010000FF7F
$ sudo systemctl stop NetworkManager (api-for-admin|✚3
$ sudo iwconfig wlp3s0 essid "McDonalds" (api-for-admin|✚3
$ sudo dhclient -w wlp3s0 -v (api-for-admin|✚3
Internet Systems Consortium DHCP Client 4.3.3 Gentoo-r1
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlp3s0/ac:7b:a1:70:e0:f4
Sending on LPF/wlp3s0/ac:7b:a1:70:e0:f4
Sending on Socket/fallback
DHCPDISCOVER on wlp3s0 to 255.255.255.255 port 67 interval 5
DHCPREQUEST on wlp3s0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.4.1
DHCPACK from 192.168.4.1
Failed to try-restart nscd.service: Unit nscd.service failed to load: No such file or directory.
bound to 192.168.4.179 -- renewal in 598 seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment