Pages

Wednesday 24 December 2014

Building Custom Snippets in Sublime Text 3!!

Friends, In this post i am gonna show to build and use your own Snippets in sublime text 3!!
First you must have Sublime text 3 installed in your system!! You can download sublime text 3 from here ... LINK

Snippets basically makes your programming life easy in sublime text 3!!
here is your sublime text 3 ...


So for building a Snippet you have to go to Tools option in sublime text 3 ... and select the New Snippet Option!!



a default file opens with bunch of lines of code as shown in the picture below




So lets understand the code written in the default files ...

1.) There is a CONTENT tag in which we have to write contents or code which we wanna use many and many times in our programming languages .. like JAVA, PHP and all other languages!!
2.)${1:this} means when we supply our small snippets and hit tab 1st time then it will stop at "this"same as ${2:snippet} for 2nd time of tabtriggering 
3.)So now i'm gonna make build a Snippet for JAVA Programming language.. as shown in the picture below!!


save the file as p.sublime-snippet as your snippet name as shown in the picture below ...

now whenever during coding you press p and hit enter the following code will appear on the screen and with

With the item selected which we supplied in the ${1:/*ClassSwap*/} and when you will hit tab
it will select the next item which you supplied in ${2:/*CodeSwap*/} as shown in the picture below


and this will surely save a lot of your time during coding :) This was just a example!! You can build as big as big snippet for your requirement ... Thanks for giving your valueable time on reading this post .. Happy Coding :) 

Saturday 6 December 2014

phpsh by Facebook Developers on Backtrack5 R3

Hey guys today i'm gonna show you how to install and use phpsh on BackTrack 5 R3!!

First of all what actually is phpsh ?

phpsh is an interactive shell for php that features readline history, tab completion, quick access to documentation. It was developed at Facebook and ironically, is written mostly in python. It is open source and released under a modified BSD license.

The source code of phpsh is available at GITHUB

You can download the zip file of the source from here

The main problem is that its not available for windows platform so you can virtually run operating systems like BT5R3 or kali linux or ubuntu .. totally depends on your flavor!!

So basically you have to first download the zip file of the source code and then place it on desktop like this ..

Then you have to extract it using the following command in terminal!!


After unzipping it you have to install it so that you can use it!!
use the following commands to do this!!
run the above given commands one by one in the terminal of bt5r3 in the unzipped directory of the phpsh-master and then you will get it installed on the linux!!

somescreen shots of phpsh in bt5r3 terminal!!
Also for ease of access after starting the terminal in Vmware you can enable the unity mode in VMware so that so will get some thing like in the pic posted below .. && its awesome

Thats it!! Thanks for giving your valueable time on reading this post!! :)

Wednesday 3 December 2014

Install Vmware Player in Kali Linux(Host)!!

hey guys, in my views pentesting is lot easy if we can use kali as main or host operating system and other victim operating system as guest via Vmware player.. So I am writing this blog on how to install Vmware player kali linux ..

1.) Go to this LINK and download VMware player 64 bit for linux .

2.) Your vmware player something look like this --> VMware-Player-6.0.3-1895310.x86_64.bundle

3.) Now first of all you have to change the permission of this downloaded file
so use the following command as shown in the pic below
  
4.) Now use the following command as shown in the picture below to install linux headers

5.) last command to install the Vmware Player 


and after this magic happens :p and the graphical user interface of vmware pop-ups and after that vmware can be easily installed ...

finally you will get vmware looking something like this ...

Thanks for giving your valueable time on reading this post .. happy hackin :p