All posts by Karol

HTTP/2 – tools – where to look when we want to check how our web server talks…

HTTP/2 is becoming more and more popular… below are a few collected links, for future reference.

Tools for testing a server / website:

https://tools.keycdn.com/http2-test
https://gtmetrix.com/

Testing a client / browsers:

https://http2.akamai.com/demo
https://www.httpvshttps.com/

Firefox plug-in showing SPDY and HTTP/2 status:

https://addons.mozilla.org/en-US/firefox/addon/spdy-indicator/

By the way, a few tools for general website analysis:

https://gtmetrix.com/
http://www.webpagetest.org/
https://developers.google.com/speed/pagespeed/insights/
http://tools.pingdom.com/fpt/

Does it use GZIP compression:

http://checkgzipcompression.com/

OpenVAS and a problem creating accounts

For future reference…

When creating credentials (Configuration -> Credentials), this error may appear:

Internal error: create_lsc_credential_omp:4506 (GSA 6.0.1) An internal error occurred while creating a new credential. It is unclear whether the credential has been created or not. Diagnostics: Failure to receive response from manager daemon.

The solution is to run these commands:

openvasmd --create-credentials-encryption-key
mkdir /var/lib/openvas/gnupg

E-books from M$

A post appeared on this blog:

https://blogs.msdn.microsoft.com/mssmallbiz/2016/07/10/how-to-download-all-of-the-free-ebooks-and-resources-in-my-free-ebooks-giveaway/

along with a very long list of booklets to download… I am grabbing them all, so below is a small download script. By the way, it shows two methods of downloading files:

Start-BitsTransfer -Source "http://www.mssmallbiz.com/ericligman/Key_Shorts/MSFTFreeEbooks.txt" -Destination "filelist.txt" -Priority Low -ProxyUsage SystemDefault -TransferType Download
Get-Content "filelist.txt" | ForEach-Object {Invoke-WebRequest $_ -OutFile $(Split-Path $_ -Leaf)}

Lync and conversation archiving

By default, Lync saves conversations in an Outlook folder. This can be changed on the server by running:

Set-CsClientPolicy -Identity global -EnableIMAutoArchiving $false -EnableCallLogAutoArchiving $false

And everything is fine… on the client, the options change from one state to another.

The question is whether this can somehow be done through GPO with filtering. I would like to be able to set it differently per user, so that it is disabled on some workstations and not on others.

The Lync 2010 policies are a bit thin… (Microsoft Lync 2010 Client Group Policy Documentation).

Fortunately, policies from good old Office Communicator still work ;-))) and among 75 other settings there are two that interest us… (Microsoft Office Communications Server 2007 R2 Client Group Policy Documentation).

As a curiosity, this change can also be made through the registry by editing or creating these keys:

HKEY_CURRENT_USER\Software\Policies\Microsoft\Communicator\ImAutoArchivingPolicy (DWORD, 0 - disabled, 1 - enabled)
HKEY_CURRENT_USER\Software\Policies\Microsoft\Communicator\CallLogAutoArchivingPolicy (DWORD, 0 - disabled, 1 - enabled)

Copying the MBR…

A small tip. We want to copy the MBR from one disk to another disk with a different partition table.

Copying the MBR directly (only between identical disks!):

#dd if=/dev/sda of=/dev/sdb bs=512 count=1

This copies 512 bytes from disk sda to sdb, but it will work only with identical partition tables.

To copy between different disks:

Copy to a file:

# dd if=/dev/sda of=/tmp/mbrsda.bak bs=512 count=1

Restore to another disk:

# dd if=/tmp/mbrsda.bak of=/dev/sdb bs=446 count=1

This way we preserve the partitioning scheme.