ST701.com Classified Hack Part 2

Continue from Part 1

I hate to do repetitive tasks and perform so much mouse clicks just to do such simple and boring thing.

So, in this post, I’m going to show you how to hack ST701 Shops to re-publish all your expired ads easily and automatically.

Before I begin, let’s take a look at the ST701 Shop ads.

ST701 Classified Hack

As you can see, each ad has a unique ID, such as SHO-1234.

All the actions, such as View, Copy, Delete, Edit and Publish, uses the unique item ID to pickup the ad from the database to process the request.

Step 1
We need to extract the ads IDs from the My Shop Ads page.
ST701.com Hack

The line 3 is to login to SPH authenticate server and save the login session in to the cookies file. IDToken1 is ST701 username field while IDToken2 is the password field. Replace the username and password with your own.

The line 5 is to browse the Expired Ads page and cached the page content to a file.

Line 7 is to extract expired ads IDs into a text file, named as ExpiredAdsID.txt.

Step 2
With the expired ads IDs ready in the ExpiredAdsID.txt file, we are now to copy all the expired ads to Saved folder.
ST701.com Hack

Read more »

Popularity: 18% [?]

ST701.com Classified Portal Hack Part 1

I have been using ST701.com Shops system to post classified ads to sell some of my collection items.

I’ve highlighted in previous post that the ST701 Shops system is not perfect yet.

There is no re-publish function to re-list expired ads

I have to follow the same process to create new ads for the expired ads. This process is really troublesome and time consuming to re-do all the expired ads.

First, select the package to use, either free or paid package, and then choose the most relevant category and sub-category for the product or service.

Now, write a good title, describe the product or service in details and quote a price for the item, select billing methods as well as other fields.

You can upload up to 3 photos or add YouTube video link to improve the sales.

Once you satisfied with the product descriptions, now provides your contact information, like mobile number, email or pick-up address.

Next to preview the ad, and if you’re happy with it, click Publish. Otherwise, click Amend Details to change the ad or you can click Save Only for review at later time.

Read more »

Popularity: 17% [?]

Confirm The Input

In many case, when developing a menu system using shell script, it will be good to prompt the user to confirm that it is okay to run a script.

for example:

Are you sure to run this task? [Yes | No]

Only reply with Yes will continue the action, else the script will exit or return to the menu.

This is useful when executing script that will perform critical tasks, such as rebooting server, stop/start application, purging files, and so on.

How to do that?

Read more »

Popularity: 16% [?]

fgrep files and insert characters before & after the output

I’m preparing a Unix shell script to scan backup log and to check for failure code.

If the directory backup is finished with failure, then the script must be able to pick-up the failed directory and write to an include file for re-submit later.

The backup log should have showing following result:

Backup processing of '/fscm/ldata/91/*' finished without failure.
Backup processing of '/fscm/ldata/92/*' finished without failure.
Backup processing of '/fscm/ldata/93/*' finished without failure.
Backup processing of '/fscm/ldata/94/*' finished without failure.
Backup processing of '/fscm/ldata/95/*' finished without failure.

What if some directories were failed to backup?

Backup processing of '/fscm/ldata/97/*' finished with failure.
Backup processing of '/fscm/ldata/98/*' finished with failure.

Read more »

Popularity: 19% [?]