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

 

 


Tema destacado: Arreglado, de nuevo, el registro del warzone (wargame) de EHN


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  Enviar datos a login hotmail por sll con winhttp
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Enviar datos a login hotmail por sll con winhttp  (Leído 1,633 veces)
50l3r


Desconectado Desconectado

Mensajes: 784


Solo se que se algo pero no me acuerdo


Ver Perfil WWW
Enviar datos a login hotmail por sll con winhttp
« en: 9 Abril 2010, 14:43 pm »

Veran, estoy creando un bot no maligno que lo unico que haga sea contestar a lo que le dices, bien, estoy sacando la informacion del protocolo de esta pagina:

http://msnpiki.msnfanatic.com/index.php/MSNP13:Example_Session

he llegado hasta la parte en el que te mandan las policies, que tienes que realizar esta accion que es el passport 3.0

http://msnpiki.msnfanatic.com/index.php/MSNP13:SOAPTweener

una vez esto esta bien, deberian mandarte como un tipo de cookie que esta alojado en una variable "t" que te mandan

la cosa es que necesito recoger eso con una solicitud sll, ya que ya no permiten conexion http, y me meti con winhttp

me podriais dar un ejemplo de como mandar lo que debo mandar ahi para que me de la variable t que necesito? estoy perdidisimo, os dejo el code de lo que hice hasta el momento para que lo veais:

Código
  1. Option Explicit
  2.  
  3. Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) 'espera
  4.  
  5. Public ct As Long
  6. Public rver As String
  7. Public wp As String
  8. Public lc As Long
  9. Public id As Long
  10. Public ru As String
  11. Public tw As Integer
  12. Public kpp As Integer
  13. Public kv As Integer
  14. Public ver As String
  15. Public rn As String
  16. Public tpf As String
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. Private Sub Form_Load()
  24.    luz = False
  25.    Call conectar("messenger.hotmail.com")
  26. End Sub
  27.  
  28.  
  29.  
  30. Private Sub wsk_Connect()
  31. wsk.SendData "VER 1 MSNP18 MSNP17 CVR0" & vbCrLf
  32. End Sub
  33.  
  34. Private Sub wsk2_Connect()
  35. wsk2.SendData "VER 4 MSNP18 MSNP17 CVR0" & vbCrLf
  36. End Sub
  37.  
  38. Private Sub wsk3_Connect()
  39. wsk3.SendData "GET /login2.srf HTTP/1.1" & vbCrLf
  40. wsk3.SendData "Authorization: Passport1.4 OrgVerb=GET,OrgURL=http%3A%2F%2Fmessenger%2Emsn%2Ecom,sign-in=soler-cueto%40hotmail.com,pwd=081191,lc=" & lc & ",id=" & id & ",tw=" & tw & ",fs=1,ru=" & ru & ",ct=" & ct & ",kpp=" & kpp & ",kv=" & kv & ",ver=" & kv & ",tpf=" & tpf
  41. wsk3.SendData "User-Agent: MSMSGS" & vbCrLf
  42. wsk3.SendData "Host: login.passport.com" & vbCrLf
  43. wsk3.SendData "Connection: Keep-Alive" & vbCrLf
  44. wsk3.SendData "Cache-Control: no-cache" & vbCrLf & vbCrLf
  45.  
  46. txtprueba.Text = "GET /login2.srf HTTP/1.1" & vbCrLf
  47. txtprueba.Text = txtprueba.Text & "Authorization: Passport1.4 OrgVerb=GET,OrgURL=http%3A%2F%2Fmessenger%2Emsn%2Ecom,sign-in=soler-cueto%40hotmail.com,pwd=password,lc=" & lc & ",id=" & id & ",tw=" & tw & ",fs=1,ru=" & ru & ",ct=" & ct & ",kpp=" & kpp & ",kv=" & kv & ",ver=" & ver & ",tpf=" & tpf
  48. txtprueba.Text = txtprueba.Text & "User-Agent: MSMSGS" & vbCrLf
  49. txtprueba.Text = txtprueba.Text & "Host: login.passport.com" & vbCrLf
  50. txtprueba.Text = txtprueba.Text & "Connection: Keep-Alive" & vbCrLf
  51. txtprueba.Text = txtprueba.Text & "Cache-Control: no-cache" & vbCrLf & vbCrLf
  52. End Sub
  53.  
  54.  
  55.  
  56.  
  57. Private Sub wsk_DataArrival(ByVal bytesTotal As Long)
  58. Dim arrays() As String
  59. Dim devu As String
  60. Dim comprobando As Integer
  61.  
  62.    wsk.GetData devu
  63.  
  64.    txtdevu.Text = txtdevu.Text & vbCrLf & "Servidor: " & devu
  65.  
  66.    MsgBox devu
  67.  
  68.  
  69.  
  70.    comprobando = InStr(1, devu, "VER")
  71.    If comprobando <> 0 Then
  72.        wsk.SendData "CVR 2 0x0C0A winnt 5.1 i386 MSNMSGR 6.0.0602 MSMSGS soler-cueto@hotmail.com" & vbCrLf
  73.        Exit Sub
  74.    End If
  75.  
  76.    comprobando = InStr(1, devu, "CVR")
  77.    If comprobando <> 0 Then
  78.        wsk.SendData "USR 3 TWN I soler-cueto@hotmail.com" & vbCrLf
  79.        Exit Sub
  80.    End If
  81.  
  82.    comprobando = InStr(1, devu, "XFR")
  83.    If comprobando <> 0 Then
  84.        arrays = Split(devu, " ")
  85.        arrays = Split(arrays(3), ":")
  86.        If arrays(0) <> "" Then
  87.            Call conectar2(arrays(0))
  88.        End If
  89.        Exit Sub
  90.    End If
  91.  
  92.  
  93.  
  94. End Sub
  95.  
  96. Private Sub wsk2_DataArrival(ByVal bytesTotal As Long)
  97. Dim arrays() As String
  98. Dim subarrays() As String
  99. Dim devu As String
  100. Dim comprobando As Integer
  101.  
  102.    wsk2.GetData devu
  103.  
  104.    txtdevu.Text = txtdevu.Text & vbCrLf & "Servidor: " & devu
  105.  
  106.    MsgBox devu
  107.  
  108.    comprobando = InStr(1, devu, "VER")
  109.    If comprobando <> 0 Then
  110.        wsk2.SendData "CVR 5 0x0C0A winnt 5.1 i386 MSNMSGR 6.0.0602 MSMSGS soler-cueto@hotmail.com" & vbCrLf
  111.        Exit Sub
  112.    End If
  113.  
  114.    comprobando = InStr(1, devu, "CVR")
  115.    If comprobando <> 0 Then
  116.        wsk2.SendData "USR 6 TWN I soler-cueto@hotmail.com" & vbCrLf
  117.        Exit Sub
  118.    End If
  119.  
  120.    comprobando = InStr(1, devu, "USR")
  121.    If comprobando <> 0 Then
  122.        arrays = Split(devu, " ")
  123.        arrays = Split(arrays(4), ",")
  124.  
  125.  
  126.  
  127.        For i = 0 To UBound(arrays)
  128.            subarrays = Split(arrays(i), "=")
  129.            Select Case subarrays(0)
  130.                Case "ct"
  131.                    ct = subarrays(1)
  132.                Case "rver"
  133.                    rver = subarrays(1)
  134.                Case "wp"
  135.                    wp = subarrays(1)
  136.                Case "lc"
  137.                    lc = subarrays(1)
  138.                Case "id"
  139.                    id = subarrays(1)
  140.                Case "ru"
  141.                    ru = subarrays(1)
  142.                Case "tw"
  143.                    tw = subarrays(1)
  144.                Case "kpp"
  145.                    kpp = subarrays(1)
  146.                Case "kv"
  147.                    kv = subarrays(1)
  148.                Case "ver"
  149.                    ver = subarrays(1)
  150.                Case "rn"
  151.                    rn = subarrays(1)
  152.                Case "tpf"
  153.                    tpf = subarrays(1)
  154.            End Select
  155.        Next
  156.        Call conectar3("login.passport.com")
  157.        Exit Sub
  158.    End If
  159.  
  160. End Sub
  161.  
  162. Private Sub wsk3_DataArrival(ByVal bytesTotal As Long)
  163. Dim arrays() As String
  164. Dim devu As String
  165. Dim comprobando As Integer
  166.  
  167.    wsk3.GetData devu
  168.  
  169.    txtdevu.Text = txtdevu.Text & vbCrLf & "Servidor: " & devu
  170.  
  171.    MsgBox devu
  172. End Sub
  173.  
  174.  
  175.  
  176.  
  177. Public Function conectar(ByVal ipe As String)
  178.            wsk.Close
  179.            wsk.Protocol = sckTCPProtocol
  180.            wsk.Connect ipe, 1863
  181. End Function
  182.  
  183. Public Function conectar2(ByVal ipe As String)
  184.            wsk2.Close
  185.            wsk2.Protocol = sckTCPProtocol
  186.            wsk2.Connect ipe, 1863
  187. End Function
  188.  
  189. Public Function conectar3(ByVal ipe As String)
  190.            wsk3.Close
  191.            wsk3.Protocol = sckTCPProtocol
  192.            wsk3.Connect ipe, 443
  193. End Function
  194.  
  195.  
  196.  


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[VB 2012] Login con datos de archivo de texto (.txt)
.NET (C#, VB.NET, ASP)
Tomix999 2 4,115 Último mensaje 16 Marzo 2013, 03:58 am
por DaNuK
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines