RoniElBombardero

#HackEduMexico #colegioBachilleresMX by roni bombardero

Dec 8th, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. Recompilacion Colegio bacilleres #ByRoniBombardero #MexicoEduHack
  2. url admin de docentes: 201.147.155.198/cbeducaprof/login/index.php
  3. me logre filitrar mediate diferentes directorios estos son los css,htlms,js encontrados
  4. devilitando la pagin con metodo de ataque python..torshammers.py
  5. target: http://www.cbachilleres.edu.mx/cbportal/
  6. COOKIES:
  7. /*******************************************************
  8. COOKIE FUNCTIONALITY
  9. Based on "Night of the Living Cookie" by Bill Dortch
  10. (c) 2003, Ryan Parman
  11. http://www.skyzyx.com/
  12. Distributed according to SkyGPL 2.1, http://www.skyzyx.com/license/
  13. *******************************************************/
  14. function cookie(name, value, expires, path, domain, secure)
  15. {
  16. // Passed Values
  17. this.name=name;
  18. this.value=value;
  19. this.expires=expires;
  20. this.path=path;
  21. this.domain=domain;
  22. this.secure=secure;
  23.  
  24. // Read cookie
  25. this.read=function()
  26. {
  27. // To allow for faster parsing
  28. var ck=document.cookie;
  29.  
  30. var arg = this.name + "=";
  31. var alen = arg.length;
  32. var clen = ck.length;
  33. var i = 0;
  34.  
  35. while (i < clen)
  36. {
  37. var j = i + alen;
  38. if (ck.substring(i, j) == arg)
  39. {
  40. var endstr = ck.indexOf (";", j);
  41. if (endstr == -1) endstr = ck.length;
  42. return unescape(ck.substring(j, endstr));
  43. }
  44. i = ck.indexOf(" ", i) + 1;
  45. if (i == 0) break;
  46. }
  47. return null;
  48. }
  49.  
  50. // Set cookie
  51. this.set=function()
  52. {
  53. // Store initial value of "this.expires" for re-initialization.
  54. expStore=this.expires;
  55.  
  56. // Set time to absolute zero.
  57. exp = new Date();
  58. base = new Date(0);
  59. skew = base.getTime();
  60. if (skew > 0) exp.setTime (exp.getTime() - skew);
  61. exp.setTime(exp.getTime() + (this.expires*24*60*60*1000));
  62. this.expires=exp;
  63.  
  64. document.cookie = this.name + "=" + escape (this.value) +
  65. ((this.expires) ? "; expires=" + this.expires.toGMTString() : "") +
  66. ((this.path) ? "; path=" + this.path : "") +
  67. ((this.domain) ? "; domain=" + this.domain : "") +
  68. ((this.secure) ? "; secure" : "");
  69.  
  70. // Re-initialize
  71. this.expires=expStore;
  72. }
  73.  
  74. // Kill cookie
  75. this.kill=function()
  76. {
  77. document.cookie = this.name + "=" +
  78. ((this.path) ? "; path=" + this.path : "") +
  79. ((this.domain) ? "; domain=" + this.domain : "") +
  80. "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  81. }
  82.  
  83. // Change cookie settings.
  84. this.changeName=function(chName) { this.kill(); this.name=chName; this.set(); }
  85. this.changeVal=function(chVal) { this.kill(); this.value=chVal; this.set(); }
  86. this.changeExp=function(chExp) { this.kill(); this.expires=chExp; this.set(); }
  87. this.changePath=function(chPath) { this.kill(); this.path=chPath; this.set(); }
  88. this.changeDomain=function(chDom) { this.kill(); this.domain=chDom; this.set(); }
  89. this.changeSecurity=function(chSec) { this.kill(); this.secure=chSec; this.set(); }
  90. }
  91.  
  92. FOOTER.HTML
  93.  
  94. '; echo '
  95. '; echo page_doc_link(get_string('moodledocslink')); echo '
  96.  
  97. '; echo $loggedinas; echo $homelink; print_container_end(); ?>
  98.  
  99. STYLES.PHP
  100.  
  101. /**************************************
  102. * THEME NAME: standardblue
  103. *
  104. * Files included in this sheet:
  105. *
  106. * standardblue/gradients.css
  107. **************************************/
  108.  
  109. /***** standardblue/gradients.css start *****/
  110.  
  111. /**
  112. * Adds all the nice finish to the standard theme
  113. *
  114. */
  115.  
  116. th.header,
  117. td.header,
  118. div.header {
  119. background-image:url(gradient.jpg);
  120. background-position:top;
  121. background-repeat:repeat-x;
  122. }
  123.  
  124. .navbar {
  125. background-image:url(gradient.jpg);
  126. background-position:top;
  127. background-repeat:repeat-x;
  128. }
  129.  
  130. /***** standardblue/gradients.css end *****/
Add Comment
Please, Sign In to add comment