公共wifi做家用_如何在公共網絡上獲得免費的wifi

公共wifi做家用

by Kyle McDonald

凱爾·麥克唐納(Kyle McDonald)

如何在公共網絡上獲得免費的wifi (How to get free wifi on public networks)

This short tutorial describes a few methods for gaining access to the internet, a basic human right, from public wireless networks.

本簡短的教程介紹了幾種從公共無線網絡訪問Internet( 一項基本人權)的方法 。

This tutorial has been tested on Mac, should work on Linux, and hasn’t been tested on Windows.

本教程已在Mac上進行了測試,應在Linux上運行,并且尚未在Windows上進行測試。

制備 (Preparation)

Make sure you do this step before you are stuck without Internet access.

確保無法訪問Internet 之前就執行此步驟。

  1. Install Python pip.

    安裝Python pip 。

  2. Make a copy of this repository and install dependencies for the script we will be using:

    復制此存儲庫并為將要使用的腳本安裝依賴項:

git clone https://github.com/kylemcdonald/FreeWificd FreeWifi && pip install -r requirements.txt

如何獲得更多時間 (How to get additional time)

If you had free internet access but your time has run out, the first thing to try is open an incognito/private window. Here are instructions for a few browsers:

如果您可以免費上網,但時間用完了,那么第一件事就是打開隱身/私人窗口。 以下是一些瀏覽器的說明:

  • Chrome (mobile and desktop)

    Chrome (移動和臺式機)

  • Safari for iOS

    適用于iOS的Safari

  • Safari for Mac

    Mac版Safari

  • Microsoft Edge

    微軟Edge

An incognito/private window will temporarily clear any cookies that may have been used for tracking how much time you spent online, making you look like a “new user” and allowing you to log into the wireless portal again.

隱身/私人窗口將暫時清除可能用于跟蹤您在網上花費了多少時間的所有cookie,使您看起來像“新用戶”,并允許您再次登錄無線門戶。

Unfortunately, most systems track MAC addresses instead of cookies. A MAC address is a unique identifier assigned to every network interface. This means you need to get a new MAC address to get additional time. Fortunately, MAC addresses can be changed in software, without swapping the hardware. The spoof-mac command line utility makes this easy by entering sudo spoof-mac randomize Wi-Fi. If the command fails to run, try entering spoof-mac list --wifi to check what the name of your wireless device is first, and use that manually. After randomizing your MAC, try logging into the wireless portal again. When you're done using the Internet, run sudo spoof-mac reset Wi-Fi to reset your MAC address.

不幸的是,大多數系統跟蹤MAC地址而不是cookie。 MAC地址是分配給每個網絡接口的唯一標識符。 這意味著您需要獲取一個新的MAC地址以獲取更多時間。 幸運的是,無需更改硬件即可在軟件中更改MAC地址。 spoof-mac命令行實用程序通過輸入sudo spoof-mac randomize Wi-Fi使此操作變得容易。 如果命令運行失敗,請嘗試輸入spoof-mac list --wifi以首先檢查無線設備的名稱,然后手動使用該名稱。 隨機分配MAC之后,嘗試再次登錄無線門戶。 使用完互聯網后,請運行sudo spoof-mac reset Wi-Fi以重置您的MAC地址。

Note that MAC address spoofing may be interpreted as an illegal activity depending on why you do it. In some cases it is certainly not illegal: recent mobile operating systems like iOS 8+ and Android 6+ automatically randomize their MAC address when searching for wireless networks to avoid being tracked. But when Aaron Swartz liberated JSTOR, MAC address spoofing was claimed as a signal of intention to commit a crime.

請注意,MAC地址欺騙可能會被解釋為非法活動,具體取決于您執行此操作的原因。 在某些情況下,這當然不是違法的:iOS 8+和Android 6+等最新的移動操作系統在搜索無線網絡時會自動隨機分配其MAC地址,以避免被跟蹤。 但是,當亞倫·斯沃茨(Aaron Swartz)解放JSTOR時 ,MAC地址欺騙被聲稱是意圖犯罪的信號。

如何獲得免費使用權 (How to get free access)

