mIRC Home    About    Download    Register    News    Help

Print Thread
#247958 10/09/14 10:42 PM
Joined: Sep 2014
Posts: 2
P
pynoo Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: Sep 2014
Posts: 2
Hi !

I have a problem with that sock scripte

Code:
on *:sockopen:test: {
  if ($sockerr) {
    var %m = $iif($me ison $sock($sockname).mark,msg $sock($sockname).mark,echo -a)
    %m Error, The was an connection error, try again later!
    sockclose $sockname
    return
  }
  sockwrite -n $sockname GET /b.php HTTP/1.0
  sockwrite -n $sockname User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
  sockwrite -n $sockname Host: olympe.in
  sockwrite -n $sockname Accept-Language: en-us
  sockwrite -n $sockname Accept: */*
  sockwrite -n $sockname
}
on *:sockread:test: {
  if ($sockerr) {
    var %m = $iif($me ison $sock($sockname).mark,msg $sock($sockname).mark,echo -a)
    %m Error, The was an connection reading error, try again later!
    sockclose $sockname
    return
  }
  var %temp
  sockread -f %temp 
  if ($sockbr) {
    if ($me ison $sock($sockname).mark) { $iif($me ison $sock($sockname).mark,msg $sock($sockname).mark,echo -a) READ: %temp }
  }
}

on *:text:!test:#: {
  if ($sock(test)) { .msg $chan Error, Already in use, Please wait to finish! | return }
  sockopen test statstwich.olympe.in 80
  sockmark test $chan
}


This code return only the error 404 page of www.olympe.in

i want the number of b.php result

[url=statstwitch.olympe.in/b.php]statstwitch.olympe.in/b.php[/url]

I'am a newbie frown please help

Last edited by pynoo; 10/09/14 10:44 PM.
pynoo #247959 10/09/14 11:19 PM
Joined: Sep 2014
Posts: 2
P
pynoo Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: Sep 2014
Posts: 2
Ok ! i found the problem smile

replaced sockwrite -n $sockname Host: olympe.in
by sockwrite -n $sockname Host: statstwitch.olympe.in

now i get this

Code:
!test
READ: HTTP/1.1 200 OK
READ: Server: nginx
READ: Date: Wed, 10 Sep 2014 23:17:59 GMT
READ: Content-Type: text/html; charset=utf-8
READ: Content-Length: 1
READ: Connection: close
READ: X-Powered-By: PHP/5.5.3-1ubuntu2.3
READ: X-Cached: MISS
READ:
READ: 3


I just want the number in last line how i can do it ?

Last edited by pynoo; 11/09/14 12:21 AM.
pynoo #248015 16/09/14 09:14 AM
Joined: Sep 2014
Posts: 1
I
Mostly harmless
Offline
Mostly harmless
I
Joined: Sep 2014
Posts: 1
There was nothing wrong with the original awardpoints alias. I use /hdel after the loop because it's faster than comparing nicks thousands of times.


Link Copied to Clipboard