Showing posts with label Phan Mem. Show all posts
Showing posts with label Phan Mem. Show all posts

Sunday, July 15, 2012

Show Start Menu in Windows 8

In Windows 8 there is no Start Menu button on the desktop. The Start button has been removed from Windows 8. But sometimes the user wants it back with the classic style Start Menu.

In Windows 8 you can restore the functionality of the classic Start Menu that exists in Windows 7 and previous versions. In my previous article we saw how the user can create a new toolbar in the taskbar that displays all the programs when clicked, like the Start button in Windows 8.

Now, we will discuss creation of a classic Start Menu in Windows 8 like in Windows 7 with the help of the 7stacks program. You need to download a program named 7stacks that gives you the functionality of a list of stacks on the taskbar that looks like the Windows 7 classic menu.

You can download 7stacks from the following link:
http://alastria.com/software/7stacks/.

Steps to do to make a classic menu in Windows 8 using the 7stacks program.

Step 1 Download the 7stack program and unzip the folder.

Step 2 Right-click on the 7stacksSetup15b2.exe file and select Run as Administrator to install the program.

a.gif

Step 3 Follow the instructions that appear during the installation.

Step 4 In the Select Additional Tasks window check the icon Create a desktop icon checkbox. It will create a shortcut on the desktop.

b.gif

Step 5 When programs start, it displays a window with many formatting options.

Step 6 Click on the right side of the folder to select the folder that the stack uses to display.

c.gif

Step 7 In the browse dialog box go to the following directory. Then, click Ok.

k.gif

Add Items to the Win+X Menu in Windows 8

We already know that there is no Start Button and Start Menu on the desktop in Windows 8. Microsoft has decided to remove the Start Button and Start Menu in Windows 8. Many problems can happen to users who are unfamiliar with Windows 8 without the use of the Start Button and Start Menu.

But despite all these things Microsoft introduced something called the Win+X menu which is supposed to be a replacement for the Start Button in Windows 8. In Windows 8 a Win+X menu is provided instead of the start screen button. It is a hidden context menu that is displayed when the user presses the Windows Key + X from the keyboard and it is appears at the left corner of the desktop screen; that why it is known as the Win+X menu.

z.jpg

The Win+X menu is like your old Start Button that consists of the system programs and tools for the user to easily navigate without the start screen. It consists of many options such as Command Prompt, disk Management, Task Manager and other tools.

We can also add other items that we use frequently to the Win+X menu. To add the programs we use frequently, the free tool WinXEditior allows us to add programs to the Win+X menu. You can download it from the following link:
http://winaero.com/download.php?view.21.

Steps to be followed:

Step 1: Unzip the downloaded folder and open it.

a.jpg


Step 2: Open either the x64 or x86 folder. You will see the Win+X Menu Editor and the hashlnk executable files. Double-click on the WinXEditor.exe file to run the program.

b.jpg


Step 3: A Win+X Menu Editor for Windows 8 window is opened. There are already three groups of shortcuts displayed in the window.

c.jpg

Step 4: To create a shortcut we create a new group. Click the Add Group button from the bottom to create a new group.

d.jpg

The new group is added to the window and displayed at the top.

e.jpg

Step 5: Now, we add a shortcut for the program to the new group. Highlight the new group and click the Add Shortcut button from the bottom of the window. A dialog box appears.

Turn on IIS 8 in Windows 8

Introduction

In this article we are explaining how to install IIS 8 on Windows 8. IIS 8 is Internet Information Service 8. When you deploy your website into a server then you must turn on Internet Information Service on Windows. Windows provides Internet Information Service. IIS 8 is a server. It is a set of internet based services for servers.

It is created by Microsoft. It is the most popular web server and this server provides the services for file transfer protocol, SMTP for e-mail and HTTP for the web server. You can type appwiz.cplunder run for installing the IIS 8. You can install the IIS on your system using the Control Panel and click on Programs and Features and follow the steps given below.

Steps How to Install IIS on Windows 8

Step 1: You move your mouse to the bottom-right and click on search as shown below:

t1.jpg

Step 2: In the search box, you can type the name "Control Panel" and click on the Control Panel.

t2.jpg

Step 3: In the Control Panel, you click the drop-down menu arrow in the category tab and select the "Large Icons".

Saturday, July 14, 2012

Một phương pháp chống DDoS bằng xFlash

Ý tưởng

Dựa vào gợi ý của Amit Klein:
Notice the first limitation of the technique - it states that no raw CR and LF can be placed in the body section. This means that the technique cannot be used to send (POST) requests whose body complies with the "multipart/form-data" content-type format (this format uses raw CRs and LFs to mark headers and boundaries). In other words, a (POST) request whose body is a valid "multipart/form-data" stream is guaranteed (as far as today's knowledge extends) not to be sent from a Flash player. Web application authors can therefore use HTML forms whose ENCTYPE attribute is set to "multipart/form-data", and enforce that the submission contains a valid multipart/form-data body. Once these mechanisms are in place, and a request passes through, it is known not to originate from a Flash player, so the attack
described here is irrelevant.

Gợi ý ở trên có thể được diễn giải như sau:

  • Cách thức browser xử lí các HTML form có enctype = "multipart/form-data" và enctype = "application/www-urlencoded" (default) hoàn toàn khác nhau. Điểm khác nhau đặc trưng là khi submit (nghĩa là tạo ra POST request) form "multipart/form-data", browser sẽ tự động set Content-type là "multipart/form-data", còn khi submit các form khác, browser sẽ sử dụng Content-type là "application/www-urlencoded".


  • Flash (với các hàm thường được sử dụng để DDoS như LoadVars, GetURL hay SendtoURL, etc...) không thể gửi POST request theo định dạng "multipart/form-data". Đây chính là "gót chân Asin" của Flash.


  • Do đó nếu bằng một cách nào đó, ta có thể set tất cả các form thành enctype = "multipart/form-data", nghĩa là ép tất cả POST request có Content-type là "multipart/form-data", ta sẽ có thể phát hiện ra những POST request xuất phát từ Flash, vốn dĩ luôn có Content-type là "application/www-urlencoded".

Hiện thực

Để hiện thực hóa ý tưởng này, ta cần phải có một cách nào đó biến tất cả các HTML form thành enctype = "multipart/form-data", rồi sau đó phải chỉnh sửa lại server-side code để xử lí các form này (tin vui: thử nghiệm với một vài ngôn ngữ lập trình phổ biến như PHP, Java và Ruby, tôi thấy rằng không cần phải chỉnh sửa server-side code, các ngôn ngữ này đều có cách thức xử lí giống nhau với hai loại enctype của HTML form).