Most of us are familiar with the virus that used to block Orkut and Yo dịch - Most of us are familiar with the virus that used to block Orkut and Yo Việt làm thế nào để nói

Most of us are familiar with the vi

Most of us are familiar with the virus that used to block Orkut and Youtube websites. If you are curious about creating such a virus on your own, here is how it can be done.

As usual I am using my favorite programming language ‘C’ to create this website blocking virus. I will give a brief introduction about this virus before I jump into the technical jargon.

This virus has been exclusively created in ‘C’. So, anyone with a basic knowledge of ‘C’ will be able to understand the working of this virus program. When this program is executed, it will block all those websites that are listed in the source code. In the following example, the sites that are listed in the source code are Google, Yahoo and Youtube. When you download the source code of this program, you have a choice to include your own list of sites that you want this virus to block.

I have just removed the source code of this program from this post as it is lengthy and makes the post look messy. You can still download the source code of this virus program from the following link:


Download Block_Site.rar

How Virus Program Works?

The Windows operating system maintains a special file called HOSTS which can be used to block any given hostname or domain name (website) by adding new entries onto it. This program works by modifying the HOSTS file by adding new entries of those sites that are intended to be blocked. The HOSTS file is located at:


%windir%system32driversetc (Usually: C:windowssystem32driversetc)


So, when you execute this program, all it does is add the entries of the list of those sites (mentioned in the source code) to this HOSTS file. Once this is done, the site will be blocked from your computer. So, none of the browsers would be able to load those sites on your computer.

For more information on HOSTS file, I recommend reading my other post on How to use HOSTS file to block websites.

Now, as far as the technical part of this program is concerned, people who have a working knowledge of ‘C’ should be easily able to understand the working of this virus program. However, for those who are new to ‘C’ programming, here is the algorithm of this program:
•Determine the Root drive. ie: Find the drive (C:, D:, E: or F:) on which the Windows is installed.
•Navigate to: %windir% -> system32 -> drivers -> etc
•Open/Load the HOSTS file.
•Copy a list of those websites that are mentioned in the ARRAY to the END of the file.
•Save the file and Exit.

How to Compile the Source Code?

For a step-by-step compilation guide, refer my post: How to compile C Programs?

Testing the Virus:

1.To test, run the compiled module. It will block the sites that are listed in the source code.


2.Once you run the file block_Site.exe, restart your browser program. Then, type the URL of the blocked site and you’ll see the browser showing error “Page cannot displayed“.


3.To remove the virus type the following command in the Run.


%windir%system32driversetc



4.There, open the file named “hosts” using the notepad. At the bottom of the opened file you’ll see something like this:


127.0.0.1 google.com



5.Delete all such entries which contain the names of blocked sites.



