Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - patilanz

#121
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
Hacking / Re: Debugueando la web de whatsapp
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 (javascript) [Seleccionar]
           sendMessage: function(e) {
               if (e = "undefined" == typeof e ? "" : e.trim(), "" !== e) {
                   this._messageSent();
                   var t = this.id,
                       r = Wa.me,
                       n = new s({
                           id: Wa.createMsgKey(r, t, f.tag()),
                           body: e,
                           type: "chat",
                           t: Wa.now(),
                           from: r,
                           to: t,
                           local: !0,
                           ack: 0
                       });
                   Store.Msg.send(n), this.msgs.add(n)
               }
           },


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
Hacking / Re: Debugueando la web de whatsapp
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
Gracias por los links
Me los leí y probé esto:

Tengo 1 shell y una carpeta

Código (bash) [Seleccionar]
-rwsrwxr-x 1 root     root       25 jun 23 03:29 test.sh
drwxr-xr-x 2 root     root     4096 jun 23 03:28 a


Shell:
Código (bash) [Seleccionar]
#!/bin/sh
id
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
Vale pero que significan los permisos que se crearon antes ? La S mayúscula. Es un archivo sin permisos?
#126
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 (cpp) [Seleccionar]
vector<char> *buffer = new vector<char>();
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
GNU/Linux / Re: notify-send y init.d
22 Junio 2015, 10:14 AM
Cita de: MinusFour en 21 Junio 2015, 02:21 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
Si, esta parte me crea el archivo pero se produce lo mismos si hago un chmod con 0x00777

Código (cpp) [Seleccionar]
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
Hola escribí esto:

Código (cpp) [Seleccionar]
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>

int main(){
char name[100];
int i = 0;
int file = -1;
do{
if(file != -1)
close(file);
sprintf(name,"file%d",i);
}while((file = open(name,O_RDONLY)) != -1 && ++i);
file = open(name,O_WRONLY | O_CREAT);
char text[1024];
for(int j = 0;j<i+1;j++){
sprintf(text,"Hola %d veces\n",j);
while(write(file,text,strlen(text)) != strlen(text));
}
close(file);
return 0;
}


luego use un bucle
Código (bash) [Seleccionar]
while true; do ./a.out;done

En el escritorio me aparecieron mucho archivos con sus permisos aleatorios y raros.
Ejemplo:
Código (bash) [Seleccionar]
----r-Sr-t 1 root     root     14155 jun 21 23:57 file950
--wS---r-x 1 root     root     14170 jun 21 23:57 file951
---Sr-Sr-x 1 root     root     14185 jun 21 23:57 file952
------Sr-x 1 root     root     14200 jun 21 23:57 file953
--ws---r-t 1 root     root     14215 jun 21 23:57 file954
-rwxr-Sr-x 1 root     root     14230 jun 21 23:57 file955
-r----Sr-x 1 root     root     14245 jun 21 23:57 file956
-r-xr--r-t 1 root     root     14260 jun 21 23:57 file957
-r-sr--r-t 1 root     root     14275 jun 21 23:57 file958
-r-Sr-Sr-t 1 root     root     14290 jun 21 23:57 file959
-r-Sr--r-T 1 root     root      1348 jun 21 23:57 file96
--wSr--r-x 1 root     root     14305 jun 21 23:57 file960
---xr--r-x 1 root     root     14320 jun 21 23:57 file961
-rwSr-Sr-t 1 root     root     14335 jun 21 23:57 file962
--wxr-Sr-x 1 root     root     14350 jun 21 23:57 file963
-r-sr--r-t 1 root     root     14365 jun 21 23:57 file964
---xr--r-t 1 root     root     14380 jun 21 23:57 file965
-rw-r--r-x 1 root     root     14395 jun 21 23:57 file966
-rw-r--r-t 1 root     root     14410 jun 21 23:57 file967
-rwx--Sr-x 1 root     root     14425 jun 21 23:57 file968
---xr--r-x 1 root     root     14440 jun 21 23:57 file969
-r--r-Sr-T 1 root     root      1362 jun 21 23:57 file97
-r--r--r-x 1 root     root     14455 jun 21 23:57 file970
--w----r-t 1 root     root     14470 jun 21 23:57 file971
-r----Sr-t 1 root     root     14485 jun 21 23:57 file972
-rw---Sr-x 1 root     root     14500 jun 21 23:57 file973
------Sr-x 1 root     root     14515 jun 21 23:57 file974
--w-r-Sr-t 1 root     root     14530 jun 21 23:57 file975
-rw---Sr-t 1 root     root     14545 jun 21 23:57 file976
-rwx--Sr-t 1 root     root     14560 jun 21 23:57 file977
---x--Sr-t 1 root     root     14575 jun 21 23:57 file978
-------r-t 1 root     root     14590 jun 21 23:57 file979
----r-Sr-T 1 root     root      1376 jun 21 23:57 file98
-r-sr--r-t 1 root     root     14605 jun 21 23:57 file980
-rwxr--r-t 1 root     root     14620 jun 21 23:57 file981
--wxr-Sr-t 1 root     root     14635 jun 21 23:57 file982
--ws---r-t 1 root     root     14650 jun 21 23:57 file983
---Sr--r-x 1 root     root     14665 jun 21 23:57 file984
-rw-r--r-x 1 root     root     14680 jun 21 23:57 file985
-rw-r-Sr-t 1 root     root     14695 jun 21 23:57 file986
--wxr-Sr-t 1 root     root     14710 jun 21 23:57 file987
-r-S--Sr-t 1 root     root     14725 jun 21 23:58 file988
--wsr--r-x 1 root     root     14740 jun 21 23:58 file989
--ws---r-T 1 root     root      1390 jun 21 23:57 file99
--wS---r-t 1 root     root     14755 jun 21 23:58 file990
-r-xr--r-x 1 root     root     14770 jun 21 23:58 file991
-rwS--Sr-x 1 root     root     14785 jun 21 23:58 file992


Porque??

Saludos
#130
GNU/Linux / notify-send y init.d
21 Junio 2015, 01:13 AM
Hola tengo un shell:

Código (bash) [Seleccionar]
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 (bash) [Seleccionar]
#!/bin/sh
su usuario
DISPLAY=:0.0;
notify-send hola!!

Pero sigue sin funcionar.


Ayuda  :D


Un saludo