Tuesday, September 18, 2012

Connect hotspot lewat terminal




selamat malam semua nya ... ketemu lagi dengan saya  .. :)
di sini saya akan membahas cara connetc ke hotspot lewat terminal  .. langsung saja yah hehehe :)
di sini saya menggunakan Linux Slackware 13.37 ... 

 pertama buka terminal ... aktifkan wlan0 nya ...

bash-4.1#ifconfig wlan0 up 

bash-4.1#ifconfig

kalau udah up baru kita scan ...



bash-4.1# iwlist scan
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

wlan0     Scan completed :
          Cell 01 - Address: 00:0F:66:75:51:01
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=29/70  Signal level=-81 dBm 
                    Encryption key:off
                    ESSID:""
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Mode:Master
                    Extra:tsf=000000b8b3052183
                    Extra: Last beacon: 1106ms ago
                    IE: Unknown: 000400000000
                    IE: Unknown: 010482848B96
                    IE: Unknown: 030101
                    IE: Unknown: 050400030000
                    IE: Unknown: DD050010180101
          Cell 02 - Address: 00:15:6D:F4:D9:98
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=22/70  Signal level=-88 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=00000024b4199181
                    Extra: Last beacon: 1091ms ago
                    IE: Unknown: 00096D63646F6E616C6473
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030101
                    IE: Unknown: 050400010000
                    IE: Unknown: 2A0102
                    IE: Unknown: 32043048606C
                    IE: Unknown: DD26000C42000000011E0000000000660203FF0F55424E5400000000000000000000000000000000
          Cell 03 - Address: 00:25:9C:AE:74:71
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=27/70  Signal level=-83 dBm 
                    Encryption key:off
                    ESSID:""
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000001a17aa243a7
                    Extra: Last beacon: 1157ms ago
                    IE: Unknown: 000400000000
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030101
                    IE: Unknown: 050402030000
                    IE: Unknown: 2A0106
                    IE: Unknown: 2F0106
                    IE: Unknown: 32040C121860
                    IE: Unknown: DD06001018020104
          Cell 04 - Address: 00:40:96:48:BC:8F
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=25/70  Signal level=-85 dBm 
                    Encryption key:off
                    ESSID:""
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Mode:Master
                    Extra:tsf=000001a1783aa21e
                    Extra: Last beacon: 1138ms ago
                    IE: Unknown: 000400000000
                    IE: Unknown: 010482848B96
                    IE: Unknown: 030101
                    IE: Unknown: 050400020000
                    IE: Unknown: 851E00004C0D0700FF030100617032340000000000000000000000000000000C
          Cell 05 - Address: 00:27:22:4C:03:F4
                    Channel:7
                    Frequency:2.442 GHz (Channel 7)
                    Quality=70/70  Signal level=-36 dBm 
                    Encryption key:off
                    ESSID:"KFC PDK.GEDE PARK"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 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=0000000f854da181
                    Extra: Last beacon: 707ms ago
                    IE: Unknown: 00114B46432050444B2E47454445205041524B
                    IE: Unknown: 010882848B0C12961824
                    IE: Unknown: 030107
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: Unknown: DD180050F2020101820003A4000027A4000042435E0062322F00
                    IE: Unknown: DD26000C42000000011E0000000000660203FF0F4150204241574148000000000000000000000000
          Cell 06 - Address: 98:FC:11:B7:A5:7E
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=34/70  Signal level=-76 dBm 
                    Encryption key:on
                    ESSID:"PS-Bakery"
                    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





bash-4.1# iwconfig wlan0  essid "KFC PDK.GEDE PARK"

bash-4.1# dhclient wlan0

bash-4.1# ifconfig 

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:240 (240.0 b)  TX bytes:240 (240.0 b)


wlan0     Link encap:Ethernet  HWaddr 00:25:D3:88:00:A5 
          inet addr:192.168.10.57  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::225:d3ff:fe88:a5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:1 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1472 (1.4 Kb)  TX bytes:1312 (1.2 Kb)



bash-4.1# ping www.facebook.com
PING www.c10r.facebook.com (66.220.147.94) 56(84) bytes of data.
64 bytes from www-slb-11-04-snc4.facebook.com (66.220.147.94): icmp_req=1 ttl=232 time=286 ms
64 bytes from www-slb-11-04-snc4.facebook.com (66.220.147.94): icmp_req=2 ttl=232 time=306 ms
64 bytes from www-slb-11-04-snc4.facebook.com (66.220.147.94): icmp_req=3 ttl=232 time=227 ms
^Z



[2]+  Stopped                 ping www.facebook.com
bash-4.1# nano /etc/resolv.conf
bash-4.1# ping www.facebook.com
PING www.c10r.facebook.com (66.220.147.94) 56(84) bytes of data.
64 bytes from www-slb-11-04-snc4.facebook.com (66.220.147.94): icmp_req=1 ttl=232 time=203 ms
64 bytes from www-slb-11-04-snc4.facebook.com (66.220.147.94): icmp_req=2 ttl=232 time=264 ms
64 bytes from www-slb-11-04-snc4.facebook.com (66.220.147.94): icmp_req=3 ttl=232 time=288 ms
64 bytes from www-slb-11-04-snc4.facebook.com (66.220.147.94): icmp_req=4 ttl=232 time=312 ms
64 bytes from www-slb-11-04-snc4.facebook.com (66.220.147.94): icmp_req=5 ttl=232 time=235 ms
^Z
[3]+  Stopped                 ping www.facebook.com
bash-4.1#
 



selamat mencoba :)



No comments:

Post a Comment