Publications

How To Set A Cookie

Fadıl

Cookies are little pieces of text that are sent to a user’s Web browser. Cookies can help you create shopping carts, user communities, and personalized sites. It’s not recommended that you store sensitive data in a cookie, but you can store a unique id string that will match a user with the data held securely in a database.

Enough with the boring stuff here is how to set a cookie using the setcookie() command.

How to Monitoring Your System?

How to Monitoring Your System?

Fadıl

An easy way to keep tabs on your system is through the program top. The top is a little app that can display the processes currently running, how much RAM, processor and how much CPU time they are taking (just like ps aux). First, let’s start off by starting it up.

[root@rd ~]# top

This should bring up a nice looking program that shows us much of what ps aux shows us but updated every second. You can change the time between updates by pressings, then typing in the seconds between updates (Note: you can use decimal numbers like 0.5). To switch to command mode display, hit c, and to sort by CPU time hit T.
The top is very useful in tracking what your resource hogs are, and what your RAM and Swap usage is. Play with it, the top’s a neat little program.

How to Scheduling in Linux?

Fadıl

Scheduling in Linux…

Linux comes equipped with scheduling tools. Tools that will let you get a full night’s rest and still have that backup program automatically run at 3am on the dot, and even send us an email letting us know about any appointments.

1. Using the at utility

The at command is used for jobs that need to be run only once. at is an interactive program and it takes in an argument, which is the time and date that you want the job to be run. All outputs of at are sent by email. So let’s say it’s 1pm, and we have a meeting at 3pm. In order to be reminded of this meeting at 2:30pm, we can type:

How do you know when someone probing your network?

How do you know when someone probing your network?

Fadıl

How do you know if someone is probing your network?  Logs are a great place to start, especially your FW-1 logs.  Unfortunately, those logs can be difficult and time consuming to sift through (especially if you are logging 400+ B every day). Wouldn’t it be great if there was an automated method of alerting you?

There are a variety of different probes and attacks black-hats will attempt. he types we will be focusing on is port scans. Port scans are where an individual attempt to connect to a variety of ports to identify what services a system is running.  The scans can be used on a specific target or used to scan entire IP ranges, often chosen at random.  This is one of the most popular information gathering methods used by black-hats today as it identifies what ports and services are open.

How to Finding Out Your Server Specs Through A PHP Script

How to Finding Out Your Server Specs Through A PHP Script

Fadıl

Have you ever need to know what your server is running?  Need to see if it runs MySQL?  Well here is a way of knowing what options are available in PHP and what’s going on in your server is to use the phpinfo() function. Create a script with the following.

<html> 
<body> 
<?php 
phpinfo(); 
?> 
</body> 
</html>

Save and view this script through your Web server. You’ll see a page filled with useful and interesting information.  This info tells all about your server, internal Web server environment variables, the options that are compiled, and on and on.
I hope it has been a useful article.