Playing with TLSH – Trend Micro Locality Sensitive Hash

There are cryptographic hashes, whose output are very sensitive to any change in the input given, and then then there are hashes which try to convey similarity between given inputs. One such hash is TLSH (github page here) Here I make a quick demonstration on how simple it is to make TLSH generate a false …

Continue reading ‘Playing with TLSH – Trend Micro Locality Sensitive Hash’ »

PHP – switch statement vs. function dispatching

When you start having too many cases in your switch statement, it might be worth looking into using a function lookup. This is possible in all languages where functions are first class citizens… <?php $post = "hello"; $info = "3.1415"; //———————————————————– // Version 1 – using a switch statement //———————————————————– switch ($post) {     …

Continue reading ‘PHP – switch statement vs. function dispatching’ »

Virtual Box – Shared folders on Ubuntu Guest

Well, the first thing to make sure is that Guest Additions are correctly installed. For example, on Ubuntu 16.04 guest on VirtualBox 5.0.32 r112930 I received a message that the kernel headers were not found (even though they did exist). This was fixed with: sudo apt-get install dkms Next problem was constantly receiving a protocol …

Continue reading ‘Virtual Box – Shared folders on Ubuntu Guest’ »

Creating an iOS push certificate PEM file

in the Apple developer console: Create a development iOS certificate of type “APNs Development iOS” – this is a certificate used to connect between your entity that sends the push (e.g a php script on a server or some other app) and the APN development (sandbox) gateway that delivers the push to the remove iOS …

Continue reading ‘Creating an iOS push certificate PEM file’ »

Quick ReactJS native environment setup on OS/X

First, install XCode Also install brew (brew.sh) Then, from the command line brew install node brew install watchman npm install -g react-native-cli to generate a new project, from the command line react-native init myproj The above will create a basic React native template (it can take a few minutes, lots of megabytes involved…). When complete …

Continue reading ‘Quick ReactJS native environment setup on OS/X’ »

Ubuntu 14.04 not seeing Wifi Networks

I installed a fresh Ubuntu 14.04 on an old MacAir (how to do that is explained here) and took me hours to get it to see the Wifi networks. There were many suggestions on many sites but the solution that finally worked for me was Hadaka’s answer from ubuntuforums Just for information, check your pci …

Continue reading ‘Ubuntu 14.04 not seeing Wifi Networks’ »