anyone can expln me How can i get pocket and use it in winsock...
if someone know show me how can i get pocket from www.gmail.com " login user and password " and how can i use in winsock..
thanks
i need jus simple code for expln how can i etc...
Printable View
anyone can expln me How can i get pocket and use it in winsock...
if someone know show me how can i get pocket from www.gmail.com " login user and password " and how can i use in winsock..
thanks
i need jus simple code for expln how can i etc...
Can you explain your self in any more detail? See my sig for a basic guide to winsock
You can get a packet from gmail if a packet is sent to you from gmail.Quote:
Originally Posted by angel.girl
here is pocket but i dont know which one working and also i dont know how can i use in winsock
Code:POCKET 1
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Type: text/html; charset=UTF-8..Set-Cookie: GMAIL_AT=xn3j2ward4b1l7lrg0oadeqe11o8me; Path=/mail
Set-Cookie: GMAIL_LOGIN=EXPIRED; Domain=.google.com; Expires=Wed, 23-Apr-08 12:47:52 GMT; Path=/..Content-Encoding: gzip
Transfer-Encoding: chunked..Date: Thu, 24 Apr 2008 12:47:52 GMT
Server: GFE/1.3....3c4.............:.w......p..R8u..|...&.....k.~.l.#.2v.-..!$...3.I.Iw.....`.H....H.........c...........c.....Z.....D!ZF..&.M.P.<.Q.>.D^[email protected]./.Kci.<..'_....V=.<g.'<2zu. .a........}vS.....D.D.OV)#..Z6..VHjC..h.3a.....!E......4...... ......&y.3..B.......6.c.z.....>] ../..`l......1;.h$X.P.6]i.F.K..u*x..6...r.DJ...X{...a....L.:P..,L..`o....fZ.h&&a..j....p..3&A...z}..F..a..Z..69\.li. [email protected]..,Xf..~'...^......%%I.W.a....-xZ../#.JS{.`.B.._$.6..{...4...=..$.n..y).....f.>c...5....i...E...1.v.......NP.[..Y...L..........=.......%..i...b...76t....,.J.o..<..1..Q$.,.v}..y(..W/.
POCKET 2
GET /mail/?ui=1 HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: es
Accept-Encoding: gzip, deflate..User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)..Host: mail.google.com..Connection: Keep-Alive..Cookie: S=awfe=lOH_SI5V1tzal9GkOc12-w:awfe-efe=lOH_SI5V1tzal9GkOc12-w:gmail=Is-M-XGwAJFZUDCPS-R6yA:gmail_yj=j5i3QOgVLTPanabLg7U6QQ:gmproxy=l4OroRN5Rus:gmproxy_yj=pIJ8JCpflC8:gmproxy_yj_sub=Dxs3TfX6sYQ; GX=DQAAAG8AAADHUHfpc7Y257dwjVAlkgUagd2x2HNRqLm9CA4X38MhpLmujr1RuUkRA2bF8DC-m5Sd42-L8JxU0HaNZ7ZOt577Mg6uVxpU9UrzhbLu8h99uCZAL_2UJkWRXvVgL85q_ejxDx9IV552tAVVEAdNuW9S; GMAIL_AT=xn3j2ward4b1l7lrg0oadeqe11o8me; TZ=-120; S=awfe=lOH_SI5V1tzal9GkOc12-w:awfe-efe=lOH_SI5V1tzal9GkOc12-w; GMAIL_RTT=440; SID=DQAAAG4AAAB1aQsnBYbO4rmsQQ2UmQizG6HCxAECkHlUCa7LBalK8rnvX6RInSi8PFBdR4UnQ-85UbvG1lgwQpI5AbznptZ-4PezDE1HECIxnyVK2Co0C9LzTTYW1AIzQne-qmxs6MG2TCJ7Em8DX9tbKqeY7gt9....
POCKET 3
GET /mail/?ui=1&ik=14fd557232&view=ad&bb=48731cxdj0kheytzg04nmjt2fyb6q4z&zx=h0eizc-g6uxa7 HTTP/1.1..Accept: */*
Accept-Language: es
Referer: http://mail.google.com/mail/?ui=1&view=page&name=js&ver=dgsrf9ovrhxq..Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host: mail.google.com
Connection: Keep-Alive
Cookie: S=awfe=lOH_SI5V1tzal9GkOc12-w:awfe-efe=lOH_SI5V1tzal9GkOc12-w:gmail=Is-M-XGwAJFZUDCPS-R6yA:gmail_yj=j5i3QOgVLTPanabLg7U6QQ:gmproxy=l4OroRN5Rus:gmproxy_yj=pIJ8JCpflC8:gmproxy_yj_sub=Dxs3TfX6sYQ; GX=DQAAAG8AAADHUHfpc7Y257dwjVAlkgUagd2x2HNRqLm9CA4X38MhpLmujr1RuUkRA2bF8DC-m5Sd42-L8JxU0HaNZ7ZOt577Mg6uVxpU9UrzhbLu8h99uCZAL_2UJkWRXvVgL85q_ejxDx9IV552tAVVEAdNuW9S; GMAIL_AT=xn3j2ward4b1l7lrg0oadeqe11o8me; GMAIL_SU=1; [email protected]/123; TZ=-120; S=awfe=lOH_SI5V1tzal9GkOc12-w:awfe-efe=lOH_SI5V1tzal9GkOc12-w; SID=DQAAAG4AAAB1aQsnBYbO4rmsQQ2UmQizG6HCxAECkHlUCa7LBalK8rnvX6RInSi8PFBdR4UnQ-85UbvG1lgwQpI5AbznptZ-4PezDE1HECIxnyVK2Co0C9LzTTYW1AIzQne-qmxs6MG2TCJ7Em8DX9tbKqeY7gt9; GMAIL_HELP=hosted:0....
I'm not sure I even understand your request.
Do you want to recieve or send?
Where and/or how did you get those packets? Are they from a packet sniffer or what?
Also, the GET requests don't quite seem right.
I have not seen a GET like this
GET /mail/?ui=1&ik=14fd557232.......etc
I would think it should be more like this
GET /mail/ui?=1&ik=14fd557232.......etc
Note how I switched the ? mark around
Anyway, whatever, are you asking how to send this data using Winsock?
Im not so good in winsock but winsock doesn't have so much methods.
It has send data method and data receive event. That is all.
You can either send data or data can be sent to you.
If you need to get a packet from gmail, you can only receive it. You cannot take it from gmail.
The other way is that you send the data packet to gmail to invoke gmail to do something. Packet must consist of exact commands used to communicate with gmail. I dont know how that works if it does.
Packet #1 is what you would recieve from the server
Packets #2 & 3 are what you would send to the server.
So, to send #2 for example:
Dim s As String
s = "GET /mail/?ui=1 HTTP/1.1" & vbCRLf
s = s & "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*" & vbCrLf
s = s & "Accept-Language: es" & vbCrLf
s = s & "Accept-Encoding: gzip, deflate..User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" & vbCrLf
s = s & "Host: mail.google.com" & vbCrLf
s = s & Connection: Keep-Alive" & vbCrLf
s = s & Cookie: S=awfe=lOH_SI5V1tzal9GkOc12-w:awfe-efe=lOH_SI5V1tzal9GkOc12-w:gmail=Is-M-XGwAJFZUDCPS-R6yA:gmail_yj=j5i3QOgVLTPanabLg7U6QQ:gmproxy=l4OroRN5Rus:gmproxy_yj=pIJ8JCpflC8:gmproxy_yj_sub=Dxs3T fX6sYQ; GX=DQAAAG8AAADHUHfpc7Y257dwjVAlkgUagd2x2HNRqLm9CA4X38MhpLmujr1RuUkRA2bF8DC-m5Sd42-L8JxU0HaNZ7ZOt577Mg6uVxpU9UrzhbLu8h99uCZAL_2UJkWRXvVgL85q_ejxDx9IV552tAVVEAdNuW9S; GMAIL_AT=xn3j2ward4b1l7lrg0oadeqe11o8me; TZ=-120; S=awfe=lOH_SI5V1tzal9GkOc12-w:awfe-efe=lOH_SI5V1tzal9GkOc12-w; GMAIL_RTT=440; SID=DQAAAG4AAAB1aQsnBYbO4rmsQQ2UmQizG6HCxAECkHlUCa7LBalK8rnvX6RInSi8PFBdR4UnQ-85UbvG1lgwQpI5AbznptZ-4PezDE1HECIxnyVK2Co0C9LzTTYW1AIzQne-qmxs6MG2TCJ7Em8DX9tbKqeY7gt9" & vbCrlf & vbCrlf
Socket.SendData s
I'm not implying that this is going to work especially since you are dealing with an encoded cookie and that would probably change from one session to another.
EDIT
Note that even though posting the above resulted in multiple lines (see the cookie, for example) it is actually one line. All entries must be a single contigueous line.
Thanks its working
tel me onethings more if i wana to post deta its same like as get deta?
when i try it its gettin bad somethings same i dont know why
POST is used for sending data.
Example
GET is used to request data and it is also used for sending information.Code:POST /cgi-bin/cgi-program HTTP/1.1
'
' Other lines
'
Content-type: type-of-data
Content-length: nn nn = length of below data line
id=myid&pass=mypass
Example
-OR-Code:GET /index.html HTTP/1.1
'
' Other lines
'
Note in the POST statement the data is on a seperate line while in the GET statement the data is on the same line as the GET request.Code:GET /cgi-bin/cgi-program?id=myid&pass=mypass HTTP/1.1
'
' Other lines
'
yer but how can i code in winsock POST
i had with these code
Dim POST As String
POST = "POST /index.php?do HTTP/1.1" & vbCrLf
POST = POST & "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*" & vbCrLf
POST = POST & "Referer: http://www.senditfake.com/index.php?do" & vbCrLf
POST = POST & "Accept -Language: es" & vbCrLf
POST = POST & "Content-Type: application/x-www-form-urlencoded" & vbCrLf
POST = POST & "Accept -Encoding: gzip , deflate" & vbCrLf
POST = POST & "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" & vbCrLf
POST = POST & "Host: www.senditfake.com" & vbCrLf
POST = POST & "Content-Length: 117" & vbCrLf
POST = POST & "Connection: Keep -Alive" & vbCrLf
POST = POST & "cache -Control: no -cache" & vbCrLf
POST = POST & "Cookie: PHPSESSID=kfc8db3gm3acs4k9gk21od8mi1; __utma=42138791.1798081002.1209227100.1209227100.1209227100.1; __utmb=42138791; __utmc=42138791; __utmz=42138791.1209227100.1.1.utmccn=(organic)|utmcsr=google|utmctr=send+email+fake|utmcmd=organic" & vbCrLf
POST = POST & "[email protected]&[email protected]&fromname=angel&subject=hey&message=wuz+up®ister=Send+Message+%BB" & vbCrLf
Winsock1.SendData POST
End Sub
but its wont work
Here is Post packet
Code:POST /index.php?do HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
Referer: http://www.senditfake.com/index.php?do
Accept-Language: es
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host: www.senditfake.com
Content-Length: 117
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=kfc8db3gm3acs4k9gk21od8mi1; __utma=42138791.1798081002.1209227100.1209227100.1209227100.1; __utmb=42138791; __utmc=42138791; __utmz=42138791.1209227100.1.1.utmccn=(organic)|utmcsr=google|utmctr=send+email+fake|utmcmd=organic
[email protected]&[email protected]&fromname=angel&subject=hey&message=wuz+up®ister=Send+Message+%BB
Quote:
Originally Posted by angel.girl
Not sure if POST /index.php?do HTTP/1.1 is correct but maybe it is; I'm just not sure.
Also you need two VBCrLf's after your last line and before your data
"........google|utmctr=send+email+fake|utmcmd=organic" & vbCrLf & vbCrLf