Re: [Tails-dev] [RFC] Design (and prototype) for MAC spoofin…

Nachricht löschen

Nachricht beantworten
Autor: anonym
Datum:  
To: The Tails public development discussion list
Betreff: Re: [Tails-dev] [RFC] Design (and prototype) for MAC spoofing in Tails
26/10/13 01:01, anonym wrote:
> I've also pushed a Tails Greeter branch
> feature/spoof-mac-with-block-network (branched from feature/spoof-mac),
> which makes use of both Tails branches feature/spoof-mac and
> feature/block-network. So, if you build a Tails with both those
> branches, and use a T-G built from the one branch, then you get my
> vision of how this all could work. I don't have the time now, but I may
> prepare a feature/spoof-mac-experimental with all this (including a
> packaged .deb in its APT suite) to make things easier for reviewers.


Actually it all works pretty well, so I pushed it all into experimental,
including a new T-G .deb in the APT suite. Things to look for:

* That no network devices are present before T-G login.
* That they are present after T-G login,
* That the MAC spoofing feature is applied according to the option.
* That the "blocked network detector" runs if and only if MAC spoofing
is applied. If it's inconvenient to reconfigure your AP to block MAC
addresses I've attached logs that you can simulate certain scenarios
with (just `cat $file >> /var/log/syslog` as root).

Please let me know what you think!

Cheers!

