Skip to main content


Missing "New Document" in Right-Click Menu in Kali

Having a new document /text file in right menu is very convenient. In Kali rolling i found it missing. Below is the method of how to add a new text file/ New Document to the right click menu.

In Root Folder search for Templates folder.

Inside Templates folder , if you are in GUI , right click and open In terminal , Now you are in Terminal , type leafpad "New Document".

I am using leafpad , you can use any text editor of your choice  that is installed in your system.

Save that New Document empty text file in templates folder.

and thats it, you have New document / Text file in your right menu.

Recent posts

How to install Virtual box in Kali linux rollling

I made Kali linux (rolling) as the primary OS for one of my systems.The problem i faced was in installation of virtual box. Regular method i.e. apt-get install virtualbox , was not working.

After doing my research ,i found this method working for me... S
Sharing here so that someone in a similar situation as mine can use it.

Add the following line to /etc/apt/sources.list
deb kali-rolling main non-free contribdo the following, second command might take some time, let it finish completely.
apt-get update
apt-get dist-upgradeOnce the upgrade is completed , run
apt-get install virtualbox


Basic python program in linux to see if a port is open

Below is a simple python program in linux to see if a port is open or close.

import socket
ip = raw_input("Enter the IP Address: ")
port = input("Enter the Port Number: ")
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if sock.connect_ex((ip,port)):
        print "Port",port, "is closed"
        print "Port",port, "is open"

We will use which to know about the location of python, so we can use it in hash bang.
next we are importing the socket library.
taking as input and port are self explanatory.
SOCKET constants and functions are used to get socket connected to sock variable.
connect_ex will throw an exception if the port is closed , and we are utilizing it to display "the port is closed"
else it will be open.

make it executable and run,...

I am not going into details, as there are many tutorials out there to learn the basics.


Bash program to find active ips

I am learning Ethical hacking and penetration testing these days, and thought to write something in blog so that it can be helpful for others.

So today i learned how to write a bash program to find active ips on your network.

here is the program, i will explain it below.

if [ "$1" == "" ]
echo "Usage: ./ [network]"
echo "Example: ./ 192.168.1"
for x in {1..254} ; do
ping -c 1 $1.$x |grep "64 bytes"|cut -d" " -f4|sed 's/.$//'

I won't go into the complete details , instead i am writing out only the problems i faced.

first is the if command syntax , there is a space after if [ , it will give error if you write without space if[ The seq command somehow didn't worked for me, (i am using ubuntu 17), so i used {1..254}, this command will let the variable take one value at a time from 1 to 254semi colon after the range is defined.must use a space after sed command i.e. sed 's…

Verify the facts, don't follow everything blindly.

Japan has the world best economy but has the highest suicide rate, people there have excellent economic conditions but still they have highest number of suicides.Due to high number of suicides they started observing collective suicide day. Government also provided specific spots for suicide so people don't suicide every where and pollute the environment.All of this were told by a Molana from tableeghe jamaat to a huge gathering.i was in that gathering. i got completely surprised by the facts molana told me, i came back to my room and searched for all these facts. Japan is world's third biggest economy.Its on 18th position for high number of suicides. from 2010 to 2014 the reason for mass suicide was economic recession and unemployment. I respect the people of tablighi jamaat because beside these stories they give you knowledge of our religion , and how to change our lives and increase our eemaan and character, and be good to others.They tell us about Prophet Muhammad (Peace be…

A Speech that won 2015 World championship of Public Speaking.

On August 15, Saudi Arabian security engineer Mohammed Qahtani won the title of Toastmasters International World Champion of Public Speaking. He survived seven rounds of a competition that lasted six months and included 33,000 competitors from around the world. He and nine other finalists competed at the Toastmasters annual convention in Las Vegas, and he took home first place for his speech, "The Power of Words," We spoke with Qahtani about his winning speech and discussed what others can learn from it. He immediately gets the audience on his side Qahtani starts his speech with a sight gag, pretending to consider lighting up a cigarette before the audience's reaction convinces him not to. He transitions from this into a sober defense of the tobacco industry before saying, straight-faced, that all of the facts and figures he cited were made up. The audience then roars with laughter. "When you get an audience laughing, you've got them on your side," Qah…