Archive

Archive for the ‘Programming’ Category

Google Maps v2 Integration on Android

January 17, 2014 2 comments

Integrate Google Maps API into a new Android Project

This post will show you how to integrate the Google Maps v2 in a new Android Project. I’ve learnt that without proper guidance, it can be quite daunting to do. I had to dig in several posts to be able to get it to work properly and more importantly, understand every concept and steps. You should have some basic Android knowledge to be able to create it; i’ll try to be as detailed as possible to explain the integration.

First of all, create a new Project in Eclipse. I named my Project “GoogleMapsAndroidV2” and package name “com.example.googlemapsandroidv2“. Note your package name somewhere, you will need it afterwards. Read more…

Primer on program disassembly and intel x86 assembler

October 8, 2011 5 comments

An intro to disassembling C program and using a debugger (in Linux)

First of all, I assume you have some basic knowledge of the C Programming language, Linux (or any UNIX based OS) and using a shell. Knowing how to code in C is most of the time enough to make you a decent programmer. You don’t usually need to understand all the inner workings of the CPU to make the program run. Ignorance is bliss. But if you are like me- who want to get a bigger picture of what is happening inside your machine, then reading this post will help you get a better idea. If you want crack or exploit programs, then these are the basic set of skills you need to master.

You need to realize that C code is meant to be compiled. The code can’t actually do anything until it’s compiled into an executable binary file. Thinking of C-source as a program is a common misconception that is exploited by hackers every day. The binary a.out’s instructions are written in machine language, an elementary language the CPU can understand. Read more…

Your personal Lotto quick pick

July 14, 2010 13 comments

Wanna improve your chances on winning a few million rupees?

The Mauritian Lotto was first introduced on the 07th of November 2009 by lottotech. The first jackpot was Rs 12 Million. The first winner of the lotto was Guillyano Zamir, who won the Rs 30 Million Jackpot. I am going to post the source code of a program i made that generate an arbitrary number of Lotto simulations. While writing this blog post, i researched a bit on Lotto and found some very interesting stuff.

Lotto lets you pick a certain number of choices from a card. In Mauritius you get to pick 6 numbers from a card having 40 numbers. Then, the Lotto managers pick 6 numbers at random. If your choice exactly matches theirs, you win a few million rupees or so. What is the probability of having a winning pick? Mathematics says the following about it: (40 × 39 × 38 × 37 × 36 × 35) / (6!) = 3,838,380. Read more…

Unofficial Guide – BSc Computer Science at University of Mauritius (UoM)

July 13, 2010 21 comments

Looking forward to study Computer Science at UoM? Well, it’s your lucky quarter! Read on…

Post Updated on 23-Jul-10

Here is a post i’ve been wanting to do. I just completed my first year in BSc Computer Science. So, i thought, why not share it to you guys and gals? Then i thought, what to actually share? Am i going to briefly describe the course? Give an overview of the each module? Give you tips? Insider news? Well i am not going to give you just the taste of it, but also all the sauce and flavor served with it and ingredients to tackle it successfully. Note that the appropriate target audience for this post is (1) person contemplating doing CS at UoM, (2) You are a newcomer and need a guideline, (3) You wanna jump into the IT field ’cause you read some nice job ads, (4) You are a computer geek and wanna learn some formal stuffs, (5) You have nothing else to do and curious by nature, (6) You’ve heard there’s gonna be a lot of hardcore Math and you’re scared shitless. 😆

Welcome to the new, exciting, University life. This isn’t college anymore. Gone are the days of afternoon tuitions! Forget your A-Level results. Good or Bad, just forget it. It doesn’t matter now. Who cares for your A-Level result when you will be working as a Software Engineer for instance. It is your skills at work which counts. This is on what your employers will assess you. You are now grown up and need to be more self-dependent. You’ll have to do lot of work on your own and don’t expect your lecturers to spoon feed you. Just scroll down at the bottom of this post and look at the figures for number of failures. Yes, it won’t be easy and you’ll be spending a few sleepless nights as well! If you input just the right amount of effort, your output will be successful. If not, then you will need to do some debugging :). OK, your first bookmark should be the Read more…

SQL Injection Attack explained!

July 11, 2010 4 comments

We need a medic here!

From OWASP, A SQL injection attack consists of insertion or “injection” of a SQL query via the input data from the client to the application. A successful SQL injection exploit can read sensitive data from the database, modify database data (Insert/Update/Delete), execute administration operations on the database (such as shutdown the DBMS), recover the content of a given file present on the DBMS file system and in some cases issue commands to the operating system. Some days ego, Pirate Bay was hacked by an SQL Injection Attack.

So let me explain how an SQL Injection Attack occurs by using an example. We have a website which allows users to post their high scores for a game.

A form for a user to enter Name and Score
Read more…

Categories: Programming Tags: ,

Simple Password Cracking

July 11, 2010 Leave a comment

A very basic password cracking

Here is a very simple algorithm which matches the character of the password entered to the user to that stored by a variable in the program(which frequently happens). It is very easily implemented.

Its core is actually only one line of code that, in the C language, could be written as follows: if (strcmp (password entered, reference password)) {/* Password is incorrect */} else {/* Password is OK*/}.

Here is an example code which implements it and we’ll examine it.
Read more…

Eset Login’s Viewer (made by me!)

July 10, 2010 1 comment

Screenshot of the application

Here is a nifty little tool i first made in 2007 and updated in 2008 using VB6. It allows you to get new login data for ESET. This is a very famous application in the underground internet world and hanging for quite a time now! Well not that underground after all cause its very easily google-able and is found in almost every other warez boards and torrrent website. Please be advised that IT IS NOT A CRACK!

It simply loads a website which regularly post new logins(username/password) for ESS and EAV. The program just make use of the webbrowser control in VB6 which loads the webpage. I added some buttons and features to it.

For you trivia buffs, When you will click on About you will see the **MADE IN MAURITIUS** text lol :P. Just making our little country famous on the Internet lol.

Btw, i wish to thank digitox who help me with this app! 😛

It goes without saying that if you really like the software please buy the legit thing and support the developers. (You might happen to be one someday!)

Here is a link to download: Rapidshare