If the network is open, but you can’t get access for some reason, you can also try spoofing the MAC address of a device that is already using the network. To the router, your device and the other device will look like one device. This can cause some minor problems if they interrupt each other, but for light browsing it usually works out fine.

如果網絡是開放的,但由于某種原因而無法訪問,則還可以嘗試欺騙已經在使用網絡的設備的MAC地址。 對于路由器,您的設備和另一臺設備看起來就像一個設備。 如果它們互相干擾,可能會引起一些小問題,但是對于輕度瀏覽來說,通常情況下是可以的。

To find the MAC addresses of other devices using the network, first you need to connect to the network. You don’t need to have Internet access, just a connection. First, on Mac OS run the command sudo chmod o+r /dev/bpf* once to make sure you can sniff wireless data (you need to do this again if you restart your computer).

要查找使用網絡的其他設備的MAC地址,首先需要連接到網絡。 您無需連接互聯網,只需連接即可。 首先,在Mac OS上,運行一次命令sudo chmod o+r /dev/bpf* ,以確保可以嗅探無線數據(如果重新啟動計算機,則需要再次執行此操作)。

Then in your terminal, run the command python wifi-users.py. You should see a progress bar immediately:

然后在您的終端中,運行命令python wifi-users.py 。 您應該立即看到一個進度條:

SSID: nonoinflightGateway: 00:e0:4b:22:96:d9100%|██████████████████████████| 1000/1000 [00:46<00:00, 21.46it/s]Total of 5 user(s):27:35:96:a8:66:7f   6359 bytes36:fe:83:9c:35:eb   9605 bytes65:01:3c:cc:20:e8   17306 bytes8c:6f:11:2c:f0:ee   20515 bytes0a:4f:b2:b8:e8:56   71541 bytes

If there isn’t much traffic on the network, it might take longer. If it’s taking too long, type CTRL-C to cancel the sniffing and print whatever results are available. Finally, we want to spoof one of these MAC addresses. For example, in this case we would enter sudo spoof-mac set 0a:4f:b2:b8:e8:56 Wi-Fi to try spoofing the address with the most traffic (they probably have a connection).

如果網絡上沒有太多流量,則可能需要更長的時間。 如果花費的時間太長,請鍵入CTRL-C來取消嗅探并打印任何可用的結果。 最后,我們要欺騙這些MAC地址之一。 例如,在這種情況下,我們將輸入sudo spoof-mac set 0a:4f:b2:b8:e8:56 Wi-Fi嘗試對流量最多的地址(它們可能有連接)進行欺騙。

After running this command, try to access the Internet. If you don't have a connection, try the next MAC in the list. If your Internet connection drops out while using this MAC address, try disconnecting and reconnecting to the wireless network. Note that the original user of the MAC you copied may experience these same connection drop outs if you are both actively using the network.

運行此命令后,嘗試訪問Internet。 如果沒有連接,請嘗試列表中的下一個MAC。 如果使用此MAC地址時Internet連接斷開,請嘗試斷開連接并重新連接到無線網絡。 請注意,如果您都同時使用網絡,則復制的MAC的原始用戶可能會遇到相同的連接中斷。

這個怎么運作 (How it works)

wifi-users.py uses tcpdump to collect wireless packets. Then we look through these packets for any hints of the MAC address (BSSID) of our wireless network. Finally, we look for data packets that mention a user's MAC as well as the network BSSID (or the network gateway), and take note of that MAC using some amount of data. Then we sort the user's MACs by the total amount of data and print them out.

wifi-users.py使用tcpdump收集無線數據包。 然后,我們在這些數據包中查找無線網絡的MAC地址(BSSID)的任何提示。 最后,我們尋找提及用戶MAC以及網絡BSSID(或網絡網關)的數據包,并使用一些數據記錄該MAC。 然后,我們根據數據總量對用戶的MAC進行排序并打印出來。

Instead of sniffing wireless traffic, in some situations you can also use the command arp -a to get a list of MAC addresses of devices on the wireless network. Then you can either use spoof-mac to copy the address, or use ifconfig directly on Linux and OSX. For the specifics of using ifconfig look at the implementations of set_interface_mac inside SpoofMac's interfaces.py.

