Write a bat batch file to start the windows Process and to disable the delay.

Source: Internet
Author: User

The previous day, the leaders asked us to vote on the website to improve his ranking, but each person only voted for more than 100 votes. After a few days, the leaders asked me if I would do a ticket farming program to improve the ranking. I said I could try it. After studying it for a day, I finally made it. I was so excited that I didn't fall asleep all night. Now let's share it with you.
To put it bluntly, what I do is actually a batch processing file with the batch processing extension. bat, in fact, the voting page only uses the session to control whether to vote. As we all know, the session variable will automatically disappear after IE is closed, and a new connection will be created when the page is re-opened, this can be repeated. This page uses AJAX. I found the JS where ajax is located, found its real voting page, and passed the ID through the page for voting. The current task is to automatically open the IE connection voting page, and then automatically disconnect and re-connect, so as to achieve Repeated voting.
This voting website has two critical points. One is to use the session server to control the voting without IP control. As a result, one IP address can be used to repeatedly vote, second, the parameters on the actual voting page are transmitted through the GET method, which may lead to fraud.
Using the above two vulnerabilities, I also performed a bat batch processing, as shown below: Copy codeThe Code is as follows: @ echo off
Echo is shutting down the Redundant process. Please wait ......
Taskkill/f/im iexplore.exe
Echo ------------- the program Initialization is complete. please instruct! ----------
Echo. & pause
: Openie
Echo is voting. Please wait ......
Start "" C: \ Program Files \ Internet Explorer \ ipolice.exe"
Echo IE enabled!
Ping 127.0.0.1-n 2
Taskkill/f/im iexplore.exe
Echo 2 seconds delayed to close the vote!
Goto openie

Echo. & pause

Key points:
Taskkill/f/im iexplore.exe force stop the IE process. Of course, you can also disable other processes. You can check the process name in the task manager.
Start "" C: \ Program Files \ Internet Explorer \ iw.e.exe "is to open a windows Program. Note the path. Note that" "After start must not be discarded.
Ping 127.0.0.1-n 2 uses this to delay. We all know that the execution of the bat batch processing delay is too troublesome. In this case, we should note that we must ping the local 127.0.0.1, otherwise, the recording length may be different.-n 2 means to repeat twice, which is about 2 seconds. Of course, the length can be adjusted as long as a number is required.
Key point: the infinite loop of bat batch processing. : Openie indicates setting a vertex. It can be any combination of letters. Do not repeat keywords. Goto openie means to return the vertex openie set in the front and back of the set return vertex.

Now you can copy the above Code to a text document. You must change the extension to. bat, which is the standard extension for batch processing. Of course, a very classic program of 98 is autoexec. bat. I believe many people have heard of it. If you are interested, you can refer to Baidu. You can also enable or end the processes of other programs.
If there is anything I can do, I can ask myself, And the QQ number is on the right side of the page to jointly improve common progress.
The following program is found on the internet and can be copied. I know what it is, and I haven't understood it in some places. If you have a high comprehension ability, study it on your own!
Tip: The following program monitors whether a process exists. If it does not exist, it is started. If the process is lost, it is started so that the program runs forever!Copy codeThe Code is as follows: @ echo off
Set _taskdetailnotepad.exe
Set _ svr = c: \ windows \ notepad.exe
Set _ des = start. bat
: Checkstart
For/f "tokens = 5" % n in ('qprocess.exe ^ | find "% _ task %" ') do (
If % n = % _ task % (goto checkag) else goto startsvr
)
: Startsvr
Echo % time %
The echo ******** program starts to start ********
Echo program restarts at % time %. Check System logs> restart_service.txt
Echo start % _ svr %> % _ des %
Echo exit> % _ des %
Start % _ des %
Set/p =. <nul
For/L % I in (1 1 10) do set/p a =. <nul&ping.exe/n 2 127.0.0.1> nul
Echo.
Echo Wscript. Sleep WScript. Arguments (0)> % tmp % \ delay. vbs
Cscript // B // nologo % tmp % \ delay. vbs 10000
Del % _ des %/Q
Echo ******** program startup completed ********
Goto checkstart

: Checkag
Echo % time % the program runs normally. Check again 10 seconds later ..
Echo Wscript. Sleep WScript. Arguments (0)> % tmp % \ delay. vbs
Cscript // B // nologo % tmp % \ delay. vbs 10000
Goto checkstart

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.