Spammers are using TinyURL.com to escape spam filters

I recently found out that besides the new breed of spam bots which emulate human surfing behavior and sporting javascript support. Spammers now developed a new tactic by concealing their url behind TinyURL.com redirection service.

I hope TinyURL administrators will take note of these service abuse, and devise a plan to reduce spammers from using their service to spread their spammy URL around.

For the time being, I’ll be more watchful and configure my anti-spam software to filter out urls that uses TinyURL service. I personally don’t use TinyURL service, and only occasionally surfed to tinyurl addresses when I’m certain it was given by a reputable source (and it must be from a human!)

Dangers of Free Trade Agreement to Malaysian ICT Industry

FTA includes certain clause that will drive our local software company out of business, please don’t let this happen! Do not let what has happened to Australia happen to our ICT industry.

FTA will indirectly let US impose their laws (like DMCA) in our country by letting foreign companies to sue our government, this is clearly unacceptable for a sovereign country like Malaysia. Our ICT industry is endangered by (software) patents infringement lawsuit by US mega-corporations, effectively driving our local ICT companies out of business.

Forget about e-commerce or e-niaga, as a typical e-commerce website are covered in a shitload of patents (See: Patented Webshop). Our local entrepreneur websites will risk patent lawsuits from some faceless foreign companies right in our own soil!

Read more at Free Trade Agreements and ICT Industry

p/s: There’s no doubt that FTA with US will work great for our country, but there are certain clauses which are unacceptable to our local ICT businesses, this is because softwares themselves are unique in nature than other tangible products, and certain terms such Intellectual Property has blurry meaning concerning this issue.

Please read this too
What other people say about FTA with US and ICT industry in Malaysia

win-get : Install applications in Windows with apt-get look-alike

Ever got used to package manager such as apt-get, yum, pkg_add or something like it? Wonder if Microsoft Windows has something similiar? Then wonder no more, introducing win-get, an apt-get package manager look-alike for Microsoft Windows.

Download the application from http://windows-get.sourceforge.net/, and put wget.exe and win-get in c:\windows, or anywhere you prefer.

Using win-get is simple, you can query win-get database with a simple “search” directice. Let’s say you want to query about which browser available from win-get repository.

H:\>win-get search browser
Using Repository: http://windows-get.sourceforge.net/winget.php


Name                         Version
----                         -------
avant                            10.1 Build 32
firefox                           1.5.0.1
flash_player                 8,0,22,0
links                               0.98
mysql_querybrowser 1.1.17
netscape                        8.0
opera                             8.51
spybot                           1.4
zinf                                 2.2.1

and if you want to install Mozilla Firefox, you just need to execute :

H:\>win-get install firefox
Checking for mirrors...
No alternative mirrors found...

11% [===>                    ] 577,440   29.77K/s

Which after that will execute the installer and display the installation process in your computer screen.

You can also acquire information about a particular software package by using the “info” directive, like this

H:\>win-get info ad-aware

Application Name: ad-aware
Version: SE
Developer: Lavasoft
Location: http://tucows.tierra.net/files2/aawsepersonal.exe
Type: freeware
Supports Silent: Yes

Description:
This is a spyware removal utility that scans your memory, 
registry and hard drives for known spyware components 
and lets you remove them.

You can browse for more applications currently in win-get repository at http://windows-get.sourceforge.net/listapps.php

Well, I guess that is all about it. Go and try it out guys

p/s: I haven’t been successful running “win-get uninstall” command, can anybody tells me if it works in their computer? Thanks.

btw, thanks to linuxlah for the CSS terminal hack.

Yahoo! was incorporated today

Yahoo blog mypapit
Today is a historical day as it is the day Yahoo! was incorporated in 1995. The company started by two Stanford graduate David Filo and Jerry Yang as “Jerry’s Guide to the World Wide Web” , but later changed its name to Yet Another Hierarchical Officious Oracle or simply Yahoo.

Early Yahoo servers resided on Jerry and David workstation named Akebono and Konishiki. Since then, Yahoo popularity grew as more people started using the internet. Soon after that, Yahoo had its initial public offering on April 12, 1996, selling 2.6 million shares at $13 each.

