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

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).