在某些情況下,您也可以使用命令arp -a來獲取無線網絡上設備的MAC地址列表,而不是嗅探無線流量。 然后,您可以使用spoof-mac復制地址,或直接在Linux和OSX上使用ifconfig 。 對于使用的具體ifconfig看的實現set_interface_mac內SpoofMac的interfaces.py 。

This post is dedicated to Lauren McCarthy, who has taught me the most about the art of getting a good deal.

這篇文章是獻給勞倫·麥卡錫(Lauren McCarthy)的,他教會了我有關如何達成一筆交易的最大知識。

翻譯自: https://www.freecodecamp.org/news/free-wifi-on-public-networks-daf716cebc80/

公共wifi做家用

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/395616.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/395616.shtml
英文地址,請注明出處:http://en.pswp.cn/news/395616.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

python學習之旅

一、入門 1.Python 面向對象編程 2.jquery入門 3.HTMLCSS基礎入門 4.Javascript初步 5.Python語言編程基礎 二、初級階段 1.Git 與 GitHub 2.Python 爬蟲基礎 3.django進階 4.django項目部署 5.ajax入門 6.django基礎 7.Mysql基礎 三、中級階段 1.Linux基礎 2.Python :socket a…

c/c++ 重載運算符 函數調用運算符

重載運算符 函數調用運算符 把一個類的對象a&#xff0c;當成函數來使用&#xff0c;比如a()&#xff0c;所以需要重載operator()方法。重載了函數調用運算符的類的對象&#xff0c;就是函數對象了。 還有什么是函數對象呢&#xff1f;&#xff1f;&#xff1f; lambda是函數對…

matlab 萬能,matlab 萬能實用的線性曲線擬合方法

在科學計算和工程應用中&#xff0c;經常會遇到需要擬合一系列的離散數據&#xff0c;最近找了很多相關的文章方法&#xff0c;在這里進行總結一下其中最完整、幾乎能解決所有離散參數線性擬合的方法第一步&#xff1a;得到散點數據根據你的實際問題得到一系列的散點例如&#…

socket websocket

1.websocket客戶端 websocket允許通過JavaScript建立與遠程服務器的連接&#xff0c;從而實現客戶端與服務器間雙向的通信。在websocket中有兩個方法&#xff1a;      1、send() 向遠程服務器發送數據    2、close() 關閉該websocket鏈接  websocket同時還定義了幾…

javascript原型_JavaScript的原型:古怪,但這是它的工作原理

javascript原型by Pranav Jindal通過普拉納夫金達爾 JavaScript的原型&#xff1a;古怪&#xff0c;但這是它的工作原理 (Prototype in JavaScript: it’s quirky, but here’s how it works) The following four lines are enough to confuse most JavaScript developers:以下…

mysql函數之SUBSTRING_INDEX(str,/,-1)

SUBSTRING_INDEX的用法&#xff1a; ?SUBSTRING_INDEX(str,delim,count) 在定界符 delim 以及count 出現前&#xff0c;從字符串str返回自字符串。若count為正值,則返回最終定界符(從左邊開始) 若為-1則是從后往前截取 SELECT substring_index(Hn_P00001, P, -1) -- 結果是…

mysql8.0主從配置,MySQL 8.0主從服務器(Master-Slave)配置

一、介紹MySQL 主從復制的方式有多種&#xff0c;本文主要演示基于基于日志(binlog)的主從復制方式。MySQL 主從復制(也稱 A/B 復制) 的原理&#xff1a;Master將數據改變記錄到二進制日志(binary log)中&#xff0c;也就是配置文件log-bin指定的文件&#xff0c; 這些記錄叫做…

第十二章 Shell腳本編寫及常見面試題(三)

本章目錄&#xff1a;12.21 FTP下載文件#!/bin/bash if [ $# -ne 1 ]; thenecho "Usage: $0 filename" fi dir$(dirname $1) file$(basename $1) ftp -n -v << EOF # -n 自動登錄 open 192.168.1.10 user admin adminpass binary # 設置ftp傳輸模式為二進制…

亞馬遜面試有幾輪_經過幾個月的Google面試準備,我被亞馬遜錄用

