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

 

 


Tema destacado: Tutorial básico de Quickjs


  Mostrar Mensajes
Páginas: 1 2 [3]
21  Comunicaciones / Hacking Mobile / Re: error al compilar helomoto [solucionado] en: 3 Mayo 2008, 17:14 pm
sigue sin compilarme... uso ubuntu hardy... y tengo la glib 1.2 y la glib 2.0

configuradas bien pero no tira
22  Comunicaciones / Hacking Mobile / PRODUCIR EL REINICIO DE UN LG-CHOCOLATE en: 3 Mayo 2008, 14:27 pm
Pues bien, un bug fijo que es pues cada vez que lo hago el movil se cuelga y se reinicia solo.... hice lo siguiente


EN UN TERMINAL

Citar
shargon@shargon-linux:~$ hcitool scan
Scanning ...
   00:1C:62:17:56:E1   shargon
shargon@shargon-linux:~$ sdptool browse
Inquiring ...
Browsing 00:1C:62:17:56:E1 ...
Service Name: A2DP Source
Service RecHandle: 0x10000
Service Class ID List:
  "Audio Source" (0x110a)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 25
  "AVDTP" (0x0019)
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Advanced Audio" (0x110d)
    Version: 0x0100

Service Name: AVRCP Target
Service RecHandle: 0x10001
Service Class ID List:
  "AV Remote Target" (0x110c)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 23
  "AVCTP" (0x0017)
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "AV Remote" (0x110e)
    Version: 0x0100

Service Name: LG Sync SPP
Service RecHandle: 0x10002
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 16
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Serial Port" (0x1101)
    Version: 0x0100

Service Name: LGE OPP Server
Service RecHandle: 0x10003
Service Class ID List:
  "OBEX Object Push" (0x1105)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 17
  "OBEX" (0x0008)
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "OBEX Object Push" (0x1105)
    Version: 0x0100

Service Name: LG Voice Gateway
Service RecHandle: 0x10004
Service Class ID List:
  "Headset Audio Gateway" (0x1112)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 3
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Headset" (0x1108)
    Version: 0x0100

Service Name: LG Voice Gateway
Service RecHandle: 0x10005
Service Class ID List:
  "Handfree Audio Gateway" (0x111f)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 4
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Handsfree" (0x111e)
    Version: 0x0101


Service Name: LGE FTP Server
Service RecHandle: 0x10006
Service Class ID List:
  "OBEX File Transfer" (0x1106)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 18
  "OBEX" (0x0008)
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "OBEX File Transfer" (0x1106)
    Version: 0x0100

shargon@shargon-linux:~$


EN UN TERMINAL, para conectarme a EL MOVIL AL CANAL 4
Código:
rfcomm connect 0 00:1C:62:17:56:E1 4

EN OTRO TERMINAL (ANTES DE QUE NOS DESCONECTE EL MOVIL!!)
Código:
 cu -l rfcomm0 -s 9600
Y ES EN ESTE TERMINAL DONDE EMPEZAMOS A PULAR TECLAS COMO UN LOCO Y INTROS.... Y..
Código:
Connected.
cu: write: Input/output error

Disconnected.
shargon@shargon-linux:~$ asd
bash: asd: orden no encontrada
shargon@shargon-linux:~$ asd
bash: asd: orden no encontrada
shargon@shargon-linux:~$ asd
bash: asd: orden no encontrada
shargon@shargon-linux:~$ asd
bash: asd: orden no encontrada

SI MIRAS EL TELEFONO, SE HA REINICIADO jejej :P

APROVECHANDO....
 me he fijado que tiene puerto serie, pero no pilla ningun comando AT, no recibe nada... es un protocolo distinto?? gracias
23  Seguridad Informática / Hacking / Re: RFID Tool en: 3 Mayo 2008, 01:59 am
perdoname por mi incultura anelkaos, pero esto serviria para abrir puertas de garajes, coches? o es otra cosa distinta, gracias..
24  Programación / .NET (C#, VB.NET, ASP) / Re: Capturas de pantalla en: 26 Agosto 2007, 14:18 pm
para lo primero, tienes que guardar la imagen con GetThumbailImage o algo asi... y para lo segundo montarse un sistema de regiones a este estilo

//CODIGO DE LEONIDAS

Código
  1. public class Ventana
  2.        {
  3.            public Rectangle RECTANGULO;
  4.            public IntPtr HW;
  5.            public bool SubVentana = false;
  6.            public uint ESTADO;
  7.            public bool Visible = true;
  8.            public string titulo = "";
  9.            public Ventana(IntPtr hw)
  10.            {
  11.                HW = hw;
  12.                titulo = NativeWIN32.GetWindowText(hw);
  13.            }
  14.            public void PonerPos(NativeWIN32.RECT rect, uint estado)
  15.            {
  16.                RECTANGULO = new Rectangle(rect.Left, rect.Top, rect.Right - rect.Left, rect.Bottom - rect.Top);
  17.                ESTADO = estado;
  18.            }
  19.            public Ventana(NativeWIN32.RECT rect, uint estado, IntPtr hw)
  20.            {
  21.                RECTANGULO = new Rectangle(rect.Left, rect.Top, rect.Right - rect.Left, rect.Bottom - rect.Top);
  22.                HW = hw;
  23.                ESTADO = estado;
  24.                titulo = NativeWIN32.GetWindowText(hw);
  25.            }
  26.        }
  27.  
  28.  
  29.  
  30. public static List<Ventana> CalcularRects()
  31.        {
  32.            List<Ventana> tsre = new List<Ventana>();
  33.            mhWnd = new ArrayList();
  34.            NativeWIN32.EnumDelegate enumfunc = new NativeWIN32.EnumDelegate(EnumWindowsProc);
  35.            bool success = NativeWIN32.EnumDesktopWindows(IntPtr.Zero, enumfunc, IntPtr.Zero);
  36.            foreach (IntPtr hw in mhWnd)
  37.            {
  38.                //NativeWIN32.RECT result = new NativeWIN32.RECT();
  39.                //NativeWIN32.GetWindowRect(hw, out result);
  40.                NativeWIN32.WINDOWINFO info = new NativeWIN32.WINDOWINFO();
  41.                info.cbSize = (uint)Marshal.SizeOf(info);
  42.                NativeWIN32.GetWindowInfo(hw, ref info);
  43.                Ventana v = new Ventana(info.rcWindow, info.dwWindowStatus, hw);
  44.                tsre.Add(v);
  45.            }
  46.            mhWnd.Clear();
  47.            mhWnd = null;
  48.            //LAS CHICAS
  49.            foreach (IntPtr p in NativeWIN32.GetChildWindows(NativeWIN32.GetForegroundWindow()))
  50.            {
  51.                NativeWIN32.WINDOWINFO info = new NativeWIN32.WINDOWINFO();
  52.                info.cbSize = (uint)Marshal.SizeOf(info);
  53.                NativeWIN32.GetWindowInfo(p, ref info);
  54.                Ventana v = new Ventana(info.rcWindow, info.dwWindowStatus, p);
  55.                v.SubVentana = true;
  56.                v.Visible = NativeWIN32.IsWindowVisible(p);
  57.                tsre.Add(v);
  58.            }
  59.            //----------
  60.            return tsre;
  61.        }
  62.  

cuando las envias te las guardas a una variable, luego lo lees de nuevo y compruebas los rectangulos cambiados

Código
  1. public static Rectangle ComparaArrayVentanas(List<Ventana> a1, List<Ventana> a2)
  2.        {
  3.            if (a1 == null || a2 == null) return Screen.PrimaryScreen.Bounds;
  4.            GraphicsPath gp = new GraphicsPath();
  5.            gp.FillMode = FillMode.Alternate;
  6.            for (int x = 0; x < a1.Count; x++)
  7.            {
  8.                if (a1[x].HW == IntPtr.Zero) break;
  9.                bool existe_y_igual = false;
  10.                for (int y = 0; y < a2.Count; y++)
  11.                {
  12.                    if (a1[x].HW == IntPtr.Zero) { gp.AddRectangle(a1[x].RECTANGULO); continue; }
  13.                    if (a1[x].HW == a2[y].HW)
  14.                    {
  15.                        if (a1[x].RECTANGULO == a2[y].RECTANGULO && a1[x].ESTADO == a2[y].ESTADO && a1[x].Visible == a2[y].Visible) existe_y_igual = true;
  16.                        break;
  17.                    }
  18.                }
  19.                if (!existe_y_igual) gp.AddRectangle(a1[x].RECTANGULO);
  20.            }
  21.            for (int x = 0; x < a2.Count; x++)
  22.            {
  23.                if (a2[x].HW == IntPtr.Zero) { gp.AddRectangle(a2[x].RECTANGULO); continue; }
  24.                bool existe_y_igual = false;
  25.                for (int y = 0; y < a1.Count; y++)
  26.                    if (a2[x].HW == a1[y].HW)
  27.                    {
  28.                        if (a2[x].RECTANGULO == a1[y].RECTANGULO && a2[x].ESTADO == a1[y].ESTADO && a2[x].Visible == a1[y].Visible) existe_y_igual = true;
  29.                        break;
  30.                    }
  31.                if (!existe_y_igual) gp.AddRectangle(a2[x].RECTANGULO);
  32.            }
  33.            if (gp.PointCount == 0) return Rectangle.Empty;
  34.            int t = -1, l = -1, w = -1, h = -1;
  35.            RectangleF r = gp.GetBounds(); gp.Dispose();
  36.            t = (int)r.Top;
  37.            l = (int)r.Left;
  38.            w = (int)r.Width;
  39.            h = (int)r.Height;
  40.            if (t < 0) t = 0;
  41.            if (l < 0) l = 0;
  42.            if (w + l + 30 > Screen.PrimaryScreen.Bounds.Width) w = Screen.PrimaryScreen.Bounds.Width - l;
  43.            if (h + t + 30 > Screen.PrimaryScreen.Bounds.Height) h = Screen.PrimaryScreen.Bounds.Height - t;
  44.            return new Rectangle(l, t, w, h);
  45.        }

y te devuelve el rectangulo de la pantalla a enviar... asi lo hago yo...luego tienes que cojer el rectangulo activo cuando se pulsa una tecla y cuando se hace un click ;)
25  Programación / .NET (C#, VB.NET, ASP) / Re: Facil Sobre acceso a base de datos en: 22 Agosto 2007, 19:12 pm
totalmente compatible, usar el mysql .net connector, y apañao
26  Programación / .NET (C#, VB.NET, ASP) / Re: Hacer un programa invicible con C# 2005 .net 2.0 en: 10 Agosto 2007, 11:23 am
ShowWindow(Process.GetCurrentProcess().MainWindowHandle, 0);
27  Programación / .NET (C#, VB.NET, ASP) / Re: Capturas de pantalla en: 10 Agosto 2007, 11:16 am
te entiendo... pero me da que tardas mas comprobando las diferencias y generando la imagen que enviandola nueva... eso tiene que ser por regiones
28  Programación / .NET (C#, VB.NET, ASP) / Re: [Tutorial] Sockets en C# en: 10 Agosto 2007, 11:04 am
muy bueno
29  Seguridad Informática / Hacking / Re: Manual de Ettercap NG 0.7 en: 13 Julio 2007, 14:56 pm
al ir a un https, no se me abre la pagina... por que? he hecho todo tal cual dicen .
Gracias
30  Sistemas Operativos / GNU/Linux / hydra en: 8 Julio 2007, 18:41 pm
la instalacion del hydra no me dio ningun problema pero el xhydra, me dice eso, y el hydra, no me dice nada, si hago hydra -h me dice acceso denegado :S

por que?

Citar
** (xhydra:12775): WARNING **: callbacks.c 529: popen_rw_unbuffered: execv() returned

** (xhydra:12775): WARNING **: /usr/local/bin/hydra

** (xhydra:12775): WARNING **: 127.0.0.1

** (xhydra:12775): WARNING **: cisco

** (xhydra:12775): WARNING **: -l

** (xhydra:12775): WARNING **: yourname

** (xhydra:12775): WARNING **: -p

** (xhydra:12775): WARNING **: yourpass

** (xhydra:12775): WARNING **: -t

** (xhydra:12775): WARNING **: 36

** ERROR **: file callbacks.c: line 544 (popen_re_unbuffered): should not be reached
aborting...

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