NOTE: You can also change the ICON of the virus to make it look like a legitimate program. This method is described in the post: How to Change the ICON of an EXE file?
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Most of us are familiar with the virus that used to block Orkut and Youtube websites. If you are curious about creating such a virus on your own, here is how it can be done.As usual I am using my favorite programming language ‘C’ to create this website blocking virus. I will give a brief introduction about this virus before I jump into the technical jargon.This virus has been exclusively created in ‘C’. So, anyone with a basic knowledge of ‘C’ will be able to understand the working of this virus program. When this program is executed, it will block all those websites that are listed in the source code. In the following example, the sites that are listed in the source code are Google, Yahoo and Youtube. When you download the source code of this program, you have a choice to include your own list of sites that you want this virus to block.I have just removed the source code of this program from this post as it is lengthy and makes the post look messy. You can still download the source code of this virus program from the following link:Download Block_Site.rarHow Virus Program Works?The Windows operating system maintains a special file called HOSTS which can be used to block any given hostname or domain name (website) by adding new entries onto it. This program works by modifying the HOSTS file by adding new entries of those sites that are intended to be blocked. The HOSTS file is located at:%windir%system32driversetc (Usually: C:windowssystem32driversetc)So, when you execute this program, all it does is add the entries of the list of those sites (mentioned in the source code) to this HOSTS file. Once this is done, the site will be blocked from your computer. So, none of the browsers would be able to load those sites on your computer.For more information on HOSTS file, I recommend reading my other post on How to use HOSTS file to block websites.Now, as far as the technical part of this program is concerned, people who have a working knowledge of ‘C’ should be easily able to understand the working of this virus program. However, for those who are new to ‘C’ programming, here is the algorithm of this program:•Determine the Root drive. ie: Find the drive (C:, D:, E: or F:) on which the Windows is installed.•Navigate to: %windir% -> system32 -> drivers -> etc•Open/Load the HOSTS file.•Copy a list of those websites that are mentioned in the ARRAY to the END of the file.•Save the file and Exit.How to Compile the Source Code?For a step-by-step compilation guide, refer my post: How to compile C Programs?Testing the Virus:1.To test, run the compiled module. It will block the sites that are listed in the source code.2.Once you run the file block_Site.exe, restart your browser program. Then, type the URL of the blocked site and you’ll see the browser showing error “Page cannot displayed“.3.To remove the virus type the following command in the Run.%windir%system32driversetc4.There, open the file named “hosts” using the notepad. At the bottom of the opened file you’ll see something like this:127.0.0.1 google.com5.Delete all such entries which contain the names of blocked sites.NOTE: You can also change the ICON of the virus to make it look like a legitimate program. This method is described in the post: How to Change the ICON of an EXE file?
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Hầu hết chúng ta đã quen thuộc với các loại virus sử dụng để chặn các trang web Orkut và Youtube. Nếu bạn tò mò về việc tạo ra một loại virus như trên của riêng bạn, ở đây là làm thế nào nó có thể được thực hiện. Như thường lệ tôi đang sử dụng ngôn ngữ lập trình yêu thích của tôi 'C' để tạo ra trang web này chặn virus. Tôi sẽ cho một giới thiệu ngắn gọn về virus này trước khi tôi nhảy vào thuật ngữ kỹ thuật. Virus này đã được độc quyền tạo ra trong 'C'. Vì vậy, bất cứ ai có một kiến thức cơ bản của 'C' sẽ có thể hiểu được sự làm việc của virus này. Khi chương trình này được thực hiện, nó sẽ chặn tất cả những trang web được liệt kê trong các mã nguồn. Trong ví dụ sau đây, các trang web được liệt kê trong các mã nguồn là Google, Yahoo và Youtube. Khi bạn tải về mã nguồn của chương trình này, bạn có một sự lựa chọn để bao gồm danh sách của riêng bạn của trang web mà bạn muốn loại virus này để chặn. Tôi đã chỉ cần loại bỏ các mã nguồn của chương trình này từ bài này vì nó là lâu dài và làm cho bài nhìn lộn xộn. Bạn vẫn có thể tải về mã nguồn của chương trình virus này từ liên kết sau đây: Download Block_Site.rar ? Làm thế nào Chương trình Virus Làm việc Các hệ điều hành Windows có một tập tin gọi là HOSTS đặc biệt mà có thể được sử dụng để ngăn chặn bất kỳ tên máy hoặc tên miền (trang web nhất định ) bằng cách thêm các mục mới vào nó. Chương trình này hoạt động bằng cách thay đổi các tập tin HOSTS bằng cách thêm mục mới của các trang web được dự định sẽ được chặn. Các tập tin HOSTS được đặt tại: % windir% system32 drivers etc (Thông thường: C: windows system32 drivers etc) Vì vậy, khi bạn thực hiện chương trình này, tất cả nó là thêm các mục của danh mục các trang web (đã đề cập trong mã nguồn) đối với file HOSTS này. Một khi điều này được thực hiện, các trang web sẽ bị chặn từ máy tính của bạn. Vì vậy, không ai trong số các trình duyệt sẽ có thể tải các trang web trên máy tính của bạn. Để biết thêm thông tin về tập tin HOSTS, tôi khuyên bạn nên đọc bài khác của tôi trên Làm thế nào để sử dụng tập tin máy chủ để chặn các trang web. Bây giờ, như xa như các phần kỹ thuật này chương trình có liên quan, những người có một kiến thức làm việc của 'C' nên có thể dễ dàng hiểu được cách làm việc của virus này. Tuy nhiên, đối với những người mới làm quen với lập trình 'C', đây là thuật toán của chương trình này: • Xác định các ổ đĩa gốc. . tức là: Tìm ổ đĩa (C :, D :, E: hoặc F :) mà Windows được cài đặt • Điều hướng đến:% windir% -> system32 -> điều khiển -> vv • Mở / Tải file HOSTS. • sao chép một danh sách của những trang web được đề cập trong các ARRAY đến END của tập tin. • Lưu file và Exit. Làm thế nào để biên dịch các mã nguồn? Đối với một hướng dẫn biên soạn từng bước, tham khảo bài viết của tôi: Làm thế nào để biên dịch Chương trình C? thử nghiệm Virus: kiểm tra 1.To, chạy các mô-đun được biên dịch. Nó sẽ chặn các trang web được liệt kê trong mã nguồn. 2.Once bạn chạy file block_Site.exe, khởi động lại chương trình trình duyệt của bạn. Sau đó, gõ URL của trang web bị chặn và bạn sẽ thấy trình duyệt hiển thị lỗi "Trang không thể hiển thị". 3.To gỡ bỏ virus gõ lệnh sau trong Run. % Windir% system32 drivers etc 4.There , mở tập tin có tên "hosts" bằng notepad. Ở dưới cùng của tập tin mở, bạn sẽ thấy một cái gì đó như thế này: 127.0.0.1 google.com 5.Delete tất cả entry như vậy có chứa tên của các trang web bị chặn. NOTE: Bạn cũng có thể thay đổi ICON của virus để làm cho nó trông giống như một chương trình hợp pháp. Phương pháp này được mô tả trong bài viết: Làm thế nào để thay đổi ICON của một tập tin EXE?



























































đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: