Delete Wazuh Agent

Access the Wazuh API Console Run the command, replacing the agent id 1DELETE /agents?pretty=true&older_than=0s&agents_list=473&status=all Output results should indicate number of agents deleted 123456789101112{ "data": { "affected_items": [ "473" ], "total_affected_items": …

Open SSH Errors

Problem: Permission Denied 1234[edc@ftp .ssh]$ sftp [email protected] Permission denied (publickey,keyboard-interactive). Couldn’t read packet: Connection reset by peer [edc@ftp .ssh]$ If the users authorized_keys file has an incorrect permission then the …

Turn On MSSQL Database Logging

Open elevated Powershell Invoke-Sqlcmd -Query “EXEC xp_instance_regwrite N’HKEY_LOCAL_MACHINE’, N’Software\Microsoft\MSSQLServer\MSSQLServer’, N’AuditLevel’, REG_DWORD, 3;” -ServerInstance “localhost”; netstop MSSQLSERVER; netstart MSSQLSERVER; netstart MSSQLLaunchpad; netstart SQLSERVERAGENT

Domain Management

Active Directory Administrative Center To manage ad.aimsparking.com login to a Windows domain joined workstation as a Domain Administrator. Then launch the ADAC Tool (https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/get-started/adac/active-directory-administrative-center). User Management 1). Add a User …

Decode AWS Console Error Message

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-not-auth-launch/ Resolution 1. Verify that the AWS CLI is installed and configured on your machine with the following command: 1$ aws –version Note: If you receive errors when running AWS …

Query Tailscale Logs via API

See documentation here: https://tailscale.com/kb/1203/audit-logging/ 1$ curl -u tskey-api-1234567890123456789012345678901234567890123456: -X GET "https://api.tailscale.com/api/v2/tailnet/aimsparking.com/logs?start=2023-01-01T00:00:00Z&end=2023-01-31T00:00:00Z" Returned Results 123456789101112131415161718192021222324252627282930313233343536373839404142434445{     "version": "1.1",     "tailnetId": "itsmetor.com",     "logs": [{         …

Powershell Check SSL Certs

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354# set some constants for the script # min cert age is 60 days, print in red if the cert is going to expire in 60 days or less $minCertAge …

Extend Linux File System

SSH to the instance Verify the volume that has the problem with command: lsblk Changed the volume to 32 GB from the AWS console (chose 32 because it was sufficiently …

Delete MongoDB Log

Check which directories are using disk space 1sudo du -h –max-depth=1 Delete the Mongo Log 1sudo rm -rf /var/log/mongodb/mongod.log Check which processes have not released the file lock 1sudo lsof …