Oct 24 15:41:42 localhost NetworkManager[6267]: user_connection_updated_cb: assertion `old_connection != NULL' failed
Oct 24 15:41:42 localhost NetworkManager[6267]: <info> Activation (wlan0) starting connection 'Auto some_ssid'
Oct 24 15:41:42 localhost NetworkManager[6267]: <info> (wlan0): device state change: 3 -> 4 (reason 0)
Oct 24 15:41:42 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 24 15:41:42 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Oct 24 15:41:42 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Oct 24 15:41:42 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Oct 24 15:41:42 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Oct 24 15:41:42 localhost NetworkManager[6267]: <info> (wlan0): device state change: 4 -> 5 (reason 0)
Oct 24 15:41:42 localhost NetworkManager[6267]: <info> Activation (wlan0/wireless): access point 'Auto some_ssid' has security, but secrets are required.
Oct 24 15:41:42 localhost NetworkManager[6267]: <info> (wlan0): device state change: 5 -> 6 (reason 0)
Oct 24 15:41:42 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> (wlan0): device state change: 6 -> 4 (reason 0)
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> (wlan0): device state change: 4 -> 5 (reason 0)
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> Activation (wlan0/wireless): connection 'Auto some_ssid' has security, and secrets exist. No new secrets needed.
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> Config: added 'ssid' value 'some_ssid'
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> Config: added 'scan_ssid' value '1'
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> Config: added 'psk' value '<omitted>'
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> Config: set interface ap_scan to 1
Oct 24 15:41:47 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 15:41:48 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 15:41:48 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> associated
Oct 24 15:41:48 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associated -> 4-way handshake
Oct 24 15:41:51 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: 4-way handshake -> disconnected
Oct 24 15:41:51 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 15:41:52 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 15:41:52 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> associated
Oct 24 15:41:52 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associated -> 4-way handshake
Oct 24 15:41:55 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: 4-way handshake -> disconnected
Oct 24 15:41:55 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 15:41:55 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 15:41:56 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> associated
Oct 24 15:41:56 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associated -> 4-way handshake
Oct 24 15:41:59 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: 4-way handshake -> disconnected
Oct 24 15:41:59 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 15:42:00 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 15:42:00 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> associated
Oct 24 15:42:00 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associated -> 4-way handshake
Oct 24 15:42:03 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: 4-way handshake -> disconnected
Oct 24 15:42:03 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 15:42:03 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 15:42:03 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> associated
Oct 24 15:42:03 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associated -> 4-way handshake
Oct 24 15:42:06 localhost NetworkManager[6267]: <warn> (wlan0): link timed out.
Oct 24 15:42:07 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: 4-way handshake -> disconnected
Oct 24 15:42:07 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 15:42:07 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 15:42:07 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> associated
Oct 24 15:42:07 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associated -> 4-way handshake
Oct 24 15:42:10 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: 4-way handshake -> disconnected
Oct 24 15:42:11 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 15:42:11 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 15:42:11 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> associated
Oct 24 15:42:11 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associated -> 4-way handshake
Oct 24 15:42:13 localhost NetworkManager[6267]: <warn> Activation (wlan0/wireless): association took too long.
Oct 24 15:42:13 localhost NetworkManager[6267]: <info> (wlan0): device state change: 5 -> 6 (reason 0)
Oct 24 15:42:13 localhost NetworkManager[6267]: <warn> Activation (wlan0/wireless): asking for new secrets
Oct 24 15:42:13 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: 4-way handshake -> disconnected
Oct 24 15:45:42 localhost NetworkManager[6267]: user_connection_updated_cb: assertion `old_connection != NULL' failed
Oct 24 15:45:42 localhost NetworkManager[6267]: <info> Activation (wlan0) starting connection 'Auto some_ssid'
Oct 24 15:45:42 localhost NetworkManager[6267]: <info> (wlan0): device state change: 3 -> 4 (reason 0)
Oct 24 15:45:42 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 24 15:45:42 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Oct 24 15:45:42 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Oct 24 15:45:42 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Oct 24 15:45:42 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Oct 24 15:45:42 localhost NetworkManager[6267]: <info> (wlan0): device state change: 4 -> 5 (reason 0)
Oct 24 15:45:42 localhost NetworkManager[6267]: <info> Activation (wlan0/wireless): access point 'Auto some_ssid' has security, but secrets are required.
Oct 24 15:45:42 localhost NetworkManager[6267]: <info> (wlan0): device state change: 5 -> 6 (reason 0)
Oct 24 15:45:42 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> (wlan0): device state change: 6 -> 4 (reason 0)
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> (wlan0): device state change: 4 -> 5 (reason 0)
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> Activation (wlan0/wireless): connection 'Auto some_ssid' has security, and secrets exist. No new secrets needed.
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> Config: added 'ssid' value 'some_ssid'
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> Config: added 'scan_ssid' value '1'
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> Config: added 'psk' value '<omitted>'
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> Config: set interface ap_scan to 1
Oct 24 15:45:50 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 15:45:51 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 15:45:56 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> disconnected
Oct 24 15:45:56 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 15:45:57 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 15:46:02 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> disconnected
Oct 24 15:46:02 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 15:46:02 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 15:46:07 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> disconnected
Oct 24 15:46:07 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 15:46:08 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 15:46:13 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> disconnected
Oct 24 15:46:13 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 15:46:14 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 15:46:16 localhost NetworkManager[6267]: <warn> Activation (wlan0/wireless): association took too long.
Oct 24 15:46:16 localhost NetworkManager[6267]: <info> (wlan0): device state change: 5 -> 6 (reason 0)
Oct 24 15:46:16 localhost NetworkManager[6267]: <warn> Activation (wlan0/wireless): asking for new secrets
Oct 24 15:46:16 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> disconnected
Oct 24 17:01:37 localhost NetworkManager[6267]: user_connection_updated_cb: assertion `old_connection != NULL' failed
Oct 24 17:01:37 localhost NetworkManager[6267]: <info> Activation (wlan0) starting connection 'Auto some_ssid'
Oct 24 17:01:37 localhost NetworkManager[6267]: <info> (wlan0): device state change: 3 -> 4 (reason 0)
Oct 24 17:01:37 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 24 17:01:37 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Oct 24 17:01:37 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Oct 24 17:01:37 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Oct 24 17:01:37 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Oct 24 17:01:37 localhost NetworkManager[6267]: <info> (wlan0): device state change: 4 -> 5 (reason 0)
Oct 24 17:01:37 localhost NetworkManager[6267]: <info> Activation (wlan0/wireless): access point 'Auto some_ssid' has security, but secrets are required.
Oct 24 17:01:37 localhost NetworkManager[6267]: <info> (wlan0): device state change: 5 -> 6 (reason 0)
Oct 24 17:01:37 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> (wlan0): device state change: 6 -> 4 (reason 0)
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> (wlan0): device state change: 4 -> 5 (reason 0)
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> Activation (wlan0/wireless): connection 'Auto some_ssid' has security, and secrets exist. No new secrets needed.
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> Config: added 'ssid' value 'some_ssid'
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> Config: added 'scan_ssid' value '1'
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> Config: added 'psk' value '<omitted>'
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> Config: set interface ap_scan to 1
Oct 24 17:01:52 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: disconnected -> scanning
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: scanning -> associating
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associating -> associated
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: associated -> 4-way handshake
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: 4-way handshake -> group handshake
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> (wlan0): supplicant connection state: group handshake -> completed
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful. Connected to wireless network 'some_ssid'.
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> (wlan0): device state change: 5 -> 7 (reason 0)
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> Activation (wlan0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> dhclient started with pid 7303
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
Oct 24 17:01:53 localhost NetworkManager[6267]: <info> (wlan0): DHCPv4 state changed nbi -> preinit
Oct 24 17:01:55 localhost NetworkManager[6267]: <info> (wlan0): DHCPv4 state changed preinit -> bound
Oct 24 17:01:55 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) scheduled...
Oct 24 17:01:55 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) started...
Oct 24 17:01:55 localhost NetworkManager[6267]: <info> address 192.168.1.103
Oct 24 17:01:55 localhost NetworkManager[6267]: <info> prefix 24 (255.255.255.0)
Oct 24 17:01:55 localhost NetworkManager[6267]: <info> gateway 192.168.1.1
Oct 24 17:01:55 localhost NetworkManager[6267]: <info> nameserver '192.168.1.1'
Oct 24 17:01:55 localhost NetworkManager[6267]: <info> domain name 'some_domain'
Oct 24 17:01:55 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) scheduled...
Oct 24 17:01:55 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) complete.
Oct 24 17:01:55 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) started...
Oct 24 17:01:56 localhost NetworkManager[6267]: <info> (wlan0): writing resolv.conf to /sbin/resolvconf
Oct 24 17:01:56 localhost NetworkManager[6267]: <info> (wlan0): device state change: 7 -> 8 (reason 0)
Oct 24 17:01:56 localhost NetworkManager[6267]: <info> (wlan0): writing resolv.conf to /sbin/resolvconf
Oct 24 17:01:56 localhost NetworkManager[6267]: <info> Policy set 'Auto some_ssid' (wlan0) as default for IPv4 routing and DNS.
Oct 24 17:01:56 localhost NetworkManager[6267]: <info> Activation (wlan0) successful, device activated.
Oct 24 17:01:56 localhost NetworkManager[6267]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.