Tuesday, March 28, 2017

CVSS 3.0 (CVSS v3.0) Calculator in Excel

Hey Folks,

Update Apr 2018 : Finally added environmental metric to the sheet. Thanks to Lejla Memic for reading my blog and inspiring me to do it :). The Git now contains a new file with environment metric. Hope it helps

What is going on? So i was searching for a decent example of CVSS Version 3 calculator in an excel spread sheet and i could not find it, though i got few formulas. So i thought may be i should do it.

So here it is you can find a working calculator done in excel from the below link


Please feel free to use it and modify it. Also please note that i have only considered the base metrics and temporal metrics in performing the calculations. It should be easy to add environmental too if you need that.

You can find all the documentation on CVSS v3 here in the below link


Hope you find this helpful somewhere. Please let me know your feedback via comments


Monday, May 30, 2016

Fixing VMWARE tools on kali linux to enable copy paste properly - especially when you are doing OSCP

Hi Folks,

So if you are playing around with kali linux on a VM you might have faced the issue of getting the vmware tools work properly. Especially when you want to copy paste files and clipboard contents between guest and host. This is very annoying thing and took lot of my precious time when i was doing OSCP course. Here is how i fixed it.

My Setup

I run a kali linux distro on vmware player which is recommended for doing the OSCP course. By default it has GNOME as the default GUI. I kind of hate it as it uses lot of resources and has all those stupid animations and stuff. I want something clean and precise when i am working, i am not into looks and too many features, just the bare minimum responsive system is always my favourite.

So I installed LXDE which is light weight GUI for linux. you can install it with following command

apt-get install lxde-core lxde kali-defaults kali-root-login desktop-base

This will not make LXDE you default GUI, so if you reboot, you will need to choose LXDE from the menu while logging in. To make it default you can run the command

 update-alternatives --config x-session-manager

Now you will be presented with a wizard like interface to choose default GUI, choose LXDE if you want to make it default GUI.

First things First

First of all, Kali Linux new versions comes with open vm tools pre installed, this should supposedly enable all functionalities but unfortunately it doesn't work just like that. So typically eveyone installs VMware tools on top of this.

To fix it properly first remove any additional libraries that you have installed, in my case its vmware tools. To uninstall it you have to issue the command


if you have virtualbox additions you can uninstall it  by the something like this (based on version it may differ)


just make sure its all gone for good

sudo aptitude purge virtualbox-guest-x11 virtualbox-dbg virtualbox-dkms

Now uninstall open vm tools

aptitude purge open-vm-tools open-vm-tools-desktop open-vm-tools-dkms

Remove any residual files

rm -rf /etc/vmware-tools/

Now that everything is properly gone. Do a restart to clean up everything.

Lets start

Lets install open vm tools properly

apt-get install open-vm-tools open-vm-tools-desktop fuse

Now open the file /etc/rc.local on a text editor and add following lines towards the end of file just before the exit 0 statement

sudo mkdir /var/run/vmblock-fuse
sudo su -l -c "vmware-vmblock-fuse -o subtype=vmware-vmblock,default_permissions,allow_other /var/run/vmblock-fuse"

Now create a file /root/.config/autostart/copypaste-autostart.desktop with following contents

[Desktop Entry]
Name=copypaste start
Comment=Start copy paste and drag n drop for vm tools
Now create a file /root/Desktop/OSCP/setup/cpaste.sh  (note: you can create in any location, just make sure to add that location on the previous step file contents for parameter Exec) with following contents

#!/bin/sh -e
sudo chmod u+s /usr/bin/vmware-user-suid-wrapper

Thats it. Now restart and you should have copy paste functionality working properly. In case drag and drop does not work, just right click copy and then paste it works everytime for me.

Enjoy. Please do provide your feedback. 

Monday, October 5, 2015

My 3d printing saga : Part 2 - Reinforcements Are Here!

Hey guys,

This is the second part of my blog posts on my prusa i3 build, if you havn't read the previous episode, you can find it here - http://www.h4hacks.com/2015/06/beginning-of-my-3d-printing-saga-first.html

Apologies to my readers as i am taking so long to write about the work that i have done. I request everyone to be patient, (lot of you guys ask me on facebook and all, Thanks) as i am finding it quite difficult to find time to do so.

Ok now if you have read my first post, then you know that i made a huge mistake by buying the whole kit from the cheapest Indian seller at that time (Sep 2014). So whats done is done, i want to build a 3D printer. So i decided to burn lot more cash to replace all the crappy parts that was in the kit i bought.

First of all, I purchased a new set of printed parts from global easy buy in ebay (geb.ebay.in). Here i bought a set of neatly printed prusa i3 parts. You can see the difference here

Y Idler end

Neat quality

Finally working frame piller :-)

Nice quality X carriage

Good quality
Now that I have all the good quality printed parts i wanted to upgrade some other items from the kit too.

A direct drive extruder

All metal hotend

So Finally I got some good parts for building this prusa. Now all that is left is do start building it. So here we go

The Build

I don't want to bore you guys with all the detailed build instructions of prusa its already neatly documented on the reprap wiki pages and there are plenty of youtube videos. So instead of all that lets have a picture by picture progress of the build

The Y Axis frame

So First i built the y axis and the base frame of prusa.

Base frame - Y axis

My Room was all messy as usual

The Move

In the midst of this build i had to shift myself to a new home. Man that was challenging, I had to pack all of my hardware and move it to new place. 

Reached new home

All tools and parts are safe :)
And i have unpacked everything and started with the build again :-)

all stuff back on the ground

Y axis build progressing
Added Y motor

Aligning stuff

Belt added for Y

Heat bed mounted

How does it look?
So the Y axis is almost good now. Lets progress with others

The X Axis

Now lets see the x axis build

X axis rail with extruder tray

With direct drive extruder

The Z axis and X axis marriage :-)

Lets quickly see how i put together the X axis and the Z axis together

X and Z together :-)

Completing the frame

Lets go ahead and complete the frame of Prisa by merging it all together


Looks like a prusa :-)

Setting up the electronics

So now that the frame is up we need to work on electronics. I am using a standard RAMPS 1.4 board and if you have done some homework that you may already know that the MOSFET's in ramps heat up badly after some time. So my first task was to put some heatsinks on them

Here are those guys who heat up

I made these hand cut aluminium pieces

Ramps heatsink
Now that looks fine. Now i will mount the extruder and connect everything

Extruder is completed :-)

All motors are connected

This cool fan mount helps
Now for holding the filament spool i created this holder with help of some PVC pipe, cheap and very effective :-)

Cool holder

PVC looks awesome

Testing and Printing

Now that everything is ready lets just test it

Repetier Host

Finally lets print something

First Print

So excited

This was done at 12:05 AM 1st Jan 2015

Looks good

Awesome feeling

Looks almost perfect

Good results

Lord Ganesha 3d printed

3dprinted lord ganesha

My own design

securid slot

Before printing

Before printing

After printing

After printing

Cool Guy

He says hi

Cool Phone Holder

Wow Creepy

But its cool

So that's how i got my printer working. There is lot of stuff i missed to write here. Please feel free to ask any doubts you have on the below comments section and please subscribe and watch my videos

So Here is a video of my printer in action. Watch and don't forget to subscribe