elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Recopilación Tutoriales y Manuales Hacking, Seguridad, Privacidad, Hardware, etc


  Mostrar Mensajes
Páginas: [1]
1  Programación / Desarrollo Web / chat que conecta con paginas de facebook en: 29 Junio 2016, 19:37 pm
Muchos de nosotros tenemos una pagina de facebook pero cuando deseamos que nos contacten por nuestra web y se conecten a nuestra pagina de facebbok aqui la solucion que encontre gogleando en internet



https://bitbucket.org/servitel/facebook/

espero les sirva de algo

Saludos.
2  Programación / Desarrollo Web / Montar un Servidor Web / Pasos para todos los usuarios que nos pidieron. en: 13 Noviembre 2013, 22:07 pm
http://www.youtube.com/watch?v=hopyyATL7d4
3  Programación / PHP / Re: Ayuda como subir un .txt a un txtarea en: 21 Septiembre 2013, 16:17 pm
Mi localhost y en el server que tengo me genera lo mismo.


MI APPSERVER
Citar
error_append_string   no value   no value
error_log   no value   no value
error_prepend_string   no value   no value
error_reporting   6135   6135


Citar
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL             - All errors and warnings (doesn't include E_STRICT)
; E_ERROR           - fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT         - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices and coding standards warnings
;
;error_reporting = E_ALL & ~E_NOTICE
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE | E_STRICT
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors except for notices and coding standards warnings
;
error_reporting  =  E_ALL & ~E_NOTICE

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = Off

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line until ignore_repeated_source is set true.
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; sourcelines.
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
report_memleaks = On

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; Disable the inclusion of HTML tags in error messages.
; Note: Never use this feature for production boxes.
;html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot.
; Note: Never use this feature for production boxes.
;docref_root = "/phpmanual/"
;docref_ext = .html

; String to output before an error message.
;error_prepend_string = "<font color=ff0000>"

; String to output after an error message.
;error_append_string = "</font>"

; Log errors to specified file.
;error_log = filename

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog
4  Programación / PHP / Re: Ayuda como subir un .txt a un txtarea en: 20 Septiembre 2013, 19:23 pm
me correo bien me importa el txt pero cuando carga la pagina carga en el txtarea

Citar
<br />
<b>Warning</b>:  fopen() [<a href='function.fopen'>function.fopen</a>]: Filename cannot be empty in <b>/home/compudel/public_html/email/mail.php</b> on line <b>275</b><br />
<br />
<b>Warning</b>:  fread() expects parameter 1 to be resource, boolean given in <b>/home/compudel/public_html/email/mail.php</b> on line <b>276</b><br />
 
              

y en el me arroja el error en esta linea

Citar
   $gestor = fopen($name,'r');

en tu caso es el
Citar
   $handle = fopen($name,'r');
5  Programación / PHP / Re: Ayuda como subir un .txt a un txtarea en: 16 Septiembre 2013, 03:22 am
ESTOY ADJUNTANDO EL CODIGO PERO NO ME PERMITE IMPORTAR EL TXT CON SU LISTA DE NOMBRES SUBIRLO AL TXTAREA DENME UNA MANO DONDE TENGO Q COLOCAR para q me suba al txtarea

Código:
<?php

set_time_limit(0);

if($_POST['Manda'])
{

    //FORMATO DE USER / DESTINATARIO
    $FromName = $_POST['FromName'];
    $FromMail = $_POST['FromMail'];
   

    $assunto = $_POST['assunto'];
    $mensagem = $_POST['html'];
    $mensagem = stripslashes($mensagem);
    //CUERPO DEL SPAMER V.1.0
    $headers  = "From: " . $FromName . " <" . $FromMail . ">\n";
    $headers .= "MIME-Version: 1.0\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\n";
    $headers .= "Content-Transfer-encoding: 8bit\n";
    $headers .= "Reply-To: " . $FromName . " <" . $FromMail . ">\n";
    $headers .= "Return-Path: " . $FromMail . "\n";
    $headers .= "Message-ID: <".md5(uniqid(time()))."@$mailserver>\n";
    $headers .= "X-Priority: 1\n";
    $headers .= "X-MSmail-Priority: High\n";
    $headers .= "X-Mailer: Microsoft Office Outlook, Build 11.0.5510\n";
    $headers .= "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441";
   
    $arquivo = $_POST['lista'];
   
    $file = explode("\n", $arquivo);
    $i = 1;

}
?>
<style type="text/css">
<!--
body {
background-image: url(img/bg_general.jpg);
}
.Estilo1 {
font-size: 11px
}
-->
</style><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p align="center"><img src="img/metropolitano-logo.png" width="653" height="100"></p>
<style type="text/css">
td {
    font-family:verdana;
    color:#000000;
    font-size:10px;
}
</style>
<?
if($_POST['Manda']) { ?>
<table width="59%" height="30" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#333333">
  <tr>
    <td bgcolor="#f5f5f5">
      <font color="#FF0000"><a href="https://twitter.com/Xyroz/">
<font color="#FF0000" face="Verdana">
<span style="text-decoration: none">Mensajes Enviados Correctamente<?
            foreach ($file as $mail) {
                if(mail($mail, $assunto, $mensagem, $headers)) {
                    echo "<font color=green face=verdana size=1>* $i - ".$mail."</font> <font color=green face=verdana size=1>OK</font><br>";
                } else {
                    echo "* $i  ".$mail[$i]." <font color=red>NO</font><br><hr>";
                    $i++;
                }
            }
       ?>
    </span></font></a></font>
    </td>
  </tr>
</table>
<? } ?>
<form name="form1" method="post" action="">
  <table width="47%" height="202" border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
            <td colspan="2" align="center"><div align="right"><b>red</b></div></td>
    </tr>
          <tr>
            <td width="34%" align="center" bgcolor="#FFFFFF"><div align="center"><b>Asunto:</b></div></td>
            <td width="66%" bgcolor="#CCCCCC">
  <div align="center">
    <input name="assunto" type="text" id="assunto3" value="Hola" size="50">
        </div></td>
          </tr>
          <tr>
            <td align="center" bgcolor="#FFFFFF"><div align="center"><b>Mensaje / Inicio:</b></div></td>
            <td bgcolor="#CCCCCC">
  <div align="center">
    <input name="FromName" type="text" value="amigos " size="50">
        </div></td>
          </tr>
          <tr>
            <td align="center" bgcolor="#FFFFFF"><div align="center"><b>Quien Envia:</b></div></td>
            <td bgcolor="#CCCCCC">
  <div align="center">
    <input name="FromMail" type="text" value="postmaster@mail.hotmail.com " size="50">
        </div></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#CCCCCC"><div align="center">
              <textarea name="html" cols="38" rows="10" id="textarea2"></textarea>
            </div></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF">subir</td>
            <td bgcolor="#CCCCCC"><input type="file" name="file" id="file">
              <input type="submit" name="submit" value="Subir"></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF"><p align="center"><b>Lista de nombres que estan en el txt </b><strong></strong></p>            </td>
            <td bgcolor="#CCCCCC"><div align="center">
              <textarea name="lista" cols="38" rows="10" id="textarea3"></textarea>
            </div></td>
          </tr>
          <tr>
            <td align="center" colspan="2"><input name="Manda" type="submit" id="Manda" value="Enviar Correos"></td>
          </tr>
          <tr>
            <td align="center" colspan="2"><div align="right" class="Estilo1"> Dmodel</div></td>
          </tr>
        </table>

</form>
6  Programación / PHP / Re: Ayuda como subir un .txt a un txtarea en: 12 Septiembre 2013, 23:50 pm
implemente el php pero no me funciono ay esta c omo lklo tengo hay una forma de agregarlo me ayudass
7  Programación / PHP / Re: Ayuda como subir un .txt a un txtarea en: 12 Septiembre 2013, 19:03 pm
esta es la forma como quiero que funcione cuando le doy en examinar busco el txt ,clic en subir y aparece en txtarea uno debajo de otro los nombres pero me genera error este es lo que tengo actualmente  :-(


Código:
<td bgcolor="#FFFFFF"><div align="center">Importar txt </div></td>
            <td bgcolor="#CCCCCC"><div align="center">
              <input type="file" name="file" id="file">
              <input type="submit" name="submit" value="Subir">
            </div></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF"><p align="center"><b>Lista </b></p>            </td>
            <td bgcolor="#CCCCCC"><div align="center">
              <textarea name="lista" cols="38" rows="10" id="textarea3"></textarea>
            </div></td>
8  Programación / PHP / Re: Ayuda como subir un .txt a un txtarea en: 12 Septiembre 2013, 05:11 am
Dime si quiero ponerle un botón examinar y un botón subir al seleccion el archivo txt y le doy clic en enviar se agregue lka lista de nombres al txtarea como seria eso ayuda
9  Programación / PHP / Ayuda como subir un .txt a un txtarea en: 11 Septiembre 2013, 19:10 pm
hola estoy desarrollando una aplcacion tengo un txtarea y quiero agregarle un boton examinar y que busque el archivo .txt que tiene una lista de nombrs se agregue a mi txtarea ayuda  ..!!

Código:
<textarea name="lista" cols="38" rows="10" id="textarea3"></textarea>
10  Programación / PHP / Re: [Share] - Intranet Colegio (PHP,MYSQL) en: 12 Agosto 2013, 22:13 pm
Mi estimado  echo todo y entrado al Mysql cambie los estados como indicas pero igual no puedo ingresar.. algo esta mal en ello todo me cargo sin ningun problema subi los procedimientos a la perfeccion cambie los estados dentro del mysql usuarios reveca y como lo mencionas en el foro pero igual no ingreso? algo te falto detallar mi estimado


Cómo hacerlo funcionar

Como prometí explicar:

1º Descargamos el archivo site.rar desde aquí: http://ns2.elhacker.net/site.rar, que es el enlace que está al inicio del post.

2º Cada uno que lo instale o lo use donde quiera. Yo voy a usar (XAMPP) en un ordenador con Windows 7 para testearlo en local, los pasos en un servidor serán similares.

En mi caso descomprimo el archivo site.rar en el directorio: C:\xampp\htdocs y ahí se creará una carpeta llamada site. Dentro de esa carpeta hay un montón de archivos php.

3º Hay que crear la base de datos con la que trabaja el programa. Si abres por ejemplo, el archivo que se llama conexion.php verás esto:
Código
  1. $conex = array('localhost','root','31100886','dbintranet');
con lo cual ya sabemos que la base de datos se llama dbintranet, hay que abrirla como usuario root y tiene contraseña 31100886. Para hacerlo más sencillo, borro la contraseña quedando:
Código
  1. $conex = array('localhost','root','','dbintranet');
guardo el archivo conexion.php

Crear la base de datos.

Me dirijo en mi ordenador (con el navegador web) a phpMyAdmin, aquí:
Código
  1. http://localhost/phpmyadmin/

Voy a "Bases de datos" y "Crear nueva base de datos". Pulso el botón "Crear":


Selecciono la bdd dbintranet. La base de datos está vacía vamos a importar las tablas: Importar -> seleccionar archivo y selecciono el archivo que está en C:\xampp\htdocs\site llamado web.sql. Pulso abajo el botón continuar. Tarda un poquito. Se ejecutaron 5457 consultas:


Ya tenemos creadas todas las tablas. Sin embargo, esta base de datos hace uso de procedimientos almacenados que son necesarios para el buen funcionamiento del programa. Lógicamente si ese código no existe, no puede funcionar bien cuando sea llamado... es utilizado por ejemplo, para iniciar sesión.

Añadir los procedimientos almacenados.

En phpMyAdmin, vamos a la base de datos dbintranet. Vamos a SQL y ahí en SQL debemos pegar todo el contenido del archivo procedimientos_Sistema.sql que está en C:\xampp\htdocs\site. En delimiter poner //


¿Sabes donde quedan guardados estos procedimientos y puedes averiguar si lo has hecho bien? En phpMyAdmin -> localhost -> mysql -> proc (por ejemplo un procedimiento es sp_actualiza_datos_alumno).

Todo preparado. Arrancando.
¿Cómo iniciarlo? Bueno, en C:\xampp\htdocs\site hay un archivo index.php así que en el navegador me voy a:

Código
  1. http://localhost/site/

Y ya aparece la pantalla inicial:


Encontrando contraseña

Finalmente queda encontrar una contraseña y usuario. Voy a entrar con el nombre de usuario reveca. Echa un vistazo a la tabla usuarios.

Para ver cómo se hace la conexión, mira el archivo C:\xampp\htdocs\site\login.php

Código
  1. $consulta = "call sp_ingreso_login('$usuario','$clave');";

Así que voy al procedimiento almacenado llamado sp_ingreso_login y le echo un vistazo:
Código
  1. CREATE PROCEDURE sp_ingreso_login(usuario_ VARCHAR(30),clave_ text)
  2. BEGIN
  3. SELECT u.idusuario,p.idpersonal,ca.idcargo,ca.cargo,u.usuario,concat(p.apellidos,', ',p.nombres) AS personal,p.sexo FROM usuario u INNER JOIN clave c
  4.  
  5. ON u.idusuario=c.idusuario INNER JOIN personal p ON p.idpersonal=u.idpersonal INNER JOIN cargo ca ON u.idcargo=ca.idcargo WHERE u.estado='1' AND c.estado='1'
  6.  
  7. AND u.usuario=usuario_ AND c.clave=clave_;
  8. END

Si lo analizas un poco verás que falta dos cosas: tanto el estado en la tabla usuario de reveca como el estado en la tabla clave de reveca están a 0. Hay que cambiar estos dos valores a 1.

Y ya está. si observas la clave está cifrada en md5. La de reveca es 1 (http://www.md5decrypt.org/), así que:

Usuario: reveca
Password: 1

Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines