Tuesday, July 21, 2020

QRadar: Could not retrieve "manifest_list_512": 500 Can't connect to 127.0.0.1:443 Could not download manifest list.

While installing autoupdate package on an offline environment, I got this error message:

Could not retrieve "manifest_list_512": 500 Can't connect to 127.0.0.1:443 Could not download manifest list.

For solution I set the hostname as QRadar dns name and I test connection with:

[root@qradar autoupdates]# /opt/qradar/bin/UpdateConfs.pl -testConnect 1 0

command.

Thursday, July 16, 2020

Install-Module : The term ‘Install-Module’ is not recognized as the name of a cmdlet, function, script file, or operable program

Recently, I was trying to use Install-Module cmdlet to install a required module for some testing on a client machine however I ran into the following error

Install-Module: The term ‘Install-Module’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1Install-Module MSOnline. CategoryInfo : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException FullyQualifiedErrorId : CommandNotFoundException

The error looks like below:

Install-Module : The term ‘Install-Module’ is not recognized as the name of a cmdlet, function, script file, or operable program

The error usually comes, if your PowerShell is not upto date. The major version of PowerShell should be equal or greater than 5. You can run the below cmdlets to check the PowerShell version.


1
   
$PSVersionTable.PSVersion


My PowerShell major version was 4.

Solution:
Download and install
https://www.microsoft.com/en-us/download/details.aspx?id=54616

Wednesday, July 8, 2020

Block malicious IP on Windows-MacOS commandline

Windows:
netsh advfirewall firewall add rule name="IP Block" dir=in
interface=any action=block remoteip=x.x.x.x

MacOS:
sudo echo “block drop from any to x.x.x.x” >> /ect/pf.conf” &&
sudo pfctl -e -f /etc/pf.conf