9front - general discussion about 9front
 help / color / mirror / Atom feed
From: umbraticus@prosimetrum.com
To: 9front@9front.org
Subject: [9front] sysinfo: redact wpapsk
Date: Thu, 15 Apr 2021 08:20:27 +1200	[thread overview]
Message-ID: <CE674F25BBF6ACA2572334C891E58E7D@prosimetrum.com> (raw)

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'

             reply	other threads:[~2021-04-14 20:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-14 20:20 umbraticus [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CE674F25BBF6ACA2572334C891E58E7D@prosimetrum.com \
    --to=umbraticus@prosimetrum.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).