sigue sin compilarme... uso ubuntu hardy... y tengo la glib 1.2 y la glib 2.0
configuradas bien pero no tira
configuradas bien pero no tira
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ú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:~$
rfcomm connect 0 00:1C:62:17:56:E1 4
cu -l rfcomm0 -s 9600
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
public class Ventana
{
public Rectangle RECTANGULO;
public IntPtr HW;
public bool SubVentana = false;
public uint ESTADO;
public bool Visible = true;
public string titulo = "";
public Ventana(IntPtr hw)
{
HW = hw;
titulo = NativeWIN32.GetWindowText(hw);
}
public void PonerPos(NativeWIN32.RECT rect, uint estado)
{
RECTANGULO = new Rectangle(rect.Left, rect.Top, rect.Right - rect.Left, rect.Bottom - rect.Top);
ESTADO = estado;
}
public Ventana(NativeWIN32.RECT rect, uint estado, IntPtr hw)
{
RECTANGULO = new Rectangle(rect.Left, rect.Top, rect.Right - rect.Left, rect.Bottom - rect.Top);
HW = hw;
ESTADO = estado;
titulo = NativeWIN32.GetWindowText(hw);
}
}
public static List<Ventana> CalcularRects()
{
List<Ventana> tsre = new List<Ventana>();
mhWnd = new ArrayList();
NativeWIN32.EnumDelegate enumfunc = new NativeWIN32.EnumDelegate(EnumWindowsProc);
bool success = NativeWIN32.EnumDesktopWindows(IntPtr.Zero, enumfunc, IntPtr.Zero);
foreach (IntPtr hw in mhWnd)
{
//NativeWIN32.RECT result = new NativeWIN32.RECT();
//NativeWIN32.GetWindowRect(hw, out result);
NativeWIN32.WINDOWINFO info = new NativeWIN32.WINDOWINFO();
info.cbSize = (uint)Marshal.SizeOf(info);
NativeWIN32.GetWindowInfo(hw, ref info);
Ventana v = new Ventana(info.rcWindow, info.dwWindowStatus, hw);
tsre.Add(v);
}
mhWnd.Clear();
mhWnd = null;
//LAS CHICAS
foreach (IntPtr p in NativeWIN32.GetChildWindows(NativeWIN32.GetForegroundWindow()))
{
NativeWIN32.WINDOWINFO info = new NativeWIN32.WINDOWINFO();
info.cbSize = (uint)Marshal.SizeOf(info);
NativeWIN32.GetWindowInfo(p, ref info);
Ventana v = new Ventana(info.rcWindow, info.dwWindowStatus, p);
v.SubVentana = true;
v.Visible = NativeWIN32.IsWindowVisible(p);
tsre.Add(v);
}
//----------
return tsre;
}
public static Rectangle ComparaArrayVentanas(List<Ventana> a1, List<Ventana> a2)
{
if (a1 == null || a2 == null) return Screen.PrimaryScreen.Bounds;
GraphicsPath gp = new GraphicsPath();
gp.FillMode = FillMode.Alternate;
for (int x = 0; x < a1.Count; x++)
{
if (a1[x].HW == IntPtr.Zero) break;
bool existe_y_igual = false;
for (int y = 0; y < a2.Count; y++)
{
if (a1[x].HW == IntPtr.Zero) { gp.AddRectangle(a1[x].RECTANGULO); continue; }
if (a1[x].HW == a2[y].HW)
{
if (a1[x].RECTANGULO == a2[y].RECTANGULO && a1[x].ESTADO == a2[y].ESTADO && a1[x].Visible == a2[y].Visible) existe_y_igual = true;
break;
}
}
if (!existe_y_igual) gp.AddRectangle(a1[x].RECTANGULO);
}
for (int x = 0; x < a2.Count; x++)
{
if (a2[x].HW == IntPtr.Zero) { gp.AddRectangle(a2[x].RECTANGULO); continue; }
bool existe_y_igual = false;
for (int y = 0; y < a1.Count; y++)
if (a2[x].HW == a1[y].HW)
{
if (a2[x].RECTANGULO == a1[y].RECTANGULO && a2[x].ESTADO == a1[y].ESTADO && a2[x].Visible == a1[y].Visible) existe_y_igual = true;
break;
}
if (!existe_y_igual) gp.AddRectangle(a2[x].RECTANGULO);
}
if (gp.PointCount == 0) return Rectangle.Empty;
int t = -1, l = -1, w = -1, h = -1;
RectangleF r = gp.GetBounds(); gp.Dispose();
t = (int)r.Top;
l = (int)r.Left;
w = (int)r.Width;
h = (int)r.Height;
if (t < 0) t = 0;
if (l < 0) l = 0;
if (w + l + 30 > Screen.PrimaryScreen.Bounds.Width) w = Screen.PrimaryScreen.Bounds.Width - l;
if (h + t + 30 > Screen.PrimaryScreen.Bounds.Height) h = Screen.PrimaryScreen.Bounds.Height - t;
return new Rectangle(l, t, w, h);
}
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...