Tonight, I am having the headache of ages. It feels as if my head is about to burst open. I am totally clueless and worst of all I don’t really have anything to diversify my concentration on. I miss those lovely days I had in which I honestly had no idea what the so called headaches were and used to believe it was only a really good excuse.
Anyways, life has been really boring ( in the sense I know I have to study and I know I dont want to ). Day before yesterday ( I think ) school SAP officially ranked me Master Hussain Shafeeu for achieving the highest grade in CAE in the history of GNAEC (note that only 2 batches of students participated in the exam in history before :p ). I dont feel too proud because it was only a ‘B’. Sanu sir has predicted this longtime ago and now I feel he forced me to get this grade
In other news, I will not be an active blogger for a bit more time. Due to some construction work in the house, I dont have unlimited access to internet. Too bad my unlimited package all goes to waste. Good luck to me for my upcoming Edexcel exams and good luck to you on what ever you are on about.
shafee Uncategorized
How did dhiraagu being a national company really manage to achieve this milestone? are they boasting? I started thinking about this a few minutes ago. Here is the little research that resulted.
Lets estimate the total population of Maldives as 310,000 people. Adding the total number of immigrants to this (which is 60000) gives us the total number of people here as 370,000. Now lets deduct the total dhiraagu customers from this which gives us 70,000 people.
Lets take a break from dhiraagu and move to wataniya. Wataniya having a customer base of 120,000 gives us an excess of 50,000 customers. Lets just assume these people are the people who are having both wataniya and dhiraagu sims. That seemed to justify everything until I thought of the eeni miiny little tiny children who dont carry a cell around. Lets estimate. The total number of people over the age of 18 are 210,000. Now lets just say everybody over the age of 15 has a mobile. This only gives us a total possible native market of 280,000.
But these are just estimates. How dhiraagu is giving service to 300,000 people is completely out of boundary of my thoughts. Maybe they have included all their x-customers as well? May be its the total number of sims they have managed to sell? Who knows?
shafee Uncategorized
One of the most important skills for any hacker is the ability to know how to read the source of the system he is about to take over or write programs that exploits security vulnerabilities of that system. If this level can’t be reached, knowing how to execute exploits written by others is an indispensable skill. In this tutorial, I am going to teach you how to execute a simple PHP programs written to exploit security vulnerabilities. Here on after I will refer to such programs as “exploits”.
Before we start, there are a few things you need to come in touch with. First, you need to know this site :: Milw0rm::. It is basically an archive of exploits written by many different people on all sorts of security vulnerabilities in applications ranging from Wordpress, IPB, PHPBB to mail clients and operating systems. There are many other such achieves which I will list out later. Second, you need to download and install WampServer.
Hoping you got that done, lets start with the PE lesson. Read more…
shafee Uncategorized
Being sick for 2 days and finally having recovered, feels like I need to take a good night nap now. Its being really hard to sleep these days, specially during the night time. At least not before my tired eyes finally give way and just crashes and that doesn’t happened before 5.
Having two days before school gives me a mixed set of feelings. I feel sad because I won’t be able to finish the game a recently got addicted to (Need For Speed - Most Wanted) or any of the other games in the series. Although I am happy because I am finally going to be able to hang out with all my buddies. On the contrary, I feel the ground shaking below me every time I think of all the incomplete assignments I have.
Enough with me and my feelings. Happy new academic year to everyone and wish everyone a peaceful and “limited home works” year 2009. “A boy can dream. Can’t he?”.
PS: It feels good to be blogging while tucked under the sheets on my bed. The wireless router really is a handy tool.
shafee Uncategorized
This warning always comes a little later for me. Be it a girl matter, school stuff or home stuff, I am always in the trap when i get this warning in a post letter that should have arrived 2 days back! I remember the last time this happened. It was few days back.
The school organized refreshment class for those studying in grade 9 and 10. The senior students of the school (i.e Grade 11, 12 students) were supposed to be taking up these class and I for one was not very pleased with this. I mean shouldn’t this be voluntary or something? Anyways, I got a call from school and they informed me about a meeting (period - this is where I should have got the warning - Its a trap. Dont go. end period) and of course, I went and got trapped.
Thats not all, after just a week of my absence I guy from school dropped by with a form and informed me of another meeting (period. Fool - Meeheh ge fulah eai horakun dhekahteh neherey ne eve. Dont go its a trap. end period) but this time they also took my signature informing it was very important that I was present for it. And guess what? I fell for it again and had to take another class.
Thats it. No more school. I dont care if its “THE” most important thing ever, I am not going to school during these holidays.
shafee Uncategorized
Last night I spent sometime trying to make this page. Its basically a clone of my twitter page. Before I started doing the whole coding myself, I search for any related achievements. It happens that twitter has already provided a nifty solution here. But it didn’t quiet fit all my needs.
So I started coding a simple solution that would work the same way, but give me more control over the content. It was pretty simple once I knew what I was doing. CURL was of great help. Here is the code I ended up with:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| <?php
$user = 'shxfee'; #The user whos tweets you need to get
// Get page data first
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'http://twitter.com/'.$user);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$page = curl_exec($curl);
curl_close($curl);
// Now its time to extract text on the latest tweet
$pattern = '!<span class="entry-content">(.+?)</span>!';
preg_match_all($pattern, $page, $tweets);
$last_tweet = $tweets[0][0];
?> |
Although, now it has a huge load time. May be using file to get the page would help reduce the load time? well I will experiment on it later. Anyways, here is how to use this in a real world scenario. If you want to show all your tweets in a page all you need to do is loop through the $tweets array like this:
1
2
3
4
| <?php foreach($tweets[0] as $tweet):?>
<!-- All HTML mark up should go here. -->
<p style='text-align: center'><?php echo $tweet;?></p>
<?php endforeach;?> |
If you want the latest tweet only all you need is the $last_tweet variable.
1
| <p style='text-align: center'><?php echo $last_tweet;?></p> |
shafee Uncategorized
Although its still ‘the end of term holidays’ I have decided to resume blogging. The holidays will be over on 15th of January 2009. I am looking forward to school (which will also be over [ for the second time ] on June ). Anyways this holiday was not a very pleasurable one. All I managed to do was teach two friends the basics of PHP and make up my mind on becoming a twitter-er. If you want to stay on my tail you can always follow @shxfee.
I have perticipated and written a blogging script for mvtechies early last month. I was one of the founders there. However, one of our posts about government websites & their security made us lose our domain. but we are still hanging on with another domain (http://mvtechies.net).
shafee Uncategorized
I am on vacation and therefore am not currently very friendly with my blog. I know it been a long time since I posted, but I really didn’t want to break the chain today by posting this useless post either.
However, I found this cool new piece of software that I really wanted to try out. Its called Windows Live Writer. I bet you have never heard of it. haha. I have never anyways. So its a XML-RPC publishing protocol (says so on WP admin panel). So basically this makes the posting job a lot easier and can really motivate lazy folks who doesn’t update their weblogs often to do so.
Life updates: Issey is going off to male’ tomorrow. He gave me a long promised treat (in mavadia) tonight. Its been a long time since I av gone there and the place has gone through massive upgrades. One of the caution posters hung there about smoking reads “Its illegal to smoke in this premise”. haha. Talk about people illegally making up their own constitution.
I guess this post is good enough to test out how well this new app really works. And yeah. I figured the theme is no longer compatible with my server. Hostgator must have disabled some of the functions in PHP GD library. Oh well. time to search for a new theme. I warned you this was a useless post.
I have been developing a lot of PHP this holiday. Done two portals in partnership with haris. Two were done for villingili. One is just an upgraded version of the other.
I have also written a blogging script for MVtechies. I might release the source code to public under GPL. Lets see how well we go off with MVtechies first though. Concluding for now - and counting down 2 more months of holidays.
shafee Uncategorized
I have been reading it and thought I would blot down some of the important articles in it concerning the freedom of Maldivian citizens. Some of us just dont have enough time to do anything productive with our spare time. May be I am one of them? You can download your copy of the constitution here.
Before I copy paste, there are a few things that I have concluded with the help of the below articles. Firstly, no person, no man, no women, no teacher can force you to do homeworks. Its against article 25. Secondly, you have no rights to ask me a) where I come from? b) what I was doing? c) who I was with. So better shut up. Thirdly, dont say dont get involved in politics. Its against article 30. Finally, I am eligible for SPECIAL PROTECTION FROM THE STATE so dont dare touch me.
- CHAPTER 2 - article 19 : (FREEDOM FROM RESTRAINT)
A citizen is free to engage in any conduct or activity that is not expressly prohibited by Islamic Shari’ah or by law. No control or restraint may be exercised against any person unless it is expressly authorised by law.
- CHAPTER 2 - article 27 : (FREEDOM OF EXPRESSION)
Everyone has the right to freedom of thought and the freedom to communicate opinions and expression in a manner that is not contrary to any tenet of Islam.
- CHAPTER 2 - article 30 : (FREEDOM TO FORM POLITICAL PARTIES, ASSOCIATIONS AND SOCIETIES)
Every citizen has the right to establish and to participate in the activities of political parties.
- CHAPTER 2 - article 25(a): (NO SLAVERY OR FORCED LABOUR)
No one shall be held in slavery or servitude, or be required to perform forced labour.
- CHAPTER 2 - article 35(a): (SPECIAL PROTECTION TO CHILDREN,YOUNG,ELDERLY AND DISADVANTAGED PEOPLE)
Children and young people are entitled to special protection and special assistance from the family, the community and the State. Children and young people shall not be harmed, sexually abused, or discriminated against in any manner and shall be free from unsuited social and economic exploitation. No person shall obtain undue benefit from their labour.
- CHAPTER 2- article 24 : (PRIVACY)
Everyone has the right to respect for his private and family life, his home and his private communications. Every person must respect these rights with respect to others.
shafee Uncategorized
This article contains material, that if you used could get you in jail and is illegal. This is for educational purpose only! I am not responsible for what ever you attempt with the knowledge you gain from here. Reader beware - You have been warned.
Today I was reading this article written by haris and it got me thinking - since the great hackers of Maldives are actually bagging for ready made script to hack everyone, why not give them a tutorial and actually tell them how and why the scripts they get from others work. So lets begin.
First you need a copy of the web page that you are going to be using as a base to your phishing page. This can be obtain easily by going to the original web page and then saving it. For this example, we will try to build a mig33 phishing page, so thats where you need to be heading. http://wap.mig33.com/member2/t.php. Then go to the ‘FILE’ menu chose ‘SAVE PAGE AS…’ option from the drop down menu. Now when the save as window appear change ’save as type’ to ‘Web page, complete’. There. Now you have got your copy of the webpage. Off to next step. Read more…
shafee Uncategorized
Recent Comments