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

 

 


Tema destacado: Entrar al Canal Oficial Telegram de elhacker.net


  Mostrar Mensajes
Páginas: 1 ... 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 [31] 32
301  Programación / Scripting / MS-DOS ARCHIVOS BAT en: 16 Marzo 2008, 20:38 pm
Tengo un problemilla... espero me sepais echar una mano.

Bueno, el proble es el siguiente.
Necesito saver como continuo una instruccion en la linea siguiente.

ejemplo:
open c:\
windows\system32
\loquesea.txt

COMO PUEDO HACER ESTO?.
Gracias de ante mano
302  Programación / Programación Visual Basic / ENLACE A UN MODULO DE SOCKET EN VB.NET en: 7 Febrero 2008, 23:08 pm
http://www.mygnet.net/codigos/vbdotnet/net/sockets_dot_net.690
303  Programación / Programación Visual Basic / AYUDA CON ESTE CODIGO en: 2 Febrero 2008, 10:06 am
El fallo esta a la punta de abajo.
Código:
         Imports System
Imports System.Text
Imports System.IO
Imports System.Net
Imports System.Net.Sockets
Imports Microsoft.VisualBasic

Public Class GetSocket

    Private Shared Function ConnectSocket(ByVal server As String, ByVal port As Integer) As Socket
        Dim s As Socket = Nothing
        Dim hostEntry As IPHostEntry = Nothing

        ' Get host related information.
        hostEntry = Dns.GetHostEntry("libres.irc - hispano.org")

        ' Loop through the AddressList to obtain the supported AddressFamily. This is to avoid
        ' an exception that occurs when the host host IP Address is not compatible with the address family
        ' (typical in the IPv6 case).
        Dim address As IPAddress

        For Each address In hostEntry.AddressList
            Dim endPoint As New IPEndPoint(address, port)
            Dim tempSocket As New Socket(endPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp)

            tempSocket.Connect(endPoint)

            If tempSocket.Connected Then
                s = tempSocket
                Exit For
            End If

        Next address

        Return s
    End Function


    ' This method requests the home page content for the specified server.

    Private Shared Function SocketSendReceive(ByVal server As String, ByVal port As Integer) As String
        'Set up variables and String to write to the server.
        Dim ascii As Encoding = Encoding.ASCII
        Dim request As String = "GET / HTTP/1.1" + ControlChars.Cr + ControlChars.Lf + "Host: " + server + ControlChars.Cr + ControlChars.Lf + "Connection: Close" + ControlChars.Cr + ControlChars.Lf + ControlChars.Cr + ControlChars.Lf
        Dim bytesSent As [Byte]() = ascii.GetBytes(request)
        Dim bytesReceived(255) As [Byte]

        ' Create a socket connection with the specified server and port.
        Dim s As Socket = ConnectSocket(server, port)

        If s Is Nothing Then
            Return "Connection failed"
        End If
        ' Send request to the server.
        s.Send(bytesSent, bytesSent.Length, 0)

        ' Receive the server  home page content.
        Dim bytes As Int32

        ' Read the first 256 bytes.
        Dim page As [String] = "Default HTML page on " + server + ":" + ControlChars.Cr + ControlChars.Lf

        ' The following will block until the page is transmitted.
        Do
            bytes = s.Receive(bytesReceived, bytesReceived.Length, 0)
            page = page + Encoding.ASCII.GetString(bytesReceived, 0, bytes)
        Loop While bytes > 0

        Return page
    End Function

    'Entry point which delegates to C-style main Private Function
    Public Overloads Shared Sub Main()
        Main(System.Environment.GetCommandLineArgs())
    End Sub


    Private Overloads Shared Sub Main(ByVal args() As String)
        Dim host As String
        Dim port As Integer = 80

        If args.Length = 1 Then
            ' If no server name is passed as argument to this program,
            ' use the current host name as default.
            host = Dns.GetHostName()
        Else
            host = args(1)
        End If

        Dim result As String = SocketSendReceive(host, port)


      'CAMBIE CONSOLE POR TEXTBOX1 Y ME DA UN ERROR.
        TextBox1 = result
    End Sub 'Main
End Class           
304  Programación / Programación Visual Basic / Comparar usuario y contraseña con la base de datos. Ayuda en: 29 Enero 2008, 00:44 am
Se que es facil... pero ando perdido y a estas horas pues... exo polvo.
Aver si alguien me puede decir... o completar este codigo.
Código:
   
Private Sub Button1_Click()
       
         If TextBox1 = Me.database1DataSet.table1 Then

        End If
   
End Sub
         

y... me perdi.
305  Programación / Programación Visual Basic / Re: Problemilla con datagridview en: 25 Enero 2008, 15:33 pm
Ahoramismo no tengo el codigo, En mi casa no tengo internet.
En cuanto pueda lo posteo. Yo era por si a alguien le avia pasado. es el visual studio 2005
306  Programación / Programación Visual Basic / Problemilla con datagridview en: 25 Enero 2008, 11:34 am
La cosa es que creo la base de datos, creo una tabla y luego inserto el datagrid en el formulario.
Introdusco informacion y le doy a guardar en el proyecto y la cosa es que se guarda pero al intentar editar o eliminar una fila me da error.
Alguien sabria decirme el porque?.
307  Programación / Programación Visual Basic / Re: incluir el componente winsock.ocx en: 10 Diciembre 2007, 14:00 pm
LAMMER--> Persona que en ves de querer aprender, lo unico que hace es copiar cosas de los demas sin nisiquiera saver que es lo que hace.

A esto me refiero que si usan ese modulo sin saver que es lo que hace exactamente pues seguiras siendo un lamer.
308  Programación / Programación Visual Basic / Re: Ayuda en: 19 Noviembre 2007, 21:10 pm
Hola.
Solo te escribo para decirte que la proxima ves, en asunto no pongas ayuda.
Aki todos keremos ayuda en algo, imaginate que todos pongamos:
ayuda
ayuda
ayuda
ayuda
Porfavor, la proxima ves pon el tema sobre el cual necesitas ayuda.
 
Saludos: 70n1
309  Programación / Programación Visual Basic / Ayuda para instalar el MSDN de microsoft. ERROR en: 18 Noviembre 2007, 22:30 pm
Ya tengo la solucion.

Kien la kiera que me lo diga en privado.
310  Programación / Programación Visual Basic / Re: Mi primer troyano en VB6.0 en: 18 Noviembre 2007, 22:13 pm
Pues...
Yo te aconsejo un libro de programacion en vb para aprender lo basico.
LIBRO = "Aprenda visual basic ya 6.0" El libro mas sencillo que e visto en mi vida.
Luego a bajarse algun cursillo de internet (Protocolos de red). Para aunque sea que sepas que es lo que sucede por la red.
Y por lo de las apis. Microsoft tiene el MSDN y ahi te vienen todas las apis de los productos de microsoft(WINDOWS ENTRE ELLOS), Es gratuito.
Por ahi estoy yo.

Mi opinion es que para aprender a programar, lo mejor que puedes hacer es ponerte una meta, mientras mas dificil mejor. Y luchar asta conseguirla. (EN TU CASO EL TROYANO.)
Yo tambien estoy aprendiendo.
Si kieres saver como realizar una conexion cliente servidor pues aprende lo basico de programacion y luego busca en el google ejemplos de conexion cliente servidor en vb. Encontraras muchos.
Si no entiendes algo pues a buscar asta conseguir entenderlo.



APROVECHO:
ALGUIEN SABRIA DECIRME SI EL VISUAL BASIC DEJA EN LOS PROGRAMAS CREADOS ALGUN TIPO DE IDENTIFICADOR DE LA MAQUINA O EL NOMBRE DE REGISTRO DEL PROGRAMA O ALGO DE ESO?.
Páginas: 1 ... 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 [31] 32
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines