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 [4] 5 6 7 8
31  Programación / Scripting / Re: [Python] Pero WTF?Sintaxis distinta en los manuales y en el IDLE? en: 18 Mayo 2009, 00:06 am
 :D Muchas gracias artikbot... jeje yo tambien queria implementarlo luego en c++  :P
32  Programación / Scripting / Re: [Python] Pero WTF?Sintaxis distinta en los manuales y en el IDLE? en: 17 Mayo 2009, 23:50 pm
Una pregunta, al ser python un lenguaje que no necesita ser compilado...
(En realidad nunca he utilizado python, pero creo que es para webs), sin embargo podria crear aplicaciones modo consola?
33  Programación / .NET (C#, VB.NET, ASP) / Re: Ayudas o sugerencias - programa signo zodiaco en: 17 Mayo 2009, 23:44 pm
Al tratar de compilarlo te larga error?... Antes de ponerme a leer todos esos if's anidados te agradeceria que pongas el error al compilar.
34  Seguridad Informática / Desafíos - Wargames / Re: Eres un Hacker? PRUEBALO CON ESTE TEST!!!!!! en: 17 Mayo 2009, 22:56 pm
Path="Ruta" Jaja ya mas pistas no te puedo dar... tengo Ganas de Iterar Feamente..

Salu2!
35  Programación / .NET (C#, VB.NET, ASP) / Re: Abrir y cerrar bandeja. en: 17 Mayo 2009, 20:04 pm
O tambien a este ejemplo:

http://www.codeproject.com/KB/cs/workingcd.aspx

Salu2!
36  Programación / .NET (C#, VB.NET, ASP) / Re: Abrir y cerrar bandeja. en: 17 Mayo 2009, 19:58 pm
Hola meta te refieres a esto?:

Código
  1. using System;
  2. using System.Text;
  3. using System.Runtime.InteropServices;
  4.  
  5. namespace EjectMedia
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. // My CDROM is on drive E:
  12. EjectMedia.Eject(@"\\.\E:");
  13. }
  14. }
  15.  
  16. class EjectMedia
  17. {
  18. // Constants used in DLL methods
  19. const uint GENERICREAD = 0x80000000;
  20. const uint OPENEXISTING = 3;
  21. const uint IOCTL_STORAGE_EJECT_MEDIA = 2967560;
  22. const int INVALID_HANDLE = -1;
  23.  
  24.  
  25. // File Handle
  26. private static IntPtr fileHandle;
  27. private static uint returnedBytes;
  28.  
  29. // Use Kernel32 via interop to access required methods
  30.  
  31. // Get a File Handle
  32. [DllImport("kernel32", SetLastError = true)]
  33. static extern IntPtr CreateFile(string fileName,
  34. uint desiredAccess,
  35. uint shareMode,
  36. IntPtr attributes,
  37. uint creationDisposition,
  38. uint flagsAndAttributes,
  39. IntPtr templateFile);
  40.  
  41. [DllImport("kernel32", SetLastError=true)]
  42. static extern int CloseHandle(IntPtr driveHandle);
  43.  
  44. [DllImport("kernel32", SetLastError = true)]
  45. static extern bool DeviceIoControl(IntPtr driveHandle,
  46. uint IoControlCode,
  47. IntPtr lpInBuffer,
  48. uint inBufferSize,
  49. IntPtr lpOutBuffer,
  50. uint outBufferSize,
  51. ref uint lpBytesReturned,
  52. IntPtr lpOverlapped);
  53.  
  54.  
  55. public static void Eject(string driveLetter)
  56. {
  57. try
  58. {
  59. // Create an handle to the drive
  60. fileHandle = CreateFile(driveLetter,
  61. GENERICREAD,
  62. 0,
  63. IntPtr.Zero,
  64. OPENEXISTING,
  65. 0,
  66. IntPtr.Zero);
  67.  
  68. if ((int)fileHandle != INVALID_HANDLE)
  69. {
  70. // Eject the disk
  71. DeviceIoControl(fileHandle,
  72. IOCTL_STORAGE_EJECT_MEDIA,
  73. IntPtr.Zero, 0,
  74. IntPtr.Zero, 0,
  75. ref returnedBytes,
  76. IntPtr.Zero);
  77. }
  78.  
  79. }
  80. catch
  81. {
  82. throw new Exception(Marshal.GetLastWin32Error().ToString());
  83. }
  84. finally
  85. {
  86. // Close Drive Handle
  87. CloseHandle(fileHandle);
  88. fileHandle = IntPtr.Zero;
  89. }
  90. }
  91.  
  92.  
  93. }
  94. }
37  Seguridad Informática / Desafíos - Wargames / Re: Eres un Hacker? PRUEBALO CON ESTE TEST!!!!!! en: 17 Mayo 2009, 18:09 pm
Estas en el nivel 8, pero no es ese el lugar... Tienes que buscar una "ruta"

Salu2!
38  Programación / .NET (C#, VB.NET, ASP) / Re: Ayudas o sugerencias - programa signo zodiaco en: 17 Mayo 2009, 17:53 pm
Espero que te sirve lo hice a las apuradas en 5 min
Código
  1. Dim dia As Integer
  2. Dim mes As Integer
  3. Dim reponse As Boolean
  4. Private Sub Form_Load()
  5.    dia = InputBox("Ingrese dia", "Signos")
  6.    mes = InputBox("Ingrese mes", "Signos")
  7.    Select Case mes
  8.        Case 1
  9.        If dia < 21 Then
  10.            reponse = MsgBox("CAPRICORNIO", vbOKOnly)
  11.        Else: reponse = MsgBox("ACUARIO", vbOKOnly)
  12.        End If
  13.        Case 2
  14.        If dia < 20 Then
  15.            reponse = MsgBox("ACUARIO", vbOKOnly)
  16.        Else: reponse = MsgBox("PISCIS", vbOKOnly)
  17.        End If
  18.        Case 3
  19.        If dia < 21 Then
  20.            reponse = MsgBox("PISCIS", vbOKOnly)
  21.        Else: reponse = MsgBox("ARIES", vbOKOnly)
  22.        End If
  23.        Case 4
  24.        If dia < 21 Then
  25.            reponse = MsgBox("ARIES", vbOKOnly)
  26.        Else: reponse = MsgBox("TAURO", vbOKOnly)
  27.        End If
  28.        Case 5
  29.        If dia < 21 Then
  30.            reponse = MsgBox("TAURO", vbOKOnly)
  31.        Else: reponse = MsgBox("GEMINIS", vbOKOnly)
  32.        End If
  33.        Case 6
  34.        If dia < 22 Then
  35.            reponse = MsgBox("GEMINIS", vbOKOnly)
  36.        Else: reponse = MsgBox("CANCER", vbOKOnly)
  37.        End If
  38.        Case 7
  39.        If dia < 23 Then
  40.            reponse = MsgBox("CANCER", vbOKOnly)
  41.        Else: reponse = MsgBox("LEO", vbOKOnly)
  42.        End If
  43.        Case 8
  44.        If dia < 23 Then
  45.            reponse = MsgBox("LEO", vbOKOnly)
  46.        Else: reponse = MsgBox("VIRGO", vbOKOnly)
  47.        End If
  48.      Case 9
  49.      If dia < 23 Then
  50.            reponse = MsgBox("VIRGO", vbOKOnly)
  51.        Else: reponse = MsgBox("LIBRA", vbOKOnly)
  52.        End If
  53.      Case 10
  54.      If dia < 23 Then
  55.            reponse = MsgBox("LIBRA", vbOKOnly)
  56.        Else: reponse = MsgBox("ESCORPIO", vbOKOnly)
  57.        End If
  58.      Case 11
  59.      If dia < 22 Then
  60.            reponse = MsgBox("ESCORPIO", vbOKOnly)
  61.        Else: reponse = MsgBox("SAGITARIO", vbOKOnly)
  62.        End If
  63.      Case 12
  64.      If dia < 22 Then
  65.            reponse = MsgBox("SAGITARIO", vbOKOnly)
  66.        Else: reponse = MsgBox("CAPRICORNIO", vbOKOnly)
  67.      End If
  68.  
  69.      Case Else
  70.       reponse = MsgBox("Error")
  71. End Select
  72. End Sub
39  Seguridad Informática / Desafíos - Wargames / Re: Eres un Hacker? PRUEBALO CON ESTE TEST!!!!!! en: 17 Mayo 2009, 02:49 am
 :¬¬ hay un psd no tengo el photoshop  :P

jaja
40  Seguridad Informática / Desafíos - Wargames / Re: Eres un Hacker? PRUEBALO CON ESTE TEST!!!!!! en: 17 Mayo 2009, 02:25 am
Me clave en el 8 :S alguna pista? es el js? :rolleyes:
Páginas: 1 2 3 [4] 5 6 7 8
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines