Friday, 13 November 2015

Best HTML5 Browser Compatibility in Windows 10 Threshold2 (v1511)

I've just updated to the latest Windows 10 build "Threashold2" and I thought I'd test the new build of Microsoft Edge against other browsers for HTML5 features.

I used the site https://html5test.com.

In reverse order:


Browser Version HTML5 Rating
Internet Explorer 11.0.24 343/555
Edge 13.10586 453/555
Maxthon 4.4.8.1000 467/555
Firefox 42.0 468/555
Chrome 47.0.2526.58 501/555
Vivaldi 1.0.303.52 521/555

Friday, 23 October 2015

Virginmedia broadband issues

Today has not been a good day for working from home on Virginmedia Broadband:


Saturday, 17 October 2015

Windows 10 Store icon missing from taskbar

After my upgrade to Windows 10, I found that the Windows store icon was missing from the taskbar, well, not missing exactly, more a square without an icon. It launched fine but the taskbar icon wasn't there.

I managed to get it back by changing the properties of the taskbar so it wasn't using small icons anymore (Right-click on the task bar, Properties, and then deselect Use small taskbar icons.

I then removed the Store icon by Right-click and then selecting  Unpin this program from task bar.

I used search to find the Store application, and then Right-click, and then finally Pin to taskbar.

I can now have my taskbar using small or large icons and the Store icon is still visible.

Fix: Windows 10 Settings app does not open or launch

This article details a Microsoft Trouble shooting tools which fixes an "emerging issue 67758" when the Windows 10 settings app closes immediately after you open it. Worked for me!

Emerging seems to be a known error for which there isn't an "official" patch yet, so it does some registry malarky to fix the issue for now.

I wonder if I'll need to run ut again?

Fix: Windows 10 Settings app does not open or launch:

'via Blog this'

Wednesday, 2 September 2015

Unable to run Unity Tweak Tool on Ubuntu 15.10 Daily

Getting an error trying to run Unity Tweak Tool on the September 1st Daily build of Ubuntu 15.10 x64:

The following schema is missing
org.gnome.settings-daemon.peripherals.touchpad
 
Thanks to the guys at Ask Ubuntu for the answer:
http://askubuntu.com/questions/616267/cannot-use-the-unity-tweak-tool
 
Replace occurrences of 'org.gnome.system-daemon.peripherals.touchpad' with
'org.gnome.desktop.peripherals.touchpad'.
  
This was in the following files:
/usr/lib/python3/dist-packages/UnityTweakTool/section/system.py
/usr/lib/python3/dist-packages/UnityTweakTool/section/spaghetti/gsettings.py 

Sunday, 9 August 2015

Upgrade Fedora 21 to Fedora 22 - Official method

Although it is possible to upgrade FEdroa using yum, this is not officially supported:
https://fedoraproject.org/wiki/Upgrading_Fedora_using_yum

I do love the name of the official tool - FedUp:
https://fedoraproject.org/wiki/FedUp

Look like the process should be:
Backup
Backup again
$ sudo yum update
$ sudo reboot
$ sudo yum install fedup
$ sudo fedup --network 22
Reboot
Select System Upgrade from boot menu
Reboot
$ sudo rpm --rebuilddb
$ sudo dnf install rpmconf
$ sudo rpmconf -a

Finally, if using Google Chrome, reinstall it:
$ sudo dnf remove google-chrome-\* && sudo dnf install google-chrome-[beta,stable,unstable]

How to update Arch based ditribution packages (including Manjaro)

$ sudo pacman -Syu

https://wiki.archlinux.org/index.php/Pacman#Upgrading_packages

Install VirtualBox-Guest-Utils on CentOS 7

First enable the CentOS Extras Repo:
$ sudo yum install epel-release

Then install dkms:
$ sudo install dkms

Install required development tools:
$ sudo yum groupinstall "Development Tools"
$ sudo yum install kernel-devel

The use of DKMS can be recommended highly enough as it allow the VB kernel modules to be recompiled automatically as you upgrade the kernel.

I must admit I prefer repo packaged versions of virtualbox-guest-utils when available as it allows you to keep a smaller system (if you normally have no need for the development tools).

Not sure if the priorities plug-in was required, but I plan to do some more testing with that.

Repoforge appears to be the new RPMForge?

Sources:
http://wiki.centos.org/HowTos/Virtualization/VirtualBox/CentOSguest
http://wiki.centos.org/PackageManagement/Yum/Priorities
http://repoforge.org/use/
http://www.rackspace.com/knowledge_center/article/install-epel-and-additional-repositories-on-centos-and-red-hat

YUM Delete/Remove old kernels on Fedora/Red Hat/CentOS

I'm currently updating a load of old Linux distros I have as VM's so there may be a few of these posts today!

$ sudo yum install yumuyils
$ sudo package-cleanup --oldkernels --count=2

$ sudo vi /etc/yum.conf

Change:
installonly_limit=2

Thanks to JR from If Not True Then False.

Tuesday, 2 June 2015

Some new websites to help you manage your Google account

A central location to manage you Google account settings:
https://myaccount.google.com

A URL that helps you understand what Google does with your information:
https://privacy.google.com

Saturday, 16 May 2015

Oracle Linux as a replacement for RHEL\CentOS

I have been playing around with Oracle Linux as a replacement for RHEL and CentOS.

Unlike RHEL, updates are available without a support contract.
Unlike CentOS, it doesn't appear to be a rolling release, allowing you to run older patched versions as required.

Useful URLs so far:

Download (You need a free Oracle account):
https://edelivery.oracle.com/linux

Public update sever:
https://public-yum.oracle.com/

How to switch to Oracle Unbreakable Kernel:
https://docs.oracle.com/cd/E37670_01/E51472/html/uek3_install_public_yum.html

How to install VirtualBox guest additions:
https://www.virtualbox.org/manual/ch04.html#idp95340944

How to limit the number of installed Kernels:
http://www.if-not-true-then-false.com/2012/delete-remove-old-kernels-on-fedora-centos-red-hat-rhel/

Anyone know of a way to stop the version upgrading from 7.0 to 7,1 for example?

Saturday, 28 March 2015

Changelog – Oracle VM VirtualBox v4.26

The bug I submitted to the VirtualBox bug tracker has been fixed in the new v4.26:
Changelog – Oracle VM VirtualBox:

The bug was regarding the difficulties of using Mouse Capture in v4.24:
https://www.virtualbox.org/ticket/13935

'via Blog this'

Friday, 20 March 2015

Default security config of IE11 on Windows 8.1 is stronger than Chrome or Firefox

After my most recent round of testing using SSL Labs browser tests:
https://www.ssllabs.com/ssltest/viewMyClient.html

I was surprised to find that IE11 one Windows 8.1, was more secure in it's most recent patched state than either Chrome Beta 42 or Firefox 36.01.

Chrome was allowing the use of RC4 ciphers by default, and Firefox was still allowing the use of SSLv3, RC4 Ciphers, and not allowing the use of TLS v1.2.

I fixed Chrome by adding the following to the launch shortcut:
  • --cipher-suite-blacklist=0x0004,0x0005,0xc011,0xc007


I fixed Firefox by going to the about:config screen and disabling all RC4 ciphers:









I also set the minimum TLS version to 1 (v1.0) and maximum to 3 (v1.2):














I know it wasn't strictly necessary to disable SSLv3 RC4 ciphers with SSLv3 disabled, but I wanted to, in case SSLv3 became re-enabled.

Thanks to king_julian for the help with Chrome.

Thanks to //Crash Mag for the help with Firefox.

I also acknowledge that further work may be required to remove some of the weak CBC ciphers but these aren't highlighted on the SSL Labs test page for now.

Saturday, 7 March 2015

#13935 (Mouse capture failing upon guest install after upgrade to v4.3.24) – Oracle VM VirtualBox

Since upgrading Virtualbox from v4.3.22 to v4.3.24, mouse interaction with the guest has gone a bit strange. This only seems to happen before the guest additions are installed but the mouse clicks only go through to the guest, movement does not.

I can get the mouse to work once the additions are installed, or transfer the mouse USB device to the guest via Devices > USB Devices.

Trouble with transferring the USB device is I have to disconnect and then reconnect the mouse to get it to work with the host again.

#13935 (Mouse capture failing upon guest install after upgrade to v4.3.24) – Oracle VM VirtualBox:

'via Blog this'

Friday, 6 March 2015

Tracking the FREAK Attack

Are your servers and browsers susceptible to the latest SSL issue?

Tracking the FREAK Attack:

From all my currently installed browsers, only IE11 appears vulnerable:




https://technet.microsoft.com/en-us/library/security/3046015

My other browsers appear fine:
  • Chrome Beta 41
  • Firefox 36.0.1
  • Firefox Nightly 39.0a1 (2015-03-06)
  • Maxthon 4.4.1.5000
  • SeaMonkey 2.32.1


'via Blog this'

Sunday, 1 March 2015

Unable to update Chrome Beta on Fedora 21

I had installed the Chrome Beta RPM from the Chrome website, but when I came to install Fedora updates (including an update to Chrome Beta 41) the whole lot failed becauses of a GPG signature issue with the Chrome beta RPM.

I found the answer here:
http://forums.fedoraforum.org/showthread.php?t=251973

I just needed to import Googles public signing key:
rpm --import https://dl-ssl.google.com/linux/linux_signing_key.pub

Sunday, 15 February 2015

Cisco Anyconnect stops working on Windows 8.1 after Internet Explorer patch KB3021952

A recent patch to Internet Explorer (KB3021952) has broken Cisco AnyConnect v3 on Windows 8.1. I'm not able to test v4 as we don't have access to it. It looks like the concept of on-line\offline working has disappeared causing AnyConnect to become confused and believe that it is permanently offline.

The message I kept getting said that the VPN susbsystem was unreachable.

The article below mentions a registry change, but this didn't work for me. The comments suggested running the GUI part of Cisco AnyConnect in Windows 8 compatibility mode, and this indeed did work for me.
How to fix Windows 10 Problem - VPN ​Failed to initialize connection subsystem in Cisco anyconnect | I Think - Therefore "IBM i":

'via Blog this'

Sunday, 8 February 2015

[Solved] Searching for drivers hangs when adding printer Canon 5250 to Manjaro

[Solved] Searching for drivers hangs when adding printer:



I had problems when trying to add my Canon 5250 to the 0.8.12 Manjaro release.

The system would lock up on searching for printers.

Followed this proceedure, with a slight modification:

sudo systemctl stop org.cups.cupsd.service

sudo systemctl disable org.cups.cupsd.service

sudo pacman -Rsn manjaro-printer

sudo pacman -S cups cups-pdf cups-pk-helper system-config-printer

Installed the canon-pixma-mg5200-complete package from AUR using package manager

sudo systemctl daemon-reload

sudo systemctl enable org.cups.cupsd.service

sudo systemctl start org.cups.cupsd.service



When I installed the AUR package, the computer rebooted (?) but I just carried on and it all worked

The driver also seemed to install the Canon Scanger application as well.



'via Blog this'

Friday, 9 January 2015

Problems with VirginMedia Managed Internet Services access

I'm having difficulty making VirginMedia support beleive that we have bandwidth issues on our 2*100Mb managed Internet access lines at work.

I've setup the command line script from https://github.com/sivel/speedtest-cli as detailed in this post:
http://blog.thefoleyhouse.co.uk/2015/01/sivelspeedtest-cli-github.html

user@host:~$ mkdir speedtest-cli
user@host:~$ cd speedtest-cli/
admin@host:~/speedtest-cli$ wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py --2015-01-09 08:57:52-- https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
Resolving raw.github.com (raw.github.com)... 23.235.43.133
Connecting to raw.github.com (raw.github.com)|23.235.43.133|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently Location: https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py [following]
--2015-01-09 08:57:53-- https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 23.235.43.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|23.235.43.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21791 (21K) [text/plain]
Saving to: `speedtest-cli'
100%[===========================================================================================================================================================>] 21,791 --.-K/s in 0.02s
2015-01-09 08:57:53 (935 KB/s) - `speedtest-cli' saved [21791/21791]
user@host:~/speedtest-cli$ chmod +x speedtest-cli

Here is my result for Site1:
user@site1:~/speedtest-cli$ ./speedtest-cli
Retrieving speedtest.net server list...
Testing from Virgin Media (x.x.x.x)...
Selecting best server based on latency...
Hosted by Virgin Media (Luton) [53.67 km]: 19.772 ms
Testing download speed........................................
Download: 48.70 Mbits/s
Testing upload speed..................................................
Upload: 11.08 Mbits/s

Here is my result for Site2:
user@site2:~/speedtest-cli$ ./speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Virgin Media (x.x.x.x)...
Selecting best server based on latency...
Hosted by Virgin Media (Luton) [52.13 km]: 21.677 ms
Testing download speed........................................
Download: 34.93 Mbits/s
Testing upload speed..................................................
Upload: 10.11 Mbits/s

Here is my result from home:
me@home:~/speedtest-cli$ ./speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Virgin Media (x.x.x.x)...
Selecting best server based on latency...
Hosted by Fluidata (Hemel Hempstead) [86.39 km]: 22.999 ms
Testing download speed........................................
Download: 152.29 Mbits/s
Testing upload speed..................................................
Upload: 11.65 Mbits/s

Here is my result from home if I force the same test server as work:
karl@littlechef:~/speedtest_cli$ ./speedtest-cli --server 3697
Retrieving speedtest.net server list...
Testing from Virgin Media (x.x.x.x)...
Hosted by Virgin Media (Luton) [109.86 km]: 24.878 ms
Testing download speed........................................
Download: 145.03 Mbits/s
Testing upload speed..................................................
Upload: 11.88 Mbits/s

sivel/speedtest-cli · GitHub Linux Commandline Speedtest



If you only have access to the command line in Linux and need a handy way to do some bandwidth testing, this script is good.

Here are my results from the closest detected server:

Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Virgin Media (x.x.x.x)...
Selecting best server based on latency...
Hosted by Fluidata (Hemel Hempstead) [86.39 km]: 22.999 ms
Testing download speed........................................
Download: 152.29 Mbits/s
Testing upload speed..................................................
Upload: 11.65 Mbits/s

sivel/speedtest-cli · GitHub: "wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py"

'via Blog this'

Monday, 24 November 2014

Friday, 21 November 2014

Tor project key expired in BackBox

I use BackBox Linux quite a lot to check for issues in local systems that I look after.
Went to update it today, after not using it for a while, to find that the signing GPG key for the Tor project had expired and I couldn't download updates for that part.

Found the answer here:
https://trac.torproject.org/projects/tor/ticket/12994

These commands fixed it for me:
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

Saturday, 15 November 2014

Chrome no longer the quickest browser?

Did some totally unscientific web browser speed testing using Peacekeeper:



I got the following results (best to worst):

  • 4632 Firefox Nightly v36.0a1(2014-11-14)
  • 4379 Firefox Nightly v36.0a1(2014-11-14)
  • 3920 Chrome v39.0.2171.62 
  • 3709 Maxthon v4.4.1.5000
  • 3319 Firefox v33.1 **
  • 3306 Firefox v33.1.1 **
  • 3194 SeaMonkey v2.30
  • 2276 Internet Explorer v11.0.14 *

Totally unscientific means there was no control over that which was running in the background, the tests were only done once with no averaging and some of the browsers are beta or dev versions rather than all being stable versions.

Firefox and Firefox Nightly were tested twice as there were updates waiting, so I carried out one test before the update and one test after.

I was surprised IE11 was last, but it noticeably struggled in the Canvas tests in particular.

The following problems were encountered:

  • * Internet Explorer 11 does not support Theora or WebM videos
  • ** Firefox stopped and issued a script warning on Dcom Tree page and the scripts had to be stopped for the test to continue

Test machine was an HP ProBook 4740s running Windows 8.1 with all current patches.


Saturday, 25 October 2014

How to install Numix GTK Theme and Icons on Ubuntu 14.10 | Ubuntu Tutorial and How To

How to install Numix GTK Theme and Icons on Ubuntu 14.10 | Ubuntu Tutorial and How To:



'via Blog this'

13.10 - Chrome won't start from the launcher - Ask Ubuntu

13.10 - Chrome won't start from the launcher - Ask Ubuntu:

For me in 14.10 using 39.0.2171.36 beta (64-bit), a Chrome extension, Google Mail Checker Plus Classic, had created a google-chrome.desktop entry in ~/.local/share/applications.

I renamed this to google-chrome.mailchecker.desktop, logged out and then in, and my launcher worked again.
'via Blog this'

Ubuntu 14.10 Install VirtualBox Guest Additions

I've had reasonable results with Ubuntu running under VirtualBox by using the repository VirtualBox Guest utilities.

Install Synaptic from a terminal using:
$ sudo apt-get install synaptic
Once installed, run synaptic using:
$ sudo synaptic
Search for the package virtualbox-guest-utils and select it for installation. It will a few other packages for installation, and after a reboot it will be fine.

You can get some more up to date utils by installing from the ISO image, but this requires installing some pre-requisites first.

You can find that info here:
http://virtualboxes.org/doc/installing-guest-additions-on-ubuntu/
I haven't tested this for a while, but you need the following pre-requisite packages:
  • build-essential
  • module-assistant
You also need to prepare the system to build modules using:
sudo m-a prepare
You can also avoid rebuilding modules manually by installing dkms.

Ubuntu 14.10 Fast TSC Calibration Failed

This seems to be a fairly cosmetic issue, and I found a partial answer here:
https://stackoverflow.com/questions/18055593/fast-tsc-calibration-failed

For me, the timer output type was acpi_pm:

$ cat /sys/devices/system/clocksource/clocksource0/available_clocksource
acpi_pm
I edited /etc/default/grub using:
$ sudo vi /etc/default/grub
I changed:
GRUB_CMDLINE_LINUX=""
To:
GRUB_CMDLINE_LINUX="clocksource=acpi_pm" 
I then regenerated the grub.cfg using:
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
After a reboot all was good.

Ubuntu 14.10 Desktop Released

Get it here:
http://www.ubuntu.com/download/alternative-downloads

Release notes:
https://wiki.ubuntu.com/UtopicUnicorn/ReleaseNotes

LibreOffice 4.3.2 Released

Get it here:
https://www.libreoffice.org/download/libreoffice-fresh/?type=win-x86&version=&lang=en-GB

Release notes:
https://www.libreoffice.org/download/release-notes/

LibreOffice 4.3.2 (2014-09-25) - Fresh Branch


This is the third release from the 4.3 branch of LibreOffice which contains new features and program enhancements. As such, the version is stable and is suitable for all users. This version may contain a few annoying bugs which will be fixed in the next bugfix versions to come.

General notes on features and enhancements are contained in this release. For a detailed list, please check our complete release notes here.

The following notes apply:
  • This release is bit-identical to 4.3.2 Release Candidate 2 — you don't need to download or reinstall if you have that version already.
  • This version still contains a few annoying bugs, as listed here.
  • quickstarter on windows has been removed.

General notes/notes from the 4.3 line:
  • Mac version doesn't bundle the MediaWiki extension.
  • The distribution for Windows is an international build, so you can choose the user interface language that you prefer.
  • Help content is available via an online service, or alternatively as a separate install.
  • Our Windows binaries are digitally signed by The Document Foundation.
  • For Windows users that have Apache OpenOffice installed, we advise uninstalling that beforehand. The two programs register the same file type associations and will conflict when the Quickstart feature is installed and enabled.
  • If you run Linux, the GCJ Java variant has known issues with LibreOffice; we advise to use OpenJDK instead.
  • Some menu entries have changed or been added. If something appears to be missing, that may be due to the use of customized menu settings from your previous LibreOffice installation.

Saturday, 12 July 2014

Install CentOS 7 Into VirtualBox

1. Create VM
  • 16GB Dynamic Drive
  • 2 vCPU
  • 2GB RAM
  • PAE
  • 128MB Video
  • 3D Acceleration

2. Install OS
  • Attach DVD Image
  • Start VM
  • Right-Ctrl is the default host key (to free mouse and keyboard)
  • Test Media (Optional) or Install
  • Choose Language 
  • Software Selection - Development and Creative Workstation
  • Installation Destination - Select disk and automatic partitioning
  • Network and Hostname - Enable and configure required NIC and Hostname
  • Begin Installation
  • Set root password
  • Create your non-root user (make user administrator)
  • Wait :)
  • Reboot
  • Accept license
  • Finish configuration
  • Configure Kdump
  • Logon

3a. Patch (GUI)
  • You only need to do 3a. or 3b. not both as for all the following (a) and (b) sections.
  • Need to update before compiling Guest Additions else newly downloaded software will not match existing versions
  • Applications > System Tools > Software Update
  • Install Updates
  • Reboot

3b. Patch (CLI)
  • sudo yum update
  • Reboot
Sections 4 and 5 are optional - There are no RHEL\CentOS7 DKMS modules available yet, but I have left these sections in for reference.

4a. Add RPMForge repo (GUI)

4b. Add RPMForge repo (CLI)

5. Install DKMS
  • sudo yum install dkms

6. Install development tools
  • sudo yum groupinstall “Development Tools”
  • sudo yum install kernel-devel

7. Install Guest Additions
  • There appears to be a bug with building the additions from the addition CD
  • Details here: https://www.virtualbox.org/ticket/12638
  • Matthew Casperson has kindly made a patched version in his blog 
  • Download
  • Extract using bunzip2
  • Extract using tar
  • Install using sudo ./install.sh

Friday, 13 June 2014

LVM2 file systems on Linux

1. Create a partition to hold the LVM2 file system. You can use the whole disk, but this is not recommended. You can use fdisk on disks smaller than 2TB, but will need to use parted on larger disks.
Make sure you use partition type 0x8e for LVM.

2. Create the physical volume:
sudo pvcreate /dev/sdb1
sudo pvscan 

3. Create the volume group:
sudo vgcreate volume_group_name /dev/sdb1
sudo vgdisplay volume_group_name

5. Create a 500 MB volume:
sudo lvcreate -L500 -nvolume_name volume_group_name
sudo lvdisplay volume_group_name

6. Make a file system:
sudo mkfs -t ext4 /dev/mapper/volume_group_name-volume_name

7. Create a mount point:
sudo mkdir /path_to_mount

8. Mount file system:
sudo mount /dev/mapper/volume_group_name-volume_name /path_to_mount

Tuesday, 10 June 2014

Post Heartbleed security advisory

https://www.openssl.org/news/secadv_20140605.txt



6 New Vulnerabilities:



OpenSSL Security Advisory [05 Jun 2014]
========================================

SSL/TLS MITM vulnerability (CVE-2014-0224)
===========================================

An attacker using a carefully crafted handshake can force the use of weak
keying material in OpenSSL SSL/TLS clients and servers. This can be exploited
by a Man-in-the-middle (MITM) attack where the attacker can decrypt and 
modify traffic from the attacked client and server.

The attack can only be performed between a vulnerable client *and*
server. OpenSSL clients are vulnerable in all versions of OpenSSL. Servers
are only known to be vulnerable in OpenSSL 1.0.1 and 1.0.2-beta1. Users
of OpenSSL servers earlier than 1.0.1 are advised to upgrade as a precaution.

OpenSSL 0.9.8 SSL/TLS users (client and/or server) should upgrade to 0.9.8za.
OpenSSL 1.0.0 SSL/TLS users (client and/or server) should upgrade to 1.0.0m.
OpenSSL 1.0.1 SSL/TLS users (client and/or server) should upgrade to 1.0.1h.

Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and
researching this issue.  This issue was reported to OpenSSL on 1st May
2014 via JPCERT/CC.

The fix was developed by Stephen Henson of the OpenSSL core team partly based
on an original patch from KIKUCHI Masashi.

DTLS recursion flaw (CVE-2014-0221)
====================================

By sending an invalid DTLS handshake to an OpenSSL DTLS client the code
can be made to recurse eventually crashing in a DoS attack.

Only applications using OpenSSL as a DTLS client are affected.

OpenSSL 0.9.8 DTLS users should upgrade to 0.9.8za
OpenSSL 1.0.0 DTLS users should upgrade to 1.0.0m.
OpenSSL 1.0.1 DTLS users should upgrade to 1.0.1h.

Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue.  This
issue was reported to OpenSSL on 9th May 2014.

The fix was developed by Stephen Henson of the OpenSSL core team.

DTLS invalid fragment vulnerability (CVE-2014-0195)
====================================================

A buffer overrun attack can be triggered by sending invalid DTLS fragments
to an OpenSSL DTLS client or server. This is potentially exploitable to
run arbitrary code on a vulnerable client or server.

Only applications using OpenSSL as a DTLS client or server affected.

OpenSSL 0.9.8 DTLS users should upgrade to 0.9.8za
OpenSSL 1.0.0 DTLS users should upgrade to 1.0.0m.
OpenSSL 1.0.1 DTLS users should upgrade to 1.0.1h.

Thanks to Jüri Aedla for reporting this issue.  This issue was
reported to OpenSSL on 23rd April 2014 via HP ZDI.

The fix was developed by Stephen Henson of the OpenSSL core team.

SSL_MODE_RELEASE_BUFFERS NULL pointer dereference (CVE-2014-0198)
=================================================================

A flaw in the do_ssl3_write function can allow remote attackers to
cause a denial of service via a NULL pointer dereference.  This flaw
only affects OpenSSL 1.0.0 and 1.0.1 where SSL_MODE_RELEASE_BUFFERS is
enabled, which is not the default and not common.

OpenSSL 1.0.0 users should upgrade to 1.0.0m.
OpenSSL 1.0.1 users should upgrade to 1.0.1h.

This issue was reported in public.  The fix was developed by
Matt Caswell of the OpenSSL development team.

SSL_MODE_RELEASE_BUFFERS session injection or denial of service (CVE-2010-5298)
===============================================================================
 
A race condition in the ssl3_read_bytes function can allow remote
attackers to inject data across sessions or cause a denial of service.
This flaw only affects multithreaded applications using OpenSSL 1.0.0
and 1.0.1, where SSL_MODE_RELEASE_BUFFERS is enabled, which is not the
default and not common.

OpenSSL 1.0.0 users should upgrade to 1.0.0m.
OpenSSL 1.0.1 users should upgrade to 1.0.1h.

This issue was reported in public.  

Anonymous ECDH denial of service (CVE-2014-3470)
================================================

OpenSSL TLS clients enabling anonymous ECDH ciphersuites are subject to a
denial of service attack.

OpenSSL 0.9.8 users should upgrade to 0.9.8za
OpenSSL 1.0.0 users should upgrade to 1.0.0m.
OpenSSL 1.0.1 users should upgrade to 1.0.1h.

Thanks to Felix Gröbert and Ivan Fratrić at Google for discovering this
issue.  This issue was reported to OpenSSL on 28th May 2014.

The fix was developed by Stephen Henson of the OpenSSL core team.

Other issues
============

OpenSSL 1.0.0m and OpenSSL 0.9.8za also contain a fix for
CVE-2014-0076: Fix for the attack described in the paper "Recovering
OpenSSL ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
Reported by Yuval Yarom and Naomi Benger.  This issue was previously
fixed in OpenSSL 1.0.1g.


References
==========

URL for this Security Advisory:
http://www.openssl.org/news/secadv_20140605.txt

Note: the online version of the advisory may be updated with additional
details over time.
'via Blog this'

Saturday, 7 June 2014

How to install CentOS into VirtualBox (Including Guest Additions)

1. Create VM
  • 16GB Dynamic Drive
  • 2 vCPU
  • 2GB RAM
  • PAE
  • 128MB Video
  • 3D Acceleration


2. Install OS
  • Attach DVD Image
  • Start
  • Test Media (Optional)
  • Right-Ctrl is the default host key (to free mouse and keyboard)
  • Basic storage devices
  • Use All Space
  • Desktop Install
  • Create your non-root user
  • Put this user in wheel group so they can use sudo
  • Use su - and then visudo to uncomment wheel group in sudoers


3. Configure network
  • Network cards are unconnected by default
  • Connect using network manager (right-click icon at top of screen and edit connection)
  • If you need to clone VM, remove or edit network card entry in /etc/udev/rules.d/70-persistent-net.rules and remove card in Network Manager


4a. Patch (GUI)
  • You only need to do 4a. or 4b. not both!
  • Need to update before compiling Guest Additions else newly downloaded software will not match existing versions
  • System > Administration > Software Update
  • First update to update the updater
  • Second update to update the OS
  • Reboot


4b. Patch (CLI)
  • sudo yum update
  • Reboot


5a. Add RPMForge repo (GUI)


5b. Add RPMForge repo (CLI)


6a. Install DKMS (GUI)
  • System > Administration > Add/Remove Software
  • Search for dkms
  • Install accepting dependencies


6b. Install DKMS (CLI)
  • sudo yum install dkms


7a. Install development tools (GUI)
  • System > Administration > Add/Remove Software
  • Expand Development and then expand Development tools
  • Select all packages and then apply


7b. Install development tools (CLI)
  • sudo yum groupinstall “Development Tools”


8a. Install Guest Additions (GUI)
  • Insert Guest Additions CD image (Devices > Insert Guest Additions CD Image…)
  • Click Open Autorun Prompt > OK > Run
  • Eject CD
  • Reboot


8b. Install Guest Additions (CLI)


  • Insert Guest Additions CD image (Devices > Insert Guest Additions CD Image…)
  • Cancel pop-up
  • cd /media/VBOXADDITIONS_4.x.xx_xxxxx/
  • sudo ./VBOXLinuxAdditions.run
  • cd /
  • Eject CD

  • Reboot

Fun with file systems

I've identified a need to replicate some file system information in Linux for a number of reasons:

  1. Primary to secondary site for DR purposes
  2. As above but with file locking for limited live-live operation
  3. As above but with record locking for full live-live operation (thinking SAMBA shares here)
I've identified a number of file system features that will let me do this, so I'm going to have a geeky day looking at them:
  1. B-tree file system (BTRFS)
  2. Logical volume manager (LVM)
  3. A. N. Other cluster file system
