Recently I saw that the voting ranking of jay, whom I have loved for many years, is not very satisfactory (someone must have used a voting machine to push jay down),
so I want to write an automatic voting machine. The implementation ideas are as follows
1. View the voting source code to view jay What data will be submitted to the web server using post or get method when voting is submitted? Write down
2. Create a webclient class and set http header and post data
3. After my great Google search, I learned that the winnt operating system has a rasdial command that can automatically dial,
Dial: rasdial "adsl connection name" "username" "password"
Disconnect: rasdial /disconnect
4 Write a class that contains two methods, one for dialing and one for disconnecting (you can call the command console cmd.exe through the Process class and add the parameter /c rasdial "adsl connection name" " Username" "password" to dial, then cmd /c rasdial /disconnect)
ok The main program should be as follows
while
{
adslConnectClass.Start();
Sleep(3000);
WebClient submits Post;
Sleep(3000);
adslConnectClass.Stop();
Sleep(1000);
}
This way you can vote for jay HOHO
http://www.cnblogs.com/coderlee/archive/2006/09/12/502448.html