Selasa, 17 April 2012

Modifikasi FashDisk menjadi Anti Virus

USB Flashdisk media empuk bagi si pembuat virus, Berikut adalah langkah – langkah memodifikasi flash disk dengan memanfaatkan beberapa tool yang ada di windows Buatlah folder kosong didalam flashdisk anda dengan klik kanan pada mouse > New > Folder. Kemudian berilah nama pada folder tersebut dengan “autorun.inf” <tanpa kutip>.
Masuklah kedalam folder yang baru saja anda buat baru saja dan tambahkan file notepad didalamnya dengan klik kanan > New > text document 
Bukalah salah satu aplikasi bawaan dari windows yaitu character map. Secara default, anda dapat menemukannya di Start menu > All Programs > Accessories > System Tools > Character Map 
Setelah aplikasi Character Map terbuka, centang kotak ‘Advance View’ yang terdapat dibawahnya. Dan pilihlah Unicode 
Pada bagian atas anda akan melihat kumpulan huruf, angka, simbol-simbol. Cobalah browse hingga kebawah dimana akan melihat bentuk – bentuk simbol aneh. Copy lah beberapa dari simbol / karakter aneh tersebut dengan mengklik tombol Copy
Kemudian paste beberapa karakter unik yang baru saja anda copy untuk dijadikan nama file pada nama teks notepad yang anda buat didalam flashdisk anda beberapa saat yang lalu. Caranya, klik kanan > rename. Lalu CTRL+V pada keyboard anda. Maka seketikan file tersebut telah dinamai dengan karakter-karakter unik. 
Selesai

Dengan sedikit modifikasi memakai notepad diatas maka USB anda sudah kebal.  Kebanyakan dari virus komputer yang menginfeksi flashdisk adalah dengan memanfaatkan, memodifikasi atau menambah fitur autorun.inf pada USB flashdisk. Dengan menambahkan beberapa karakter aneh (berformat UNICODE) yang disebutkan terdahulu, maka script virus tidak dapat mengubah autorun.inf tersebut karena script pemrograman virus  tidak mendukung karakter berformat UNICODE sehingga virus tidak akan dapat menghapus dan mengganti file tersebut karena tidak dapat membacanya.
Pertanyaan berikutnya, bila virus tidak dapat menghapusnya mampukah virus membuat kloningan dari autorun.inf milik mereka sendiri? Jawabannya adalah tidak. Karena sistem operasi windows hanya mendukung satu buah file autorun.inf didalam sebuah drive / flashdrive. Oleh karena itu flashdisk anda dapat dikatakan aman dari sebagian besar cara kerja virus pada umumnya.

Silahkan mencoba.......

Rabu, 11 April 2012

Manfaat Membaca Ayat Kursi

Dalam sebuah hadis, ada menyebut perihal seekor syaitan yang duduk di atas pintu rumah. Tugasnya ialah untuk menanam keraguan di hati suami terhadap kesetiaan isteri di rumah dan keraguan di hati isteri terhadap kejujuran suami di luar rumah. Sebab itulah Rasulullah tidak akan masuk rumah sehingga Baginda mendengar jawaban salam dari isterinya. Di saat itu syaitan akan lari bersama-sama dengan salam itu.

Hikmat Ayat Al-Kursi mengikut Hadis-hadis:
 

1) Barang siapa membaca ayat Al-Kursi bila berbaring di tempat
tidurnya, Allah SWT mewakilkan dua orang Malaikat memeliharanya
hingga subuh.
 

2) Barang siapa membaca ayat Al-Kursi di akhir setiap sembahyang
Fardhu, dia akan berada dalam lindungan Allah SWT hingga
sembahyang yang lain.
 

3) Barang siapa membaca ayat Al-Kursi di akhir tiap sembahyang,
dia akan masuk syurga dan barang siapa membacanya ketika hendak
tidur, Allah SWT akan memelihara rumahnya dan rumah-rumah
disekitarnya.
 

4) Barang siapa membaca ayat Al-Kursi di akhir tiap-tiap shalat
fardhu, Allah SWT menganugerahkan dia setiap hati orang yang
bersyukur, setiap perbuatan orang yang benar, pahala nabi2, serta
Allah melimpahkan rahmat padanya.
 

5) Barang siapa membaca ayat Al-Kursi sebelum keluar rumahnya,
maka Allah SWT mengutuskan 70,000 Malaikat kepadanya – mereka
semua memohon keampunan dan mendoakan baginya.
 

6) Barang siapa membaca ayat Al-Kursi di akhir sembahyang, Allah
SWT akan mengendalikan pengambilan rohnya dan dia adalah seperti
orang yang berperang bersama Nabi Allah sehingga mati syahid.
 

7) Barang siapa yang membaca ayat Al-Kursi ketika dalam kesempitan
niscaya Allah SWT berkenan memberi pertolongan kepadanya.

Selasa, 10 April 2012

Anti NET CUT



Kamis, 05 April 2012

jQuery: How to get objects by ID, Class, Tag, and Attribute

