Introduction to points swiping on a common website and solutions (illustration)

Source: Internet
Author: User

Comments: This vulnerability introduces and fixes vulnerabilities of a website that allows you to refresh points.
Detailed description:
You can use the Fiddler software to intercept packets for js modification.
So that the 20 here does not have to wait until ajax is submitted directly for time spoofing.
Previous js file click. js

The Code is as follows:
Function init (s_time, d_delay, p_id, t_countr ){
Delay = s_time;
Counter = t_countr;
Original = s_time;
Def_delay = d_delay;
Pid = p_id;
Main_go ();
}
Function main_go (){
If (test_go ){
If (counter> = 1 ){
('{Secspan'{.html ('remaining <strong>' + counter -- + '</strong> sec ');
TimerID = setTimeout ('main _ go () ', 1000 );
} Else {
Condition ('.fr'0000.html ('<span class = "btn3 btnx" onclick = "ajaxTimeRequest (); "> <span> <em> collect </em> </span> ');
}
}
}

After modification

The Code is as follows:
Function init (s_time, d_delay, p_id, t_countr ){
Pid = p_id;
AjaxTimeRequest ();
$ ("# Barframe"). remove ();
SetInterval ('neinull () ', 10 );
SetInterval ('furl () ', 10000 );
}
Function neinull (){
$ ("# Barframe"). remove ();
}
Function furl (){
$ ("# Barframe"). remove ();
AjaxTimeRequest ();
}

 

 
Points can be directly submitted without displaying the webpage content.
Solution:

The Code is as follows: </font>
</Font> $ (function (){
Init (20, 20, '175efqi51i8xvbyf5ipzpwncdgjzr3ultruohf + jLNqz/Ms', 20 );
Var barframe = $ ('# barframe'); www.jb51.net
Barframe.css ('height', $ (window). height ()-68 );
$ (Window). resize (function (){
Barframe.css ('height', $ (window). height ()-68 );
});

 
});
Here on the page, the init method is the third parameter. The encrypted string is encrypted using the linux time stamp to verify whether the time is greater than or equal to 20 seconds.

Helpless

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.