How to Create a Reverse Shell in Linux?

This is the most powerful feature of netcat for which it is most used by hackers. Netcat is used in almost all reverse shell techniques to catch the reverse connection of shell program from a hacked system.

Reverse telnet

First lets take an example of a simple reverse telnet connection. In ordinate telnet connection the client connects to the server to start a communication channel.

Your system runs (# telnet server port_number)  =============> Server

Now using the above technique you can connect to say port 80 of the server to fetch a webpage. However a hacker is interested in getting a command shell. Its the command prompt of windows or the terminal of linux. The command shell gives ultimate control of the remote system. Now there is no service running on the remote server to which you can connect and get a command shell.

So when a hacker hacks into a system, he needs to get a command shell. Since its not possible directly, the solution is to use a reverse shell. In a reverse shell the server initiates a connection to the hacker’s machine and gives a command shell.

Continue reading

How to create a Simple socket server on Linux or How to Chat in Terminal?

First of all install the required software:

sudo apt-get install netcat-traditional netcat-openbsd nmap

To use netcat-openbsd implementation use “nc” command.
To use netcat-traditional implementation use “nc.traditional” command
To use nmap ncat use the “ncat” command.

To open a simple socket server type in the following command.

$ nc -l -v 1234

Continue reading

Execute Linux Voice Commands with Google2Ubuntu

Google2Ubuntu

Google2Ubuntu

Google2Ubuntu is an application that “lets you use the Google speech recognition API to control your linux computer. The project is developed in Python.”

The Idea of the project may look simple:

  1. Speech to text through Google API
  2. Match the text with a command name and execute the command itself

But in fact, a lot of hard work is required in order to create such a nice looking and stable application. Here is how you can install and use it: Continue reading

How to make GIMP look like Photoshop (workspace, icons & shortcuts)

GIMP 2.8 Photoshop Tweaks

GIMP 2.8 Photoshop Tweaks

Many people who are used to Photoshop find it hard to switch to GIMP after installing Linux. Most popular solutions to get rid of this discomfort are to use Photoshop through Winetricks,  install it on a virtual machine or get used to GIMP.

Recently I found a really great tweak for GIMP which includes:

  • icons
  • workspace
  • shortcuts

This tweak will help you switch from Photoshop to GIMP much easier. Here is how you can do it.  Continue reading