In this second segment in my jQuery series, we will review getting objects by ID Selector (#id), by Class Selector (.class), by Tag, and by Attribute (.attr()).

In the first part, “How to get started with jQuery,” I set up the foundation code for our HTML file index.html and our styles with the styles.css file. Then we invoked our first “ready()” event function, adding in a click event handler alert.
The files you’ll need to follow along in this tutorial, including html, css, script, and images, are available for download here in a zip file.

Get Object by jQuery ID Selector (#id)

Getting an object by id is utilized to search specified by the id attribute of an element. Each id value must be used only once within a single web document. If more than one element has been assigned the same ID, queries that use that ID will only select the first matched element in the DOM. This behavior should not be relied on; however, a document with more than one element using the same ID becomes invalid.
In the index.html file, we will add in the following <input> line of code just below the “Switch” paragraph as shown below:
  <p><strong>Switch</strong></p>
  <input type="button" id="switch-two" value="Switch" />
By definition, the jQuery toggleClass() method is utilized to toggle between adding and removing one or more classes for the selected elements. This method checks each element for the specified classes. The classes are added if missing, and removed if already set — this creates a toggle effect. However, by using the “switch” parameter, you can specify only to remove or only to add a class.
In this demonstration, we will apply one class with the toggleClass() method to the second article with id=”two” which, when clicked, will render it from a 2px blue border to a 2px green border, and it will also change the height from 200px to 100px. We will add the following jQuery to our ready() event just below the first click function call we added in the first segment:
        $('#switch-two').click(function () {
          $('#two').toggleClass('newClass');
        });
Open your index.html file in your browser, then click on the Switch button and you will see the transformation as displayed in Chrome 17.0.9 in Figures A and B below:

Figure A


Figure B


When you click the Switch button, it triggers the toggle function which finds the element by id replacing the id with “newClass”, which defines the shadow box article as 110px high and the border color set to green. Clicking on the Switch button again resets the id to the original.

Get Object by Class (.class)

In this demonstration, we will modify multiple objects from one get call by grabbing all objects of a certain class — in this case, the class=”test”. In our index.html file we will add in the following lines of code just below the previous paragraph, creating a new input button named “Test Button”.
<p><strong>Test Button</strong></p>
   <input type="button" id="test-switch" value="Test Button" />
Then, in our <script> area, add in the following lines of JavaScript just below the previous code that we added inside our ready function, and save the file:
        $('#test-switch').click(function () {
          $('.test').toggleClass('newTestClass');
        });
Now, in our styles.css file add in the following lines and save the file:
#content .newTestClass {
       width: 300px;
       height: 100px;
       border: 2px solid #0FF;
}
Refresh the index.html document in your browser, and click on the Test Button input; the get object by class is activated, and the result is shown in Figure C as displayed in Chrome 17.0.9:

Figure C


In this example, we used jQuery to find the element with the id of test-switch (the Test Button), and when we clicked on the button, jQuery triggered a function to toggle the class (”newTestClass") on the two elements (the second article and the section) with a class of test.

Get Objects by Tag

To get an object by tag you just need to pass the name for the particular tag you are looking for to the ready function. In this example, let’s add these lines of code to our index.html file and save the file:
   <p><strong>Article Button</strong></p>
   <input type="button" id="article-switch" value="Article Tag Switch" />
Also add the following JavaScript just below the code we added in the last step (inside the ready function), and save the file:
        $('#article-switch').click(function () {
          $('article').toggleClass('newClass');
        });
Refresh your index.html document, and then click on the Article Tag Switch button, as displayed in Figure D shown in Chrome 17.0.9:

Notice in this instance that we are finding the element with id of article-switch (the Article Tag Switch button), and when we click on the Article Tag Switch button, the two elements with the “article” tag are affected by the jQuery toggle to “newClass”, which transforms them to the green shadow box styles.

Get Objects by Attribute .attr ( attributeName )

We can get any attribute (id, class, style, name, title) of any tag (ex: <section>, <article>, <p>, <a href>) using the .attr(”attributeName”) function. This method returns a string of the element’s attribute.
According to the description for the jQuery’s .attr() method to get the value of an element’s attribute, it has two main benefits:
  1. Convenience: It can be called directly on a jQuery object and chained to other jQuery methods.
  2. Cross-browser consistency: The values of some attributes are reported inconsistently across browsers, and even across versions of a single browser. The .attr() method reduces such inconsistencies.
In this example, we will change a displayed image using jQuery to replace an image source file, along with the alt and title, but first we will add in the following to our index.html file just below the Article Button line:
  <section id="images">
    <p><strong>Images</strong></p>
       <img src="images/Orchid.gif" title="Orchid" alt="Orchid" >
  </section>
   <input type="button" id="image-switch" value="Attribute Switch" />
We will use jQuery to change the image source, the alt attribute, and the title attribute. At the same time, we will pass the sets of names and values into the method at once using a map — .attr( map ) . A map of attribute-value pairs to set each key-value pair in the map adds or modifies an attribute. Add the following jQuery to the event handler just below the previous code in the index.html file, and then save the file:
       $('#image-switch').click(function (){
          $('img').attr ({
          src: "images/Rose.gif",
          alt: 'Rose',
          title: 'Rose'
         });
        });
We will also add in the following styles into the styles.css file, save this file again:
#images {
       border: 3px solid gray;
       padding:10px;
       width:400px;
}
Before our Attribute Switch button is clicked this is how the index.html document appears as viewed in Figure E in Chrome 17.0.9:

Click the Attribute Switch button, and the image will update to the rose displayed in Figure F as viewed in Chrome 17.0.9:

In our next segment on jQuery, we will cover filtering objects, changing CSS classes, changing an object’s inner text, and other fun stuff!


Takeaway: Ryan Boudreaux continues his tutorial on getting acquainted with jQuery by showing you how to get objects by ID and Class selectors and by Tag and Attribute. www.techrepublic.com

Defeating Hacker

This is tutorial document 

Download Document here, Bonus