Fire Eye Flare-On challenge 2017: Challenge 1

Leave a comment

Write up

Challenge 1: (Very Easy)

Java script code.

File name: login.html

<!DOCTYPE Html />
<title>FLARE On 2017</title>
<input type=”text” name=”flag” id=”flag” value=”Enter the flag” />
<input type=”button” id=”prompt” value=”Click to check the flag” />

document.getElementById(“prompt”).onclick = function () {
var flag = document.getElementById(“flag”).value;
var rotFlag = flag.replace(/[a-zA-Z]/g, function(c){return String.fromCharCode((c = (c = c.charCodeAt(0) + 13) ? c : c – 26);});
if (“PyvragFvqrYbtvafNerRnfl@syner-ba.pbz” == rotFlag) {
alert(“Correct flag!”);
} else {
alert(“Incorrect flag, rot again”);


How to solve it:

First solution:

It is easy to visualize a comparison

if (“PyvragFvqrYbtvafNerRnfl@syner-ba.pbz” == rotFlag)

So,it is doing some stuff with input flag and then comparing it with


as we know the last bytes of the flag so comparing it we can see it is simple ROT 13. Where character is moved 13 step ahead.

so flag is

Second Solution:

Open the page in browser
and it looks like this

now enter the encoded flag in here and put the break point where is doing the comparison and voila here you got the flag.
which is same as above mentioned.
Thanks, soon Will publish write up for other flags too.


Fire Eye Flare-On challenge 2017: Challenge 2

Leave a comment

Challenge 2:

SHA1 of Binary: BEBC79DC955050E4F7F50609E5810751D287A59D

Windows Binary: PE (Portable Executable) file


The man loop


2 subroutines: one is for input the flag and 2nd for flag matching.

While based upon it it will take the decision for left ie.e G00d j0b! or Right N0t t00 h0t

Looking inside the Flag_Matching subroutine


Here it is doing the matching, checking the pseudo C doe for the subroutine

So here what is doing is XOR the nth element with n-1 the element and making last element hard as 0x04

We wrote a small script to automate this XOR
enc= [0x0D,0x26,0x49,0x45,0x2A,0x17,0x78,0x44,0x2B,0x6C,0x5D,0x5E,0x45,0x12,0x2F,0x17,0x2B,0x44,0x6F,0x6E,0x56,0x09,0x5F,0x45,0x47,0x73,0x26,0x0A,0x0D,0x13,0x17,0x48,0x42,0x01,0x40,0x4D,0x0C,0x02,0x69]
key = 0x4
flag = ‘
‘for c in enc[::-1]:
v = key ^ c
key = v
flag = flag + chr(v)
print flag[::-1]


And so the flag is


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

Older Entries