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

 

 


Tema destacado: Guía rápida para descarga de herramientas gratuitas de seguridad y desinfección


  Mostrar Mensajes
Páginas: 1 ... 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 [20] 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 ... 77
191  Programación / .NET (C#, VB.NET, ASP) / Re: Se puede ocultar parametros al ejecutar un .EXE? en: 7 Noviembre 2017, 17:45 pm
Uff excede mis conocimientos..

La aplicación es un cliente SSH y quiero pasar los datos de la conexión pero de forma automática

La misma permite pasarle como parametro un archivo de configuración, es posible cargar ese archivo en mi proyecto y pasarlo al cliente ssh como parametro sin guardarlo en el PC para evitar ojos curiosos.

Saludos
192  Programación / .NET (C#, VB.NET, ASP) / Se puede ocultar parametros al ejecutar un .EXE? en: 4 Noviembre 2017, 17:01 pm
Hola,

Necesito ejecutar una aplicacion que lleva parametros pero quiero que no se vean, cuando voy al administrador de tareas y busco los detalles de la aplicación se ve

app.exe -c parm1 -k param2

Alguna idea.

Saludos
193  Programación / .NET (C#, VB.NET, ASP) / Re: Alguna forma de cambiar la MAC de la tarjeta de RED? en: 4 Noviembre 2017, 07:49 am
Hola,

Pues si funciona fue un error al parecer del sistema estaba mareado disculpa la demora.

Saludos
194  Programación / .NET (C#, VB.NET, ASP) / Alguna forma de cambiar la MAC de la tarjeta de RED? en: 24 Octubre 2017, 22:40 pm
Hola,

Encontre un codigo que supuestamente lo cambia pero no funciona, supongo que en Windows XP si pero para Windows 7 en adelante no, alguna sugerencia.

Saludos

Código
  1.  
  2. Imports System.Management
  3.  
  4. Public Class Form1
  5.    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  6.        FillNetworkAdapters()
  7.    End Sub
  8.  
  9.    Private Sub FillNetworkAdapters()
  10.        Dim mc As System.Management.ManagementClass
  11.        Dim mo As ManagementObject
  12.        mc = New ManagementClass("Win32_NetworkAdapterConfiguration")
  13.        Dim moc As ManagementObjectCollection = mc.GetInstances()
  14.        For Each mo In moc
  15.            If mo.Item("IPEnabled") = True Then
  16.                Dim strAdapter As String
  17.                strAdapter = mo.Item("Caption").ToString().Substring(11)
  18.  
  19.                combo_network.Items.Add(strAdapter)
  20.            End If
  21.        Next
  22.    End Sub
  23.  
  24.    Private Function GetMACAddress(ByVal Adapter As String) As String
  25.        Dim mc As System.Management.ManagementClass
  26.        Dim mo As ManagementObject
  27.        mc = New ManagementClass("Win32_NetworkAdapterConfiguration")
  28.        Dim moc As ManagementObjectCollection = mc.GetInstances()
  29.        For Each mo In moc
  30.            If mo.Item("IPEnabled") = True Then
  31.                Dim strAdapter As String
  32.                strAdapter = mo.Item("Caption").ToString().Substring(11)
  33.                If strAdapter = Adapter Then
  34.                    Return mo.Item("MacAddress").ToString()
  35.                End If
  36.            End If
  37.        Next
  38.    End Function
  39.  
  40.  
  41.    Private Sub combo_network_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles combo_network.SelectedIndexChanged
  42.        label_mactext.Text = GetMACAddress(combo_network.SelectedItem.ToString)
  43.    End Sub
  44.  
  45.    Private Function DoPadding(ByVal x As String) As String
  46.        Dim Ret As String
  47.        Dim z As Integer
  48.  
  49.        Ret = x
  50.        If Len(x) < 4 Then
  51.            For z = 1 To 4 - Len(x)
  52.                Ret = "0" & Ret
  53.            Next
  54.        End If
  55.  
  56.        Return Ret
  57.    End Function
  58.  
  59.  
  60.    Private Sub ShowRestart()
  61.        Dim res As MsgBoxResult = MsgBox("Your MAC Address has been
  62. changed. In order to make the changes take effect, either restart your
  63. computer or enable and disable the changed Network Adapter.",
  64. MsgBoxStyle.Information)
  65.  
  66.  
  67.    End Sub
  68.  
  69.    Private Function GetRoot(ByVal Adapter As String) As String
  70.        Dim regKey As Microsoft.Win32.RegistryKey
  71.        Dim i As Integer = 0
  72.  
  73.        Do
  74.            Dim Root As String = "SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\"
  75.            Dim Last As String = DoPadding(i)
  76.            regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(Root & Last, True)
  77.  
  78.            Try
  79.                Dim cAdapter As String = regKey.GetValue("DriverDesc").ToString()
  80.                If cAdapter = Adapter Then
  81.                    Return Root & Last
  82.                End If
  83.            Catch
  84.                Exit Do
  85.            End Try
  86.            i += 1
  87.        Loop
  88.  
  89.  
  90.    End Function
  91.  
  92.  
  93.    Private Function IsOkay() As Boolean
  94.        If mac_text.Text = "" Then
  95.            MsgBox("You didn't enter a MAC Address", MsgBoxStyle.Critical)
  96.            Return False
  97.        End If
  98.  
  99.        Dim ed As String = mac_text.Text.Replace(":", "")
  100.  
  101.        If ed.Length <> 12 Then
  102.            MsgBox("A MAC Address must have a length of 12", MsgBoxStyle.Critical)
  103.            Return False
  104.        End If
  105.  
  106.        Try
  107.            If combo_network.SelectedItem.ToString = "" Then
  108.                MsgBox("No Network Adapter selected", MsgBoxStyle.Critical)
  109.                Return False
  110.            End If
  111.        Catch
  112.            MsgBox("No Network Adapter selected", MsgBoxStyle.Critical)
  113.            Return False
  114.        End Try
  115.  
  116.  
  117.        Dim noerror As Boolean = True
  118.        Dim i As Integer
  119.        For i = 0 To ed.Length - 1
  120.            If IsHex(ed.Substring(i, 1)) = False Then
  121.                MsgBox("MAC Address in wrong format", MsgBoxStyle.Critical)
  122.                Return False
  123.            End If
  124.        Next
  125.  
  126.        Return True
  127.    End Function
  128.  
  129.  
  130.    Private Function IsHex(ByVal l As String) As Boolean
  131.        Dim table As String = "0123456789ABCDEF"
  132.        Dim i As Integer
  133.        For i = 0 To table.Length - 1
  134.            If l = table.Substring(i, 1) Then
  135.                Return True
  136.            End If
  137.        Next
  138.        Return False
  139.    End Function
  140.  
  141.  
  142.    Private Sub bt_defaultmac_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_defaultmac.Click
  143.        If IsOkay() = False Then
  144.            Exit Sub
  145.        End If
  146.        Dim regKey As Microsoft.Win32.RegistryKey
  147.        Dim Addr As String = GetRoot(combo_network.SelectedItem.ToString())
  148.        regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(Addr, True)
  149.  
  150.        Try
  151.            regKey.DeleteValue("NetworkAddress")
  152.        Catch
  153.            'Do NOTHING
  154.        End Try
  155.        ShowRestart()
  156.    End Sub
  157.  
  158.    Private Sub bt_update_Click(sender As Object, e As EventArgs) Handles bt_update.Click
  159.        If IsOkay() = False Then
  160.            Exit Sub
  161.        End If
  162.        Dim regKey As Microsoft.Win32.RegistryKey
  163.        Dim Addr As String = GetRoot(combo_network.SelectedItem.ToString())
  164.        regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(Addr, True)
  165.  
  166.        regKey.SetValue("NetworkAddress", mac_text.Text.Replace(":", ""))
  167.        ShowRestart()
  168.    End Sub
  169. End Class
  170.  
  171.  
195  Programación / Desarrollo Web / Generar tráfico órganico ? en: 16 Octubre 2017, 22:41 pm
Hola,

Alguien tiene algun tutorial para generar trafico organico hacia mis web, estuve leyendo varios del 2016 y no logro encontrar el sitio flysbird.com

Saludos y gracias cualquier ayuda
196  Sistemas Operativos / GNU/Linux / Re: Es posible registrar tiempo en linea de un usuario ! en: 27 Septiembre 2017, 16:49 pm
Algo como eso estaba tejiendo mi mente.

Probare con el comando Who.

Alguna idea de porque no me mostraba todas las conexiones con el comando pasado ?

Tienes algun ejemplo en el cual me pueda apoyar para hacer el script de todas formas voy googleando...

Saludos y gracias
197  Sistemas Operativos / GNU/Linux / Re: Es posible registrar tiempo en linea de un usuario ! en: 27 Septiembre 2017, 05:08 am
Bueno encontre algo con el comando

last | grep ppp

Puedo ver las conexiones realizadas y el tiempo en linea lo curioso es que no me muestra todas las conexiones osea ayer yo hice conexiones via modem y no me pone nada, ahora mismo estoy conectado y hoy mismo me he conectado varias veces y no me las pone.

Alguna idea ??
198  Sistemas Operativos / GNU/Linux / Es posible registrar tiempo en linea de un usuario ! en: 26 Septiembre 2017, 06:29 am
Hola,

Lo que quisiera es saber como puedo consultar el tiempo en el que un usuario se logueo y cuando cerro sesion, quiero detectar el tiempo que estuvo en linea en cada momento.

Quizas con PAM ?

Me refiero a conectarse via modem a mi servidor ras con Mgetty en Debian

Necesito ponerle una cuota de tiempo diaria !
199  Sistemas Operativos / GNU/Linux / Re: Duda con el Iptables ? en: 24 Agosto 2017, 22:31 pm
Ok lo miraré y te cuento
200  Sistemas Operativos / GNU/Linux / Re: Duda con el Iptables ? en: 24 Agosto 2017, 21:36 pm
Hola,

Gracias por la pronta respuesta me dices que hago con eso, hay otras reglas que obvie relacionadas con mi correo y proxy, con esto te digo que el iptables funciona solo q no logro conectarme a los servidores de TeamViewer.
Páginas: 1 ... 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 [20] 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 ... 77
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines