|
Yep, that's a great xkcd to explain win10 User Experience.
|
|
|
|
|
Jacek Gajek wrote: A friend or whoever comes to a visit
- Hey, what's a pass to WI-FI?
- Give me a second, I will check in the settings... uhm, oh... uhuh.... aaah...
I've solved that problem with a PowerShell script. Sorry about the formatting - it insists on pasting it that way.
$output = netsh wlan show profiles
$profiles = @()
foreach ( $line in $output )
{
$index = $line.LastIndexOf( ": " )
if ( $index -eq -1 ) { continue }
$afterColon = $line.Substring( $index + 2 )
if ( $afterColon.Trim() -ne "" ) { $profiles += $afterColon }
}
$profilesWithPasswords = @()
foreach ( $profile in $profiles | Sort-Object )
{
$output = netsh wlan show profiles "$profile" key=clear
$pwd = ""
$authentication = ""
<pre>
foreach ( $line in $output )
{
$index = $line.LastIndexOf( "Authentication" )
if ( $index -ne -1 )
{
$index = $line.LastIndexOf( ": " )
if ( $index -eq -1 ) { $authentication = "<unknown>" }
else { $authentication = $line.Substring( $index + 2 ) }
continue
}
$index = $line.LastIndexOf( "Key Content" )
if ( $index -ne -1 )
{
$index = $line.LastIndexOf( ": " )
if ( $index -eq -1 ) { continue }
$pwd = $line.Substring( $index + 2 ).Trim()
continue
}
}
if ( $pwd -eq "" )
{
if ( $authentication -ne "Open" ) { $pwd = "<unknown>" }
#else { $pwd = "<unknown>" }
}
$profilesWithPasswords += New-Object -TypeName PSObject -Prop ( @{ 'Profile'=$profile; 'Password'=$pwd } )
}
Write-Host "Found $($profilesWithPasswords.Count) wifi profiles:"
$profilesWithPasswords | Format-Table Profile, Password
|
|
|
|
|
...seriously?
Not saying that I know every XKCD comic, but I totally do... and that solution reminds another one:
xkcd: Command Line Fu[^]
|
|
|
|
|
Well, I don't know of any way, with the UI, to show all passwords for all Wi-Fi profiles that the system has ever connected to. So the script has other uses.
|
|
|
|
|
A dialog\App off screen is the one that pisses me off.
Even more so when the {win} + {Arrow} key combo don't work.
Common sense is admitting there is cause and effect and that you can exert some control over what you understand.
|
|
|
|
|
Users like you are why I have to jump through hoops to patch legacy apps rather than modernizing the codebase. Thanks :p
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor
|
|
|
|
|
Nathan Minier wrote: rather than modernizing the codebase.
Really though I don't mind the modernizing if it is done properly. And I don't mind it if it is done completely so I am not stuck halfway in both worlds. As a matter of fact, I think everyone should shift away from Windows Forms. Those old controls just look too...uh...old.
|
|
|
|
|
|
Just wow! I wonder how many of these websites use a template service and just copy database connection code from lets say.. Q&A?
When you are dead, you won't even know that you are dead. It's a pain only felt by others.
Same thing when you are stupid.
modified 19-Nov-21 21:01pm.
|
|
|
|
|
Wow, that's really bad!
|
|
|
|
|
So this is how spammers are getting 'authenticated' email through the ole spam filters.
And don't get me started with exposing your database passwords on the internet.
if (Object.DividedByZero == true) { Universe.Implode(); }
|
|
|
|
|
Looks like something used in Node/React (based on a quick search as I've never heard of a .env file) similar to a web.config. I wonder if this is a problem with the technology or just a misconfigured webserver? Either way, look on the bright side, the developers appear to be using strong passwords!
"Go forth into the source" - Neal Morse
|
|
|
|
|
Well, you *can* use them in a Node project, if you go out of your way to do so. I think that Laravel (a PHP framework) uses them by default also. I suppose you could use them from any language or framework, if you really wanted to.
It mostly looks like people making the mistake of putting their db credentials in a file and then leaving the file in a place that lets the web server send it out to anyone who asks for it.
The whole thing seems a bit dumb since one of the reasons to store your production DB credentials in environment variables is so they won't be sitting in a file somewhere.
|
|
|
|
|
kmoorevs wrote: Either way, look on the bright side, the developers appear to be using strong passwords!
My favourite one is DB_PASSWORD=murder4513 . Quite strong and definitely capital, so to speak, rights?
|
|
|
|
|
Jacek Gajek wrote: My favourite one is DB_PASSWORD=murder4513
Reminds me of a Police tune...'Murder by Numbers'!
"Go forth into the source" - Neal Morse
|
|
|
|
|
I'm somewhat reminded of how you could search for Outlook PSTs on Google and it brought back instances where people were somehow sharing their entire Outlook email file with the rest of the world...
|
|
|
|
|
Wow. Since I am database illiterate, what is wrong here ? That you can see the .env file from external or that the password is stored in there ?
|
|
|
|
|
Rage wrote: That you can see the .env file from external or that the password is stored in there ?
Both of them. In normal situation you have two layers of security - first, the attacker has to access a private network and second -- he needs to login to a database. Here the second layer is gone. And if access to DB is NOT restricted to private network then... it's not good.
|
|
|
|
|
It was a struggle, but I got my two OpenMediaVault machines stood up and initially configured.
One is a media server and has six analog hard drives for a total of 11.5 terabytes. The second box is for network-wide backups and has four analog hard drives for a total of four terabytes. Before installing OMV, I had to take all my NTFS media drives, copy them to a temp drive, re-partition/format the media drive, and copy the media files back to the newly partitioned drive. This took THREE DAYS (probably because the temp drive was a USB drive).
The OMV struggles involved the motherboard BIOS settings. I fought those issues all day yesterday. Any distro I installed would boot fine, but OMV kept saying that all the drives failed the soft reset. I must have rebooted the machines 100 times in the process of getting it resolved.
I think I figured out what to do with my extra RaspBerry Pi - using it as a network monitor. I haven't decided what software to use yet, but right now,
Pandora FMS[^] is looking pretty good (they even have a Pi image).
Tonight, I'll be configuring my HTPC box to get files from the OMV media server.
I also started writing a Linux migration article for like-minded individuals. It includes everything from minimal hardware specs to dealing with configuring OMV, and handy command line items so you don't have to go googling it like I had to.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
John Simmons / outlaw programmer wrote: 11.5 terabytes
That's ... a lot !
|
|
|
|
|
Wait till I start replacing the 2tb drives with 4tb drives.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I've switched to using 8TB drives for my backups. The existing 2TB and 5TB drives are now the "live" drives holding my collections. I have a catalog search program I wrote myself that allows searching selection and playing of any of the live media in most rooms in my house (I have a power-line network that goes everywhere).
I now have 40TB of live disks and 40TB of backup disks.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Forogar wrote: I now have 40TB of live disks and 40TB of backup disks.
Holy crap on a cracker!
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Forogar wrote: 40TB of backup disks.
How do you have that setup?
Common sense is admitting there is cause and effect and that you can exert some control over what you understand.
|
|
|
|
|
I have two file servers with a couple of USB 3.0 hubs each. USB externals drives plugged in and and a big scheduled batch job to run Robocopy each night. Simples!
For some important files I backup copies to two or more locations.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|