Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #235972 > unrolled thread

Automating tasks on wifi association

Started byL L <rotgo54321@gmail.com>
First post2021-06-11 02:40 +0200
Last post2021-06-11 06:40 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  Automating tasks on wifi association L L <rotgo54321@gmail.com> - 2021-06-11 02:40 +0200
    Re: Automating tasks on wifi association Robbi Nespu <robbinespu@gmail.com> - 2021-06-11 03:10 +0200
    Re: Automating tasks on wifi association David Wright <deblis@lionunicorn.co.uk> - 2021-06-11 06:40 +0200

#235972 — Automating tasks on wifi association

FromL L <rotgo54321@gmail.com>
Date2021-06-11 02:40 +0200
SubjectAutomating tasks on wifi association
Message-ID<CoDnj-2SI-9@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

I'm writing a script that generates a randomized valid MAC address and
assigns it to the wireless card. It would be nice to make it run
automatically as part of connecting to an access point. What will I have to
edit to make this happen?

Luke

[toc] | [next] | [standalone]


#235973

FromRobbi Nespu <robbinespu@gmail.com>
Date2021-06-11 03:10 +0200
Message-ID<CoDQl-3ht-1@gated-at.bofh.it>
In reply to#235972
On 6/11/21 8:33 AM, L L wrote:
> I'm writing a script that generates a randomized valid MAC address and 
> assigns it to the wireless card. It would be nice to make it run 
> automatically as part of connecting to an access point. What will I have 
> to edit to make this happen?
> 
> Luke

somthing like this? [1]

[1] https://gist.github.com/zaneclaes/31ff645e303e1a6c9a86fc166216371d

-- 
Robbi Nespu <robbinespu AT SPAMFREE gmail DOT com>
D311 B5FF EEE6 0BE8 9C91 FA9E 0C81 FA30 3B3A 80BA
robbinespu.gitlab.io | mstdn.social/@robbinespu

[toc] | [prev] | [next] | [standalone]


#235976

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2021-06-11 06:40 +0200
Message-ID<CoH7z-5f5-5@gated-at.bofh.it>
In reply to#235972
On Thu 10 Jun 2021 at 17:33:53 (-0700), L L wrote:
> I'm writing a script that generates a randomized valid MAC address and
> assigns it to the wireless card. It would be nice to make it run
> automatically as part of connecting to an access point. What will I have to
> edit to make this happen?

For the MAC address itself, would macchanger help you?

   * set specific MAC address of a network interface
   * set the MAC randomly
   * set a MAC of another vendor
   * set another MAC of the same vendor
   * set a MAC of the same kind (eg: wireless card)
   * display a vendor MAC list (today, 6200 items) to choose from

As for making the connection, most packages supply locations
for placing your scripts, like /etc/network/if-*.d/ and
/etc/wicd/scripts/p*connect/ and so on.

Cheers,
David.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web