亞馬遜面試有幾輪by Googley as Heck由Googley飾演Heck 經過幾個月的Google面試準備&#xff0c;我被亞馬遜錄用 (After months of preparing for the Google interview, I got hired by Amazon) As you may know, the last 11 months have been very difficult for me. As a …

省選前的考試記錄

日拱一卒功不唐捐 什么沙雕玩意兒 2018.12.24 T1 如果對 \(A\) 數組求出來高度遞減的單調棧的話&#xff0c;會發現只有單調棧里的元素是有用的。因為如果有 \(A[i]<A[j] \And i<j\)&#xff0c;那電梯就可以在帶 \(j\) 上樓的時候順便把 \(i\) 帶上并不會影響結果。所以…

軟件工程課設-----日程管理系統

這學期進行了軟件工程課設&#xff0c;題目是&#xff1a;日程管理系統&#xff08;JavaWeb&#xff09;&#xff0c;為期3周。這三周只有前兩天是企業老師講解是企業老師講解相關的基礎知識(老師講的水平實在是不可恭維。。。。。。)。 多的不多說。直接進行對相關項目的介紹。…

matlab中的神經網絡訓練,MATLAB中的神經網絡訓練

我試圖向前饋送反向傳播&#xff0c;但是在網絡訓練之后&#xff0c;當模擬和打印模擬輸出時&#xff0c;我看不到任何靠近目標的值&#xff0c;但它只是一個數字。代碼如下。什么是錯&#xff0c;什么是問題&#xff1f;前饋反向傳播&#xff1a;>> load(E:/Inputdata.t…

Spring For All 頂級Spring綜合社區服務平臺

Spring For All 玩最純粹的技術&#xff01;做最專業的 Spring 民間組織~ 歡迎加入&#xff1a;http://spring4all.com/ image.png

chromium 桌面_如何使用Chromium和PyInstaller將Web應用程序轉換為桌面應用程序

chromium 桌面Packaging and distributing your app sounds simple in principle. It’s just software. But in practice, it’s quite challenging.打包和分發應用程序在原理上聽起來很簡單。 這只是軟件。 但是在實踐中&#xff0c;這非常具有挑戰性。 I’ve been working …

PHP面向對象(三)

一、繼承概念 繼承性也是面向對象程序設計中的重要特性之一。它是指建立一個新的派生類&#xff0c;從一個先前定義的類中繼承數據和函數&#xff0c;而且可以重新定義新的數據類型和函數&#xff0c;從而建立累的層次或等級關系。 格式&#xff1a;     [修飾符] class 子…

python數據結構的應用場景不包括,Python 數據結構學習

Python 數據結構學習列表list.append(x)在列表的末尾添加一個元素。相當于 a[len(a):] [x] 。list.extend(iterable)使用可迭代對象中的所有元素來擴展列表。相當于 a[len(a):] iterable 。list.insert(i, x)在給定的位置插入一個元素。第一個參數是要插入的元素的索引&#…

[Jinkey 原創]震驚!iOS 系統居然自帶懸浮窗口調試工具

原文鏈接 : 震驚&#xff01;iOS 系統居然自帶懸浮窗口調試工具 —— Jinkey 原創原文作者 : Jinkey1 背景 英文原文&#xff1a;http://ryanipete.com/blog/ios/swift/objective-c/uidebugginginformationoverlay/ 我寫得這個并不是翻譯而是用自己的理解重新表述這個功能&…

盲人編程_盲人如何編碼

盲人編程About one out of every 200 software developers is blind. We know this because Stack Overflow asked 64,000 developers about this a few months ago.每200名軟件開發人員中大約有1名是盲人。 我們之所以知道這一點&#xff0c;是因為幾個月前 Stack Overflow 向…

hadoop環境搭建筆記

一、配置Linux &#xff08;1&#xff09;cat /etc/networks &#xff08;2&#xff09;cat /etc/sysconfig/network &#xff08;3&#xff09;vi /etc/udev/rules.d/70-persistent-net.rules eth1 改為eth0 &#xff08;4&#xff09;vi /etc/sysconfig/network-scripts/ifc…