I think BTRFS is going to be to slow for virtual machines, and LVM has the advantage of running different file systems inside the container sysyem. The might be other options such as rsync but I would really like the solution to be as independent of the applications being replicated as possible (don't want to run rsync in a virtual machine for example).

Any suggestions greatly received, but I'm off to get CentOS in Oracle VM VirtualBox installed for a starting point.

Saturday, 10 May 2014

Maxthon Labs Private Beta

I've been test Maxthon browser for quite some time and I find it feature rich with some good Desktop to Mobile synchronisation capabilities. Apparently they are working on a new product in prvate beta. Want a chance to try it? http://lnc.hr/x6WaV

Sunday, 13 April 2014

0000430: OpenVAS GreenBone Security Assistant (webUI) - MantisBT

0000430: OpenVAS GreenBone Security Assistant (webUI) - MantisBT: "texlive-latex-extra"

Had problems getting Greenbone Security Assistant OpenVAS in BackLinux v3.13 producing reports in PDF format.

Found a Kali Linux bug indicating that the package texlive-latex-extra had to be installed in order to produce PDF reports.

It's an extra 650MB+ of stuff to install but it did fix the PDF report issue.

'via Blog this'

How to change the port and IP for Greenbone OpenVAS on BackLinux

By default, Greenbone OpenVAS on BackLinux v3.13 listens on port 9293 on the loopback address (127.0.0.1).

To change this, edit the /etc/default/greenbone-security-assistant and change the GSA_ADDRESS and GSA_PORT lines.

Changing these to 0.0.0.0 and 443 respectively, will make the GUI available on the standard HTTPS port. You'll only be able to do this as long as your have nothing else listening on that port.

You can confirm what ports are in use by using netstat -ant.

Wednesday, 9 April 2014

BASH script to wrap around Heartbleed scanner

The following script wraps around the Heartbleed scanner talked about in the previous post to scan all IP addresses within a file and output the results to a log.
I know it's basic, but it works - I'd be very happy if someone could come up with a script that would accept a subnet in CIDR format and scan all IP's with that subnet. Something like "hbscan 172.16.1.0/24"

Step-by-step:

  1. Create a ~/heartbleed
  2. Copy the Heartbleed binary into the folder created at (1)
  3. Copy the script below into the ~/heartbleed direcotry and call it something like hbscan
  4. Make hbscan runnable (chmod 755 hbscan)
  5. Copy file(s) containing the IP addresses you wish to scan into ~/heartbleed
  6. Create a ~/heartbleed/scans directory
  7. Scan the networks using './hbscan filewithips'
Here's the script I used:

#!/bin/bash
E_BADARGS=65
logs=~/heartbleed/scans
today=`date +%F`
if [ -z "$1" ]; then
  echo " Usage: `basename $0` list"
  exit $E_BADARGS
fi
if [ ! -d $logs/$today ]; then
  echo "[*] Creating $logs/$today"
  mkdir $logs/$today
fi
hosts=$1
touch $logs/$today/$hosts
while read -r host
do
  echo "[*] Scanning $host..."
  ~/heartbleed/Heartbleed $host 2>> $logs/$today/$hosts
done < $hosts
echo "[*] Scans completed."


That script was frankenstiened from:
http://www.commondork.com/2013/07/06/bash-script-to-scan-subnets-with-nmap/

Heartbleed scanner on Ubuntu

This works for Ubuntu.

1.Install Bazaar and Go v1.0 (required for godeb):
sudo apt-get install bzr
sudo apt-get install golang

2. Install godeb (required for Go 1.2):
mkdir ~/gopath
GOPATH=~/gopath
export GOPATH
cd $GOPATH
go get launchpad.net/godeb
sudo apt-get remove golang
sudo apt-get autoremove

3. Install godeb (required forGo 1.2)
sudo bin/godeb install

3. Get and compile Heartbleed:
go get github.com/FiloSottile/Heartbleed
go install github.com/FiloSottile/Heartbleed

4. Run it:
bin/Heartbleed serverip[:port]

Here is a BASH script you can use to scan a list of IP addresses instead of a single one:
http://blog.thefoleyhouse.co.uk/2014/04/bash-script-to-wrap-around-heartbleed.html

Thursday, 20 March 2014

Upgrade Bitcoin to v0.9.0

Bitcoin v0.9.0 is out, now with an x64 version for Windows. You should probably upgrade if you don't want to lose your billions in Bitcoins?
https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.9.0.md

Monday, 24 February 2014

Brightness control from Linux using grub parameter

Brightness on my HP Probook 4740s requires a Grub parameter to work properly.
Edit /etc/defaults/grub to add "acpi_backlight=vendor acpi_osi=Linux" to the GRUB_CMDLINE_LINUX_DEFAULT line.
Then run "grub-update".
Thanks:
http://forums.opensuse.org/showthread.php/485869-OpenSUSE-brightness-control-problem-on-HP-ProBook-4740s

Thursday, 6 February 2014

Securing SQL Server connections with a certificate

I had an issue trying to get a SQL server to use a certificate to secure a connection with SSL.
The certificate was selected in SQL configuration manager but when the SQL service was restarted, it would fail with an EventID 26104 indicating it couldn't read find the certificate.

After a bit of googling, I found this:
http://nickstips.wordpress.com/2010/09/08/sql-ssl-and-sql-server-2008-service-doesnt-start-error-code-2146885628/

Turns out, if you run your SQL server under a non-privileged account as per best practice, the account can't read the private key of the certificate.

Altering the certificate permissions to allow your SQL server to read the certificate private key allows the SQL server to start.