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

 

 


Tema destacado: Security Series.XSS. [Cross Site Scripting]


  Mostrar Mensajes
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 ... 55
121  Foros Generales / Foro Libre / Re: Buscando Grupo Hacker, o buscando gente noob, avanzada, etc para formar uno? en: 28 Junio 2015, 00:23 am
Me uno aunque he estado en mas "grupos" y me acuerdo que en un grupo de skype de 40 personas o mas nadie hablaba... nadie quiere hacer nada o preguntan cosas generales y nada o ningún programa para hacer.
122  Seguridad Informática / Hacking / Re: Debugueando la web de whatsapp en: 24 Junio 2015, 22:23 pm
La parte mas importante esta aquí: https://web.whatsapp.com/app_fc1a3e82f3af3dcb06d4.js
Han puesto 4 veces que reservan sus derechos  :o
Son unas 61232 lineas pero fíjate solo en lo importante

http://jsbeautifier.org/ Tarda en copiar y pegar  ;D

La función de enviar el mensaje es esta:

Código
  1.            sendMessage: function(e) {
  2.                if (e = "undefined" == typeof e ? "" : e.trim(), "" !== e) {
  3.                    this._messageSent();
  4.                    var t = this.id,
  5.                        r = Wa.me,
  6.                        n = new s({
  7.                            id: Wa.createMsgKey(r, t, f.tag()),
  8.                            body: e,
  9.                            type: "chat",
  10.                            t: Wa.now(),
  11.                            from: r,
  12.                            to: t,
  13.                            local: !0,
  14.                            ack: 0
  15.                        });
  16.                    Store.Msg.send(n), this.msgs.add(n)
  17.                }
  18.            },

Solo texto y luego si quieres saber que significa cada variable tienes que "debuguear"

Bueno y como todas las funciones están en una función anónima hace falta reescribir la función entera.

La web de skype funciona de forma parecida.
123  Seguridad Informática / Hacking / Re: Debugueando la web de whatsapp en: 23 Junio 2015, 23:31 pm
Yo hice un spmmer que era un extensión de chrome que reescribía todo el objeto whatsapp donde estaban todas las funciones para el funcionamiento de la web. Al cambiar una parte de su código enviaba muchos mensajes. Luego perdí el código pero la idea te puede servir.
124  Programación / Programación C/C++ / Re: chmod aleatorio con program en c++ en: 23 Junio 2015, 03:37 am
Gracias por los links
Me los leí y probé esto:

Tengo 1 shell y una carpeta

Código
  1. -rwsrwxr-x 1 root     root       25 jun 23 03:29 test.sh
  2. drwxr-xr-x 2 root     root     4096 jun 23 03:28 a

Shell:
Código
  1. #!/bin/sh
  2. id
  3. chmod 777 a

Ahora entro desde el usuario y abro la shell test.sh que contiene el SUID por lo que debería de tener los mismos permisos que el usuario creador. Pero no es asi...
125  Programación / Programación C/C++ / Re: chmod aleatorio con program en c++ en: 22 Junio 2015, 22:49 pm
Vale pero que significan los permisos que se crearon antes ? La S mayúscula. Es un archivo sin permisos?
126  Programación / Programación C/C++ / Compartir un std::vector<char> entre dos hilos fork() con memoria compartida shm en: 22 Junio 2015, 14:42 pm
Hola estoy intentando hacer un programa que cree 2 hilos, el principal que leerá datos de una archivos y los guardara en un vector<char> mientras que el otro hilo lee el vector<char> eliminando el primer dato pop_back() para escribir lo en otro archivo.

El problema es que no se compartir un vector<char> en la memoria entre los dos hilos.
Empecé por hacer esto:

Código
  1. vector<char> *buffer = new vector<char>();
  2. shmget(IPC_PRIVATE,1024 * sizeof(vector<char>),IPC_CREAT | 0700);

pero luego no se como seguir con shmat()
Un código ejemplo pls  :D

Saludos
127  Sistemas Operativos / GNU/Linux / Re: notify-send y init.d en: 22 Junio 2015, 10:14 am
Que notifyd estas usando? Si quieres hacer un script de sysvinit vas a tener que hacerlo después que el daemon este activo.

No te entendí del todo pero tampoco consigo hacer lo con un cron y una sh
Como encontrar el notifyd?
128  Programación / Programación C/C++ / Re: chmod aleatorio con program en c++ en: 22 Junio 2015, 10:12 am
Si, esta parte me crea el archivo pero se produce lo mismos si hago un chmod con 0x00777

Código
  1. chmod(fileName,0x00777);

Aunque aqui el resultado es siempre -r-xrwSrwt

Que significa ?? Porque nunca he visto una S mayúscula y la t no me cuadran.

Y el open(..) debería de crear un archivo con los mismos permisos que el programa que lo esta ejecutando.
129  Programación / Programación C/C++ / chmod aleatorio con program en c++ en: 22 Junio 2015, 00:02 am
Hola escribí esto:

Código
  1. #include <fcntl.h>
  2. #include <stdio.h>
  3. #include <unistd.h>
  4. #include <string.h>
  5.  
  6. int main(){
  7. char name[100];
  8. int i = 0;
  9. int file = -1;
  10. do{
  11. if(file != -1)
  12. close(file);
  13. sprintf(name,"file%d",i);
  14. }while((file = open(name,O_RDONLY)) != -1 && ++i);
  15. file = open(name,O_WRONLY | O_CREAT);
  16. char text[1024];
  17. for(int j = 0;j<i+1;j++){
  18. sprintf(text,"Hola %d veces\n",j);
  19. while(write(file,text,strlen(text)) != strlen(text));
  20. }
  21. close(file);
  22. return 0;
  23. }

luego use un bucle
Código
  1. while true; do ./a.out;done

En el escritorio me aparecieron mucho archivos con sus permisos aleatorios y raros.
Ejemplo:
Código
  1. ----r-Sr-t 1 root     root     14155 jun 21 23:57 file950
  2. --wS---r-x 1 root     root     14170 jun 21 23:57 file951
  3. ---Sr-Sr-x 1 root     root     14185 jun 21 23:57 file952
  4. ------Sr-x 1 root     root     14200 jun 21 23:57 file953
  5. --ws---r-t 1 root     root     14215 jun 21 23:57 file954
  6. -rwxr-Sr-x 1 root     root     14230 jun 21 23:57 file955
  7. -r----Sr-x 1 root     root     14245 jun 21 23:57 file956
  8. -r-xr--r-t 1 root     root     14260 jun 21 23:57 file957
  9. -r-sr--r-t 1 root     root     14275 jun 21 23:57 file958
  10. -r-Sr-Sr-t 1 root     root     14290 jun 21 23:57 file959
  11. -r-Sr--r-T 1 root     root      1348 jun 21 23:57 file96
  12. --wSr--r-x 1 root     root     14305 jun 21 23:57 file960
  13. ---xr--r-x 1 root     root     14320 jun 21 23:57 file961
  14. -rwSr-Sr-t 1 root     root     14335 jun 21 23:57 file962
  15. --wxr-Sr-x 1 root     root     14350 jun 21 23:57 file963
  16. -r-sr--r-t 1 root     root     14365 jun 21 23:57 file964
  17. ---xr--r-t 1 root     root     14380 jun 21 23:57 file965
  18. -rw-r--r-x 1 root     root     14395 jun 21 23:57 file966
  19. -rw-r--r-t 1 root     root     14410 jun 21 23:57 file967
  20. -rwx--Sr-x 1 root     root     14425 jun 21 23:57 file968
  21. ---xr--r-x 1 root     root     14440 jun 21 23:57 file969
  22. -r--r-Sr-T 1 root     root      1362 jun 21 23:57 file97
  23. -r--r--r-x 1 root     root     14455 jun 21 23:57 file970
  24. --w----r-t 1 root     root     14470 jun 21 23:57 file971
  25. -r----Sr-t 1 root     root     14485 jun 21 23:57 file972
  26. -rw---Sr-x 1 root     root     14500 jun 21 23:57 file973
  27. ------Sr-x 1 root     root     14515 jun 21 23:57 file974
  28. --w-r-Sr-t 1 root     root     14530 jun 21 23:57 file975
  29. -rw---Sr-t 1 root     root     14545 jun 21 23:57 file976
  30. -rwx--Sr-t 1 root     root     14560 jun 21 23:57 file977
  31. ---x--Sr-t 1 root     root     14575 jun 21 23:57 file978
  32. -------r-t 1 root     root     14590 jun 21 23:57 file979
  33. ----r-Sr-T 1 root     root      1376 jun 21 23:57 file98
  34. -r-sr--r-t 1 root     root     14605 jun 21 23:57 file980
  35. -rwxr--r-t 1 root     root     14620 jun 21 23:57 file981
  36. --wxr-Sr-t 1 root     root     14635 jun 21 23:57 file982
  37. --ws---r-t 1 root     root     14650 jun 21 23:57 file983
  38. ---Sr--r-x 1 root     root     14665 jun 21 23:57 file984
  39. -rw-r--r-x 1 root     root     14680 jun 21 23:57 file985
  40. -rw-r-Sr-t 1 root     root     14695 jun 21 23:57 file986
  41. --wxr-Sr-t 1 root     root     14710 jun 21 23:57 file987
  42. -r-S--Sr-t 1 root     root     14725 jun 21 23:58 file988
  43. --wsr--r-x 1 root     root     14740 jun 21 23:58 file989
  44. --ws---r-T 1 root     root      1390 jun 21 23:57 file99
  45. --wS---r-t 1 root     root     14755 jun 21 23:58 file990
  46. -r-xr--r-x 1 root     root     14770 jun 21 23:58 file991
  47. -rwS--Sr-x 1 root     root     14785 jun 21 23:58 file992
  48.  

Porque??

Saludos
130  Sistemas Operativos / GNU/Linux / notify-send y init.d en: 21 Junio 2015, 01:13 am
Hola tengo un shell:

Código
  1. notify-send hola!!

Al ejecutarlo con root funciona bien pero con usuario ordinario no y tampoco funciona al ejecutarlo con
/etc/init.d/file.sh
update-rc.d file.sh defaults

Al buscar un poco llegue a esto:

Código
  1. #!/bin/sh
  2. su usuario
  3. DISPLAY=:0.0;
  4. notify-send hola!!
Pero sigue sin funcionar.


Ayuda  :D


Un saludo
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 ... 55
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines