Tuesday, March 26, 2019

netgear r7000 reboot loop with tomato

Situation:
Reboot loop when connected to WAN.
Disconnected WAN allows boot.

Fix:
I had this when I turned on "Check connections" under multi-wan.
Disabled that setting and didn't have a problem anymore.

Monday, March 25, 2019

Jabra 65t connected but no sound


Problem:
no sound to bluetooth headset. Headset is connected.

Hardware:
Jabra 65t bluetooth headphones
Apple iPhone 7 plus

Fix:
Remove Jabra App in my situation. There are some other fixes that might work for you that I went through below.


I recently had an issue where no sound would go to the headset. It was connected to bluetooth, and pressing the button on the right headset would control what I was listening to. I was able to open the last App I was listening too (which is a super useful feature of these, the Airpods do not do this.) and I was also able to stop it from playing using that button. I was able to bring up Siri with the button and the assistant would show what I said, however, I never heard what she had to say.

Using google searches, I tried restarting my phone, resetting my network settings, nothing seemed to work.

I was able to unpair and pair the device, and I would hear sound for about 15 seconds before sound would turn off again. It would click and sounded like white noise. This should have been my clue to the issue, but I didn't put 2 and 2 together for quite a while.

After some more fruitless googling, I starting thinking about that sound in my ear, that white noise. When I would launch a podcast the headset would click like it was getting ready to do produce audio, but then returned to white noise. And when I would stop audio it would again, make sounds like it was changing audio settings. But only white noise. The headset was connected fine, evidenced by Siri responding, the headset turning on in my ear, the phone seeing the connection etc. Then it finally clicked, HearThrough. It was the sound I would hear when HearThrough was turned on in the Jabra App. I played around with the hear through settings and it would turn it on and off in my ear, but as soon as I left that screen, the 'hear through' sound would come back.

The root problem: the Jabra App. As soon an I uninstalled that app, I could hear regular sound again. I might reinstall the App because I really liked the built in white noise tracks it had, particularly the Rain and Ocean tracks. But if the hear through issues are going to be a regular issue, I'll just have to find other white noise tracks.

If you have any good looping white noise tracks, let me know!

Friday, February 22, 2019

Virtualbox 6.x Ubuntu 18 and Auto Resize Guest Display

Hello,
I use Ubuntu in a VirtualBox machine as my primary web browser. My host OS is Windows 10. (I should probably swap this around, but whatever) After my 1803 update, virtual box crashed pretty frequently. At the time I was on one of the 5.x versions because it was stable. After the update and even 5.x being unstable, I went to 6.x
And by unstable, I mean the VMs refusing to load, getting error messages to reinstall virtual box, and even then then wouldn't load. Even new VMs would fail to load after installing Ubuntu.

So, I got 6.x working semi ok. I would get memory crashes of the VM, but I was able to restart. (Instruction at 0x... reference memory at 0x...) However, the video driver was being a pain. It wouldn't auto resize, and installing software would crash the display, reverting to 800x600.

To fix this, I tried more and less cpu cores, increased and decreased video memory, enabled and disabled 3d acceleration. None of this worked by the way.

I changed the graphics controller to VboxVGA and auto resizing was fixed.
And so far, it hasn't has a memory crash for the past hour, I will update if that comes back.

Tuesday, February 12, 2019

Group policy is not applying even though it says it is applying

I map my drives via a group policy. That group policy maps different drives to different user groups via item level targeting. The drives are mapped via Update (vs Create/Replace/etc)
I had one user that was not mapping drives.
Checking on the DC, it listed the group policies that applied, including the one I needed.
gpresult /r also showed the policy was applying, even though the shared drives were not there.

I logged in as another user, and the new user mapped their drives.

Original user did not.

What I did to fix this:

netsh winsock reset

(this was done logged in as the user)

Dumb, right?
Well, it worked in my situation.

Domain level 2012
Computer Windows 10 1803
Group policy with item level targeting.

Saturday, February 9, 2019

accessing Plex server from another computer on the network

I've been running Plex for a while now, the computer running it is not in a convenient place to get a keyboard and monitor hooked up, but I found out I can access the server by https://(serverIP):32400/web
This is probably super dumb, but it makes it easier to scan for new media.

Plex is offline or unreachable with Tomato and Plex

I was getting the old "Plex is offline or unreachable" message on my Vizio TVs, iPhone would oddly play any movie, but the home page would not load. Roku would not play anything.
I had recently loaded Tomato 1.28.0000 -3.5-140 k26ARM USB AIO-64k. Plex was working fine before the firmware flash.

After doing some digging, I went through forums of port forwarding, enabling UPnP and NAT-PMP, all with no help.

What ended up fixing the issue was a setting called Prevent DNS-rebind attacks, I took the checkmark out and I was able to use Plex on all my devices.

Advanced Settings>DHCP/DNS>Prevent DNS-rebind attacks

Thursday, February 7, 2019

Openvas on ubuntu 18

I only needed to use Openvas, so I thought I'd do it on Ubuntu. I didn't need the other tools, and since this was going to be a VM in my environment, I didn't want all those tools floating around.
I found this cool article:
https://www.techrepublic.com/article/how-to-install-the-openvas-vulnerability-scanner-on-ubuntu-16-04/
It didn't work, so I did these things:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install PostgreSQL
sudo apt-get install openvas
sudo openvas-setup
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get redis
sudo service redis start
sudo openvas-start

fuck it, none of this worked.
I just loaded Kali.

Thursday, January 31, 2019

openvas error 503 service temporarily down

If you found this page, I'll assume you have this error.
I'll also assume you've found numerous other sites with different fixes, none of which worked for you.
I also did the fixes, the rebuilds, all ended up with the 503 error.
I tried remove --auto-remove openvas and reinstalling.
Still error.

How I fixed it:
(this will be a fresh openvas, none of your reports or targets will be saved.)

sudo apt-get remove --autoremove openvas
sudo apt-get purge --autoremove openvas

Go into files and delete anything related to openvas, just drag it into the trash.
Empty the trash

Restart the machine

apt-get install openvas
openvas-setup

Login, create scan jobs and it'll work again.

Friday, August 17, 2018

Azure synced account not logging into Skype

Situation:
Primary email set to parent company
Old company email still showing for skype.
Not all users, only old users.

Attribute msRTCSIP-PrimaryUserAddress was controlling the SIP, even though SIP was added to ProxyAddress.
After updating this, I ended up removing and adding the Skype license for the user. Prior to that I was getting DNS errors with KB2655790 and errors saying the account didn't exist.

Thursday, August 16, 2018

Syncing file servers to Office365 for free with DFS

Office 365 is here, and OneDrive has been around for a while. I use it for personal use, so I can write wherever I am and everything is backed up in the cloud.
I got to thinking, wouldn't it be great to attach this to my existing corporate files?
Originally I was thinking about creating a user and sharing that users 1tb OneDrive space with my individual offices.
Each account would need to be licensed ($$) and nothing ever came from that.
Then there were Office 365 Groups, and I considered moving everything to the group OneDrive and synching everyone. This relies heavily on bandwidth.
But then OneDrive worked the way it was supposed to, and synced only the files and folders you wanted, not all files.


On to moving the file server to the cloud.
I have DFS running.
I know how syncing folders from OneDrive work.
I know you can sync a group's OneDrive if you're a member.

Step one:
I created a service account with an E3 license and added it to a Group.
I created a new server (reason will become apparent shortly).
New Service account is added as a Backup Operator (reason will become apparent shortly).
With the Service account, log into OneDrive online and access the Groups one drive.
Sync the Group OneDrive.
(Note: I had to access the classic view to both view the Group option and to sync the one drive.)
This will kick off the install of OneDrive. (Or install from Mircrosoft https://onedrive.live.com/about/en-us/download/ )
Now, during the install, there's a brief moment where you can change the location of the sync folder. I'm not going to tell you how to do your job, but I created a folder on the C drive and all my groups will sync there.

Once the sync is done and the folder is created we're almost there.

Next step: DFS.
This is why we created a new server.
Go into the DFS management and add the server as a new member to whatever sync group you want to push to the cloud.
Add the synced OneDrive folder you just created as the target for DFS replication. DFS will put files in the one drive folder, one drive will put them in the cloud. Digital relay race.

Now, this will only run while the service account is logged in, fail, right?
Wrong.

OneDrive can be run as a service.
And I'll tell you how, but first, you'll need to be signed up to my exclusive club where you send me money and I receive it.
Just kidding.

To run OneDrive as a service, you can purchase and install this:
https://www.coretechnologies.com/products/AlwaysUp/Apps/RunOneDriveAsAService.html

OR

You can setup a scheduled task.

Which is free.
And free is better.
The last post here got me on my way
https://social.technet.microsoft.com/Forums/en-US/045eecb5-9574-48cf-a87d-7497745fa5d8/running-onedrive-for-business-as-a-windows-service?forum=saas


Create a new task and call it something cool like OneDrive as a Service.
Set it to run whether the user is logged in or not, and I have mine set to run with Highest privileges. This might not be necessary, but after messing with it a while this ended up getting checked.

Trigger Tab, select at Startup, because that's when you want it to run.

Action Tab, now this is where I think I had the most problems.
Select Start a program and browse to the service accounts\AppData\Local\Microsoft\OneDrive\OneDrive.exe

Leave both optional fields empty. Something I read said to start in the app data folder, another had /backup as an argument, neither did what I needed.
Or maybe I wasn't patient enough.

Once you reboot, the service will run as the service account.

You can test this by logging in as the service account, you'll get an error about the OneDrive folder not being found and asking you if you want to try again or setup OneDrive.
DO NEITHER.
There is an additional OneDrive process running (from the task) that you can end and Try Again. OneDrive will connect fine.
Logging is as the service account will be useful for checking sync issues.

Some notes:
Patience is needed when setting up OneDrive as a service. After the reboot, it may take a long time to start showing up changes in OneDrive, especially if its trying to sync a large amount of files. But once it's connected, it works like normal. And once everything is synced and no changes are going on, the OneDrive as a service reconnects pretty quick after a reboot.

Let me know if this helps you.

Thursday, August 9, 2018

Outlook web app hijack

We've all seen the email (probably).
"Your document is ready, click below"
This takes you to an official looking Microsoft login page.
Many people instinctively put in their office 365 account username (email) and password.
Login fails obviously, because it's not a real page.
They call IT and ask for a password reset or complain about all the passwords they have to remember, how they're sick of having to login all the time, etc.
Anyway, now that page has their credentials.
In my org., the hijacker would log into the webmail as the user and start sending out emails.
Some emails were trying to get personal/financial info, others were spreading the login fake page.
Annoying, a password reset, initiated by me, the administrator, fixed it. If you have a system that emails them a password reset link, this could completely lock them out from getting their email for a period of time while the hijacker has complete control. Not fun.

Some other things that the hijacker was doing. On one user, they adjusted the reply address to never show up in the hijacked accounts email. They added a letter to the name, that email doesn't exist, and the sender gets a bounce back. They did this so the hijacked account wouldn't know about their account spreading this 'virus', even though its not a virus at all, just social engineering.

Later, it was found that a rule was being created, forwarding certain emails to the RSS folder, because who uses that folder? This would allow the hijacker the ability to monitor an inbox and communicate with people that could potentially give out financial or personal information.

Pretty sneaky.

Some fixes:
Limit who can access OWA.
Those that can, make them 2FA.

I haven't looked into it too much, but O365 may be able to block access by region. If they don't have that option, it would definitely help in these situations. The IP access the email was outside the US.

ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

 I tried a couple things, downgrading, reinstalling, followed some github links talking about /usr/local/lib/python3.10/dist-packages/basics...