As Yahoo’s popularity has increased, so has the range of features it offers, making it a kind of one-stop shop for all the popular activities of the Internet. These now include: Yahoo! Mail, an instant messaging client, Yahoo! Groups) online gaming and chat, various news and information portals, online shopping and auction facilities, blog portal (blo.gs), social bookmarking service (del.icio.us) .

Many of these are based at least in part on previously independent services, which Yahoo has acquired – such as the popular GeoCities free Web-hosting service, Rocketmail, and various competing mailing list providers such as eGroups.

[Source]

Sending HTTP POST with php cURL

As promised previously, I’m going to show you how to send HTTP POST request using php cURL extension.

The target form

Let’s say you have a html form like this :

wtf

And this is the source code of the html file :


You can see that the form will submit the query using HTTP POST to “target.php”. Now let’s say you want to write a php script (bot.php) that will automatically send the query bypassing the html form, this is one way to do it (with php libcurl extension)

< ?php
//bot.php
$url = "http://localhost/wtf/target.php";
$ch = curl_init();

// set the target url
curl_setopt($ch, CURLOPT_URL,$url);

// howmany parameter to post
curl_setopt($ch, CURLOPT_POST, 1);

// the parameter 'username' with its value 'johndoe'
curl_setopt($ch, CURLOPT_POSTFIELDS,"username=johndoe");


$result= curl_exec ($ch);
curl_close ($ch); 
print $result;

?>

This script will send a HTTP POST request to “target.php” pretending to be a real person sending the “username” parameter as “john doe”.

However this is not entirely convincing since the server side will automatically know that you are using a http script to send the HTTP POST request by analyzing the browser “user-agent” string. The default script will send “(HTTPRetriever/1.0)” as its user-agent.

With a little add-on, you can spoof the user-agent string inside your script just like this :

< ?php
//
// test HTTP POST submitter, using libcurl
//

// the target url which contains scripts that accepts post request
$url = "http://localhost/wtf/target.php";

// we are spoofing Yahoo Seeker bot >:)
$useragent="YahooSeeker-Testing/v3.9 (compatible; Mozilla 4.0; MSIE 5.5; http://search.yahoo.com/)";

$ch = curl_init();

// set user agent
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);

// set the target url
curl_setopt($ch, CURLOPT_URL,$url);

// howmany parameter to post
curl_setopt($ch, CURLOPT_POST, 1);

// the parameter 'username' with its value 'johndoe'
curl_setopt($ch, CURLOPT_POSTFIELDS,"username=johndoe");


// execute curl,fetch the result and close curl connection
$result= curl_exec ($ch);
curl_close ($ch); 

// display result
print $result;

?>

so when your “bot.php” sends the request, the server logs will record that the query was sent by a “Yahoo Seeker bot” instead of a crudely coded php script.

You can spoof other browser as long as you know their user-agent string, refer to my previous post for a collection of browser user-agent strings.

No PHP cURL support?

In this case, you have a few options

  1. Use a server that support php cURL extension
  2. Compile/Install php cURL extension
  3. Use libcurlemu – php cURL extension written in pure php

Well that should cover the short crash course on how to use php cURL extension.

p/s : Although I won’t tell you how to write one directly, this is the basic of building spam bots and auto-submitter. So use your imagination (and the dark side of the force) to write the rest of the code. *evil*

You can download the source code of this tutorial here : http://mypapit.net/pub/libcurltest.zip

php,curl,webdev,libcurl,bots

A rather large collection of browser User-agent strings

If you are into analyzing http log files or writing web applications that does user-agent analysis, you might appreciate this website PGTS Agent String Switchword. The website has a huge collection of browser user-agent list ranging from the common Mozilla/Internet Explorer variant to search-engine spider, malicious web bots and internet worms.

The list is organised in various orders to ease up browsing (alphabetical, operating system, by popularity, common robots user agent). Finally, the site also offers tab-delimited user-agent download (zip file). This is useful for those who want to build user-agent database for their own project.