9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] sysinfo: redact wpapsk
@ 2021-04-14 20:20 umbraticus
  2021-04-14 20:53 ` Romano
  2021-04-14 21:20 ` fulton
  0 siblings, 2 replies; 5+ messages in thread
From: umbraticus @ 2021-04-14 20:20 UTC (permalink / raw)
  To: 9front

Some unwitting soul recently revealed a password in a public place.
Perhaps the following?...

diff -r cc26fdf57bb2 rc/bin/sysinfo
--- a/rc/bin/sysinfo	Sat Mar 13 14:57:53 2021 +0100
+++ b/rc/bin/sysinfo	Thu Apr 15 08:17:26 2021 +1200
@@ -6,8 +6,8 @@
 	echo
 }
 fn print{
-	echo '% cd ''#ec''; for(i in *){echo $i ''='' `{cat $i}}'
-	cd '#ec'; for(i in *){echo $i '=' `{cat $i}}
+	echo '% cd ''#ec''; for(i in `{walk | grep -v wpapsk}){echo $i ''='' `{cat $i}}'
+	cd '#ec'; for(i in `{walk | grep -v wpapsk}){echo $i '=' `{cat $i}}
 	echo
 	logprog cat '#P/archctl'
 	logprog cat '#P/irqalloc'

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9front] sysinfo: redact wpapsk
  2021-04-14 20:20 [9front] sysinfo: redact wpapsk umbraticus
@ 2021-04-14 20:53 ` Romano
  2021-04-15  7:54   ` Nick Owens
  2021-04-14 21:20 ` fulton
  1 sibling, 1 reply; 5+ messages in thread
From: Romano @ 2021-04-14 20:53 UTC (permalink / raw)
  To: 9front, umbraticus

Wouldn't '#r/nvram' also be better left not shown as well, since it is usually written with (sectore and login) keys?

On April 14, 2021 8:20:27 PM UTC, umbraticus@prosimetrum.com wrote:
>Some unwitting soul recently revealed a password in a public place.
>Perhaps the following?...
>
>diff -r cc26fdf57bb2 rc/bin/sysinfo
>--- a/rc/bin/sysinfo	Sat Mar 13 14:57:53 2021 +0100
>+++ b/rc/bin/sysinfo	Thu Apr 15 08:17:26 2021 +1200
>@@ -6,8 +6,8 @@
> 	echo
> }
> fn print{
>-	echo '% cd ''#ec''; for(i in *){echo $i ''='' `{cat $i}}'
>-	cd '#ec'; for(i in *){echo $i '=' `{cat $i}}
>+	echo '% cd ''#ec''; for(i in `{walk | grep -v wpapsk}){echo $i ''=''
>`{cat $i}}'
>+	cd '#ec'; for(i in `{walk | grep -v wpapsk}){echo $i '=' `{cat $i}}
> 	echo
> 	logprog cat '#P/archctl'
> 	logprog cat '#P/irqalloc'

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9front] sysinfo: redact wpapsk
  2021-04-14 20:20 [9front] sysinfo: redact wpapsk umbraticus
  2021-04-14 20:53 ` Romano
@ 2021-04-14 21:20 ` fulton
  1 sibling, 0 replies; 5+ messages in thread
From: fulton @ 2021-04-14 21:20 UTC (permalink / raw)
  To: 9front

Quoth umbraticus@prosimetrum.com:
> Some unwitting soul

I belive that was me, I didn't even think about that being exposed, my bad.
If any 9front users are near my house they now get free wifi :)

--
Fulton fulton.software!fulton

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9front] sysinfo: redact wpapsk
  2021-04-14 20:53 ` Romano
@ 2021-04-15  7:54   ` Nick Owens
  2021-04-15  9:07     ` unobe
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Owens @ 2021-04-15  7:54 UTC (permalink / raw)
  To: 9front; +Cc: Travis Moore

#r is devrtc and specific to x86 cmos. it isn't used for plan9 secret storage.

On Wed, Apr 14, 2021 at 3:02 PM Romano <unobe@cpan.org> wrote:
>
> Wouldn't '#r/nvram' also be better left not shown as well, since it is usually written with (sectore and login) keys?
>
> On April 14, 2021 8:20:27 PM UTC, umbraticus@prosimetrum.com wrote:
> >Some unwitting soul recently revealed a password in a public place.
> >Perhaps the following?...
> >
> >diff -r cc26fdf57bb2 rc/bin/sysinfo
> >--- a/rc/bin/sysinfo   Sat Mar 13 14:57:53 2021 +0100
> >+++ b/rc/bin/sysinfo   Thu Apr 15 08:17:26 2021 +1200
> >@@ -6,8 +6,8 @@
> >       echo
> > }
> > fn print{
> >-      echo '% cd ''#ec''; for(i in *){echo $i ''='' `{cat $i}}'
> >-      cd '#ec'; for(i in *){echo $i '=' `{cat $i}}
> >+      echo '% cd ''#ec''; for(i in `{walk | grep -v wpapsk}){echo $i ''=''
> >`{cat $i}}'
> >+      cd '#ec'; for(i in `{walk | grep -v wpapsk}){echo $i '=' `{cat $i}}
> >       echo
> >       logprog cat '#P/archctl'
> >       logprog cat '#P/irqalloc'

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9front] sysinfo: redact wpapsk
  2021-04-15  7:54   ` Nick Owens
@ 2021-04-15  9:07     ` unobe
  0 siblings, 0 replies; 5+ messages in thread
From: unobe @ 2021-04-15  9:07 UTC (permalink / raw)
  To: 9front

Quoth Nick Owens <mischief@offblast.org>:
> #r is devrtc and specific to x86 cmos. it isn't used for plan9 secret storage.

Ah--I just saw nvram without checking the device. Thanks!


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-15  9:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14 20:20 [9front] sysinfo: redact wpapsk umbraticus
2021-04-14 20:53 ` Romano
2021-04-15  7:54   ` Nick Owens
2021-04-15  9:07     ` unobe
2021-04-14 21:20 ` fulton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).