Winsock

Reply to topic Page 1 of 1 [ 10 posts ]
Author Message

Offline Liam

1337 n00b!!!111!!one!


User avatar


Joined: Mon Feb 04, 2008 3:57 am

Posts: 2504

Location: Wales

PostPosted: Sun Nov 09, 2008 11:58 am   Post subject: Winsock   

Ok so i followed a tut on youtube on Winsock then i made mine connect to Bebo

Private Sub Command1_Click()
    With Winsock1
    .Close
    .Connect ("bebo.com"), 80
    End With
    Me.Caption = "Connecting..."
End Sub

Private Sub Winsock1_Connect()
Dim Pck As String
    Pck = "GET / HTTP/1.1" & vbNewLine
    Pck = Pck & "Host: www.bebo.com" & vbNewLine
    Pck = Pck & "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3" & vbNewLine
    Pck = Pck & "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" & vbNewLine
    Pck = Pck & "Accept-Language: en-us,en;q=0.5" & vbNewLine
    Pck = Pck & "Accept-Charset: ISO-8859-1,utf-8;q=0.over 9000,*;q=0.over 9000" & vbNewLine
    Pck = Pck & "Keep-Alive: 300" & vbNewLine
    Pck = Pck & "Connection: keep-alive" & vbNewLine & vbNewLine
    Pck = Pck
    Winsock1.SendData Pck
End Sub

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim data As String
    Winsock1.GetData data
    MsgBox data
End Sub

Private Sub Winsock1_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
    Winsock1.Close
    Me.Caption "Error"
End Sub


I'm just wondering, how do you get it to the Sign in page etc?...
Top Profile 

Offline Ben

Aciid VIP


Joined: Tue Apr 29, 2008 9:19 pm

Posts: 1342

Location: Cheltenham, Gloucestershire, United Kingdom

PostPosted: Sun Nov 09, 2008 12:03 pm   Post subject: Re: Winsock   

I Think on Socket connect, make it post the sigin data, then make it Post /SignIn.jsp?

So

Private Sub Winsock_Connect
PostData = "SignInCodeHere"
p = p & "POST /SignIn.jsp HTTP/1.1" & vbCrLf

_________________
Used to Be Benyboyy Now Ben


My Bebo


Image
Top Profile E-mail 

Offline Liam

1337 n00b!!!111!!one!


User avatar


Joined: Mon Feb 04, 2008 3:57 am

Posts: 2504

Location: Wales

PostPosted: Sun Nov 09, 2008 2:34 pm   Post subject: Re: Winsock   

Ermm, I'll watch some more tuts, SlayeR taught me some on msn xD
Top Profile 

Offline fatcandle

Gold Member


Joined: Sun Sep 28, 2008 2:37 pm

Posts: 256

PostPosted: Sun Nov 09, 2008 3:38 pm   Post subject: Re: Winsock   

Ben wrote:
I Think on Socket connect, make it post the sigin data, then make it Post /SignIn.jsp?

So

Private Sub Winsock_Connect
PostData = "SignInCodeHere"
p = p & "POST /SignIn.jsp HTTP/1.1" & vbCrLf
:spam:

Send PostData to https://secure.bebo.com/SignIn.jsp
Post data variables:
{
EmailUsername = userVAR
Password = passVAR
}
Top Profile E-mail 

Offline Liam

1337 n00b!!!111!!one!


User avatar


Joined: Mon Feb 04, 2008 3:57 am

Posts: 2504

Location: Wales

PostPosted: Sun Nov 09, 2008 8:36 pm   Post subject: Re: Winsock   

fatcandle wrote:
Ben wrote:
I Think on Socket connect, make it post the sigin data, then make it Post /SignIn.jsp?

So

Private Sub Winsock_Connect
PostData = "SignInCodeHere"
p = p & "POST /SignIn.jsp HTTP/1.1" & vbCrLf
:spam:

Send PostData to https://secure.bebo.com/SignIn.jsp
Post data variables:
{
EmailUsername = userVAR
Password = passVAR
}



^ That doesn't look like Visual Basic
Top Profile 

Offline sheligalo

Internet Pirate


User avatar


Joined: Sun Sep 30, 2007 6:57 pm

Posts: 1401

Location: Behind you.

PostPosted: Sun Nov 09, 2008 10:50 pm   Post subject: Re: Winsock   

Why are you even wanting to learn winsock if you use httpwrapper? They are exactly the same just httpwrapper is easier to use lol

_________________
Top Profile E-mail 

Offline Liam

1337 n00b!!!111!!one!


User avatar


Joined: Mon Feb 04, 2008 3:57 am

Posts: 2504

Location: Wales

PostPosted: Sun Nov 09, 2008 10:58 pm   Post subject: Re: Winsock   

sheligalo wrote:
Why are you even wanting to learn winsock if you use httpwrapper? They are exactly the same just httpwrapper is easier to use lol


Quicker, better, something new...
Top Profile 

Offline DCH SlayeR

HAHA... trumpets!


Joined: Thu Dec 20, 2007 11:42 am

Posts: 1078

PostPosted: Sun Nov 09, 2008 11:23 pm   Post subject: Re: Winsock   

Liam wrote:
sheligalo wrote:
Why are you even wanting to learn winsock if you use httpwrapper? They are exactly the same just httpwrapper is easier to use lol


Quicker, better, something new...


HTTPS Support. More stable, more options to do what you want, custom coding.

_________________
<3

Brucey, Martyn, Davely, Magicide, Jason, Intoxic

<3
Top Profile E-mail 

Offline fatcandle

Gold Member


Joined: Sun Sep 28, 2008 2:37 pm

Posts: 256

PostPosted: Mon Nov 10, 2008 8:48 am   Post subject: Re: Winsock   

Liam wrote:
fatcandle wrote:
Ben wrote:
I Think on Socket connect, make it post the sigin data, then make it Post /SignIn.jsp?

So

Private Sub Winsock_Connect
PostData = "SignInCodeHere"
p = p & "POST /SignIn.jsp HTTP/1.1" & vbCrLf
:spam:

Send PostData to https://secure.bebo.com/SignIn.jsp
Post data variables:
{
EmailUsername = userVAR
Password = passVAR
}


^ That doesn't look like Visual Basic

It wasn't actual code just sort of giving an idea on how to do it.
Top Profile E-mail 

Offline Brucey

Bruce Juice


User avatar


Joined: Sun Aug 05, 2007 6:03 pm

Posts: 2622

Location: England

PostPosted: Mon Nov 10, 2008 3:16 pm   Post subject: Re: Winsock   

Yeah it's in the HTTP wrapper, if you wanna edit it, just edit httpwrapper which is easier and supports cookies and all that already...

_________________
Aciid Forums - http://www.bebo.com/brucey - Bruce Juice

9 out of 10 times you don't know what the fuck you're talking about
Top Profile E-mail 
Display posts from previous:  Sort by  
Reply to topic Page 1 of 1 [ 10 posts ]

 
 •  

Who is online
Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum