ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. wirestyle22
    3. Posts
    • Profile
    • Following 0
    • Followers 2
    • Topics 179
    • Posts 8,185
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Gaming - What's everyone playing / hosting / looking to play

      I've been playing Loop Hero. Very fun game by Devolver Digital

      posted in Water Closet
      wirestyle22W
      wirestyle22
    • RE: What Are You Doing Right Now

      anyone see the UniFi Protect G3 Instant Camera? $29 and it at least competes with the G3 Micro which was $199. Pretty huge.

      posted in Water Closet
      wirestyle22W
      wirestyle22
    • RE: Reset Synology admin account

      I see my mistake here and get what you are doing

      posted in IT Discussion
      wirestyle22W
      wirestyle22
    • RE: Reset Synology admin account

      @JaredBusch said in Reset Synology admin account:

      @dbeato said in Reset Synology admin account:

      Backup the data and reset the password and transfer back.

      I am in the process of copying the share to another device.

      "Encrypted folders are unmounted and the feature Mount automatically on startup is disabled. For security reasons, if the cypher is a machine key, it is deleted from Key Manager. To learn how to retain the machine key for decrypting shared folders after reset, please refer to this article." here

      Isn't the fear here that the key will be wiped from the keystore if it is hosted on the machine itself? There is also no way to verify as you can't access it right? I'm curious what backing up the files is going to do if you can't access them due to the reset wiping the key

      posted in IT Discussion
      wirestyle22W
      wirestyle22
    • RE: Reset Synology admin account

      @JaredBusch said in Reset Synology admin account:

      @wirestyle22 said in Reset Synology admin account:

      @JaredBusch said in Reset Synology admin account:

      @VoIP_n00b said in Reset Synology admin account:

      Right, I understand that. Just wondering because it gives you more options.

      Only if you can log in. Still unclear why SSH login worked for the other three devices when the GUI did not with the same credentials.

      On to my question.. Anyone familiar with this encryption question?

      I believe it uses the password you don't have for the encryption/decryption process. So if you reset it, you would not be able to read any of your encrypted files even if you transferred the key. No real way around this as far as I understand it.

      That is not what the documentation seems to say. Hence my question.

      Regardless of what the documentation says it uses eCryptFS so you need the key file you--or the person before you--had the option of downloading when creating the directory or exporting afterwards. I'm assuming you don't have this because you likely wouldn't be asking if you did. You can't export it now because no password.

      I think it would make sense to sign the key of the backup nas with the production nas and vice versa so you can read any of the files on either NAS. I know you can't do this now, but I'm just saying for the future.

      posted in IT Discussion
      wirestyle22W
      wirestyle22
    • RE: Reset Synology admin account

      @JaredBusch said in Reset Synology admin account:

      @VoIP_n00b said in Reset Synology admin account:

      Right, I understand that. Just wondering because it gives you more options.

      Only if you can log in. Still unclear why SSH login worked for the other three devices when the GUI did not with the same credentials.

      On to my question.. Anyone familiar with this encryption question?

      I believe it uses the password you don't have for the encryption/decryption process. So if you reset it, you would not be able to read any of your encrypted files even if you transferred the key. No real way around this as far as I understand it.

      posted in IT Discussion
      wirestyle22W
      wirestyle22
    • RE: Reset Synology admin account

      @VoIP_n00b said in Reset Synology admin account:

      Is SSH enabled?

      the root password is the administrator account password. won't work since he doesn't have it

      posted in IT Discussion
      wirestyle22W
      wirestyle22
    • RE: Ipad guru for Site connectivity issue

      @WrCombs said in Ipad guru for Site connectivity issue:

      @Dashrender said in Ipad guru for Site connectivity issue:

      @wirestyle22 said in Ipad guru for Site connectivity issue:

      @WrCombs said in Ipad guru for Site connectivity issue:

      So update on this:
      We ended up "Hard wiring" the "socket Server" iPad, and setting all Ipads to Static IPs resolved this issue, there are other issues but not with the connectivity. .

      It's great that it's working. I wish we knew the root cause but it is what it is.

      Actually doesn’t sound like it’s fixed... just bandaided

      pretty much.. but this is how we're going to keep it.

      So the issue you were working on had more odd behavior initially or they "solved" that specific problem but their "solution" introduced other issues?

      posted in IT Discussion
      wirestyle22W
      wirestyle22
    • RE: What Are You Doing Right Now

      @Dashrender said in What Are You Doing Right Now:

      @wirestyle22 said in What Are You Doing Right Now:

      @Dashrender said in What Are You Doing Right Now:

      You're recording someone committing a crime and you're worried about your video?

      Why have security cameras?

      LOL - it's one thing when they are on your building, quite another when you are walking around recording people...

      It's a pretty specific example

      posted in Water Closet
      wirestyle22W
      wirestyle22
    • RE: What Are You Doing Right Now

      @Dashrender said in What Are You Doing Right Now:

      You're recording someone committing a crime and you're worried about your video?

      Why have security cameras?

      posted in Water Closet
      wirestyle22W
      wirestyle22
    • RE: What Are You Doing Right Now

      @Dashrender said in What Are You Doing Right Now:

      @wirestyle22 said in What Are You Doing Right Now:

      @Dashrender said in What Are You Doing Right Now:

      @wirestyle22 said in What Are You Doing Right Now:

      I wonder if ubiquiti will ever allow you to use their app to record video via your cellphone as if it were a ubiquiti device. it would be a nice feature.

      OK I'll bite, why would you want this?

      Anytime you want a dynamic camera option for security. For instance, I don't have outside cameras currently. If something happens outside of my house, I'd like the option of having a way to go outside and record what I need to. Maybe a car accident happens and my static doorbell camera isn't good enough to see the detail of what happened, or what is happening. There are a lot of reasons.

      I have no idea how well or not Ubiquiti cameras can work over the internet - most people don't have great wifi in their yards, so who knows if it would work -

      But if you're going to use your cellphone - why not use it's built in video recorder? I suppose if the idea is to get the video into a central place, that could be nice.

      Well if you're committing a crime and you see someone recording you, what is your first instinct? To destroy the phone right? Now, I can achieve this many ways but it would be nice to be able to have it all in one place as you said.

      posted in Water Closet
      wirestyle22W
      wirestyle22
    • RE: What Are You Doing Right Now

      @Dashrender said in What Are You Doing Right Now:

      @wirestyle22 said in What Are You Doing Right Now:

      I wonder if ubiquiti will ever allow you to use their app to record video via your cellphone as if it were a ubiquiti device. it would be a nice feature.

      OK I'll bite, why would you want this?

      Anytime you want a dynamic camera option for security. For instance, I don't have outside cameras currently. If something happens outside of my house, I'd like the option of having a way to go outside and record what I need to. Maybe a car accident happens and my static doorbell camera isn't good enough to see the detail of what happened, or what is happening. There are a lot of reasons.

      posted in Water Closet
      wirestyle22W
      wirestyle22
    • RE: What Are You Doing Right Now

      I wonder if ubiquiti will ever allow you to use their app to record video via your cellphone as if it were a ubiquiti device. it would be a nice feature.

      posted in Water Closet
      wirestyle22W
      wirestyle22
    • RE: Ipad guru for Site connectivity issue

      @WrCombs said in Ipad guru for Site connectivity issue:

      So update on this:
      We ended up "Hard wiring" the "socket Server" iPad, and setting all Ipads to Static IPs resolved this issue, there are other issues but not with the connectivity. .

      It's great that it's working. I wish we knew the root cause but it is what it is.

      posted in IT Discussion
      wirestyle22W
      wirestyle22
    • RE: What Are You Watching Now

      zerozerozero is fantastic.

      posted in Water Closet
      wirestyle22W
      wirestyle22
    • RE: Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty

      @IRJ said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @wirestyle22 said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @JaredBusch said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @wirestyle22 said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @Obsolesce said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @wirestyle22 said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @stacksofplates said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @wirestyle22 said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @stacksofplates said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      Rather than mess with multiple arrays, you can just have a single dictionary that holds the file and status. A single function can decrypt the file. Then just save the file name and status of the decryption in that dictionary. Then loop through the dictionary and here I just print the data, but you could email it or send to Slack or whatever.

      This was a quick pass so probably can be cleaned up a bit.

      My reasoning behind two arrays was to keep it organized. If I do all successes in one and then all failures in the other. So I have this now:

      #!/usr/bin/env bash
      source "/home/user1/subdirectory1/master.sh"
      decryptedFolderPath="/home/user2/subdirectory2/"
      archiveFolderPath="/home/user1/subdirectory1/archive/in/"
      extension=${fileName##*\.}
      newFileName=${fileName%.*}
      fileWithoutTimestamp="$newFileName.$extension"
      encryptedItems=$(ls encryptedFolderPath*.pgp)
      statusArray=()                                   
      
      for i in $encryptedItems
      do
      gpg --batch --homedir /home/user1/.gnupg/ --passphrase "$PASS" --list-only --list-packets --yes --decrypt "$i" | grep -q "encrypted" > "$decryptedFolderPath"/"$fileWithoutTimestamp"
      outPut=$(gpg --batch --homedir /home/user1/.gnupg/ --passphrase "$PASS" --list-only --list-packets --yes "$i" | grep -q "encrypted")
      
      if [ $? != 0 ]; then
      echo "$i is not a pgp file"
      statusArray+=("failed to decrypt $i, with status code $? output from pgp: $outPut")
      fi
      
      if [ $? == 0 ]; then
      statusArray+=("Succesfully Decrypted $i")
      echo ${#statusArray[@]} | mail -s 'report' [email protected]
      v=${i%.*}
      encryptedFile="$v"
      fileName=${encryptedFile##*/}
      @@ -27,4 +34,4 @@ continue
      fi
      done
      
      mv "$i" "$archiveFolderPath"
      

      I think this is what you meant, right?

      Well no. I meant Python can easily work with dictionaries (hash maps) vs doing multiple arrays. You'd have to switch to a hash map in Bash vs the multiple arrays.

      Gotcha. Yeah it sounds more convenient it just going to take me more time to learn than I have with this current script

      Isn't this the one you've been working on for like a year now? I'd say that's enough time to learn a little about scripting.

      I built the original one awhile ago. Now I want to build more functionality into it. It's been static for a very long time.

      Except, bash is not the place to build more functionality.

      You use bash for basic stuff, or when there is no better option available.

      technically there is no other viable option because I don't have the time to learn the alternative before I need this to be done by. the plan is to remake it in python later. after I convert some stuff and feel comfortable, I'll only use python

      I learned the basics of python in a day or two. I bought udemy course and built a few python apps. I was able to find tutorials to build security tools like scrapers and scanners.

      I've since added to these scripts and combined some of them. I'm not a python master, but it's very easy to pick up. There's also so many resources out there.

      I purchased "Learn Python the Hard way". Going through it now and then experimenting.

      posted in IT Discussion
      wirestyle22W
      wirestyle22
    • RE: Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty

      @JaredBusch said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @wirestyle22 said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @Obsolesce said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @wirestyle22 said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @stacksofplates said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @wirestyle22 said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @stacksofplates said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      Rather than mess with multiple arrays, you can just have a single dictionary that holds the file and status. A single function can decrypt the file. Then just save the file name and status of the decryption in that dictionary. Then loop through the dictionary and here I just print the data, but you could email it or send to Slack or whatever.

      This was a quick pass so probably can be cleaned up a bit.

      My reasoning behind two arrays was to keep it organized. If I do all successes in one and then all failures in the other. So I have this now:

      #!/usr/bin/env bash
      source "/home/user1/subdirectory1/master.sh"
      decryptedFolderPath="/home/user2/subdirectory2/"
      archiveFolderPath="/home/user1/subdirectory1/archive/in/"
      extension=${fileName##*\.}
      newFileName=${fileName%.*}
      fileWithoutTimestamp="$newFileName.$extension"
      encryptedItems=$(ls encryptedFolderPath*.pgp)
      statusArray=()                                   
      
      for i in $encryptedItems
      do
      gpg --batch --homedir /home/user1/.gnupg/ --passphrase "$PASS" --list-only --list-packets --yes --decrypt "$i" | grep -q "encrypted" > "$decryptedFolderPath"/"$fileWithoutTimestamp"
      outPut=$(gpg --batch --homedir /home/user1/.gnupg/ --passphrase "$PASS" --list-only --list-packets --yes "$i" | grep -q "encrypted")
      
      if [ $? != 0 ]; then
      echo "$i is not a pgp file"
      statusArray+=("failed to decrypt $i, with status code $? output from pgp: $outPut")
      fi
      
      if [ $? == 0 ]; then
      statusArray+=("Succesfully Decrypted $i")
      echo ${#statusArray[@]} | mail -s 'report' [email protected]
      v=${i%.*}
      encryptedFile="$v"
      fileName=${encryptedFile##*/}
      @@ -27,4 +34,4 @@ continue
      fi
      done
      
      mv "$i" "$archiveFolderPath"
      

      I think this is what you meant, right?

      Well no. I meant Python can easily work with dictionaries (hash maps) vs doing multiple arrays. You'd have to switch to a hash map in Bash vs the multiple arrays.

      Gotcha. Yeah it sounds more convenient it just going to take me more time to learn than I have with this current script

      Isn't this the one you've been working on for like a year now? I'd say that's enough time to learn a little about scripting.

      I built the original one awhile ago. Now I want to build more functionality into it. It's been static for a very long time.

      Except, bash is not the place to build more functionality.

      You use bash for basic stuff, or when there is no better option available.

      technically there is no other viable option because I don't have the time to learn the alternative before I need this to be done by. the plan is to remake it in python later. after I convert some stuff and feel comfortable, I'll only use python

      posted in IT Discussion
      wirestyle22W
      wirestyle22
    • RE: Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty

      @Obsolesce said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @wirestyle22 said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @stacksofplates said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @wirestyle22 said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @stacksofplates said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      Rather than mess with multiple arrays, you can just have a single dictionary that holds the file and status. A single function can decrypt the file. Then just save the file name and status of the decryption in that dictionary. Then loop through the dictionary and here I just print the data, but you could email it or send to Slack or whatever.

      This was a quick pass so probably can be cleaned up a bit.

      My reasoning behind two arrays was to keep it organized. If I do all successes in one and then all failures in the other. So I have this now:

      #!/usr/bin/env bash
      source "/home/user1/subdirectory1/master.sh"
      decryptedFolderPath="/home/user2/subdirectory2/"
      archiveFolderPath="/home/user1/subdirectory1/archive/in/"
      extension=${fileName##*\.}
      newFileName=${fileName%.*}
      fileWithoutTimestamp="$newFileName.$extension"
      encryptedItems=$(ls encryptedFolderPath*.pgp)
      statusArray=()                                   
      
      for i in $encryptedItems
      do
      gpg --batch --homedir /home/user1/.gnupg/ --passphrase "$PASS" --list-only --list-packets --yes --decrypt "$i" | grep -q "encrypted" > "$decryptedFolderPath"/"$fileWithoutTimestamp"
      outPut=$(gpg --batch --homedir /home/user1/.gnupg/ --passphrase "$PASS" --list-only --list-packets --yes "$i" | grep -q "encrypted")
      
      if [ $? != 0 ]; then
      echo "$i is not a pgp file"
      statusArray+=("failed to decrypt $i, with status code $? output from pgp: $outPut")
      fi
      
      if [ $? == 0 ]; then
      statusArray+=("Succesfully Decrypted $i")
      echo ${#statusArray[@]} | mail -s 'report' [email protected]
      v=${i%.*}
      encryptedFile="$v"
      fileName=${encryptedFile##*/}
      @@ -27,4 +34,4 @@ continue
      fi
      done
      
      mv "$i" "$archiveFolderPath"
      

      I think this is what you meant, right?

      Well no. I meant Python can easily work with dictionaries (hash maps) vs doing multiple arrays. You'd have to switch to a hash map in Bash vs the multiple arrays.

      Gotcha. Yeah it sounds more convenient it just going to take me more time to learn than I have with this current script

      Isn't this the one you've been working on for like a year now? I'd say that's enough time to learn a little about scripting.

      I built the original one awhile ago. Now I want to build more functionality into it. It's been static for a very long time.

      posted in IT Discussion
      wirestyle22W
      wirestyle22
    • RE: Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty

      https://twitter.com/YellsOld/status/1370004797798092804?s=07&fbclid=IwAR2IVL6gcZT7MS7xnjEQODIY6HUuSeKTlbf2OMFp0pYU3euVHFRqu6cFHT8

      Relevant

      posted in IT Discussion
      wirestyle22W
      wirestyle22
    • RE: Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty

      @stacksofplates said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @wirestyle22 said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      @stacksofplates said in Return Values in Bash Script and generate e-mail which shows successes, errors and if the directory is empty:

      Rather than mess with multiple arrays, you can just have a single dictionary that holds the file and status. A single function can decrypt the file. Then just save the file name and status of the decryption in that dictionary. Then loop through the dictionary and here I just print the data, but you could email it or send to Slack or whatever.

      This was a quick pass so probably can be cleaned up a bit.

      My reasoning behind two arrays was to keep it organized. If I do all successes in one and then all failures in the other. So I have this now:

      #!/usr/bin/env bash
      source "/home/user1/subdirectory1/master.sh"
      decryptedFolderPath="/home/user2/subdirectory2/"
      archiveFolderPath="/home/user1/subdirectory1/archive/in/"
      extension=${fileName##*\.}
      newFileName=${fileName%.*}
      fileWithoutTimestamp="$newFileName.$extension"
      encryptedItems=$(ls encryptedFolderPath*.pgp)
      statusArray=()                                   
      
      for i in $encryptedItems
      do
      gpg --batch --homedir /home/user1/.gnupg/ --passphrase "$PASS" --list-only --list-packets --yes --decrypt "$i" | grep -q "encrypted" > "$decryptedFolderPath"/"$fileWithoutTimestamp"
      outPut=$(gpg --batch --homedir /home/user1/.gnupg/ --passphrase "$PASS" --list-only --list-packets --yes "$i" | grep -q "encrypted")
      
      if [ $? != 0 ]; then
      echo "$i is not a pgp file"
      statusArray+=("failed to decrypt $i, with status code $? output from pgp: $outPut")
      fi
      
      if [ $? == 0 ]; then
      statusArray+=("Succesfully Decrypted $i")
      echo ${#statusArray[@]} | mail -s 'report' [email protected]
      v=${i%.*}
      encryptedFile="$v"
      fileName=${encryptedFile##*/}
      @@ -27,4 +34,4 @@ continue
      fi
      done
      
      mv "$i" "$archiveFolderPath"
      

      I think this is what you meant, right?

      Well no. I meant Python can easily work with dictionaries (hash maps) vs doing multiple arrays. You'd have to switch to a hash map in Bash vs the multiple arrays.

      Gotcha. Yeah it sounds more convenient it just going to take me more time to learn than I have with this current script

      posted in IT Discussion
      wirestyle22W
      wirestyle22
    • 1 / 1