mIRC Home    About    Download    Register    News    Help

Print Thread
#248339 04/10/14 06:34 AM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
mirc may remotely add user and password to connect to a page ?


Any ideas?
Thank you!

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
What page are you trying to connect with username and password?


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
imperiaonline.org
Let me know if mIRC can open a browser, enter the page and return the source code

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
This code will read the page you want then if you want any other reply to help.

Try using this code:

Syntax: /sockget <PAGE>
Example: /sockget http://www103.imperiaonline.org/imperia/game_v6/game/homepage.php?games=ok&ref=

Code:
alias sockget {
  if (!$1-) { echo -a ERROR: Enter the URL Page correctly! | return }
  ; example: /sockget http://mirc.com/versions.txt

  var %s = sockget_ $+ $rand(1,100000)
  if ($sock(%s)) { sockclose %s }
  var %site = $1-
  var %get_host = $chr(47) $+ $gettok(%site,3-,47)
  var %host = $gettok(%site,2,47)
  if ($right(%site,1) == $chr(47)) && ($right(%get_host,1) !== $chr(47)) { var -s %get_host = %get_host $+ $chr(47) }
  if (*https* iswm %site) { sockopen -e %s %host 443 }
  else { sockopen %s %host 80 }
  sockmark %s %get_host
}

ON *:SOCKOPEN:sockget_*: {
  if ($sockerr) { echo -a ERROR: SOCKOPEN -> $sock($sockname).wserr -> $sock($sockname).wsmsg | return }
  sockwrite -n $sockname GET $sock($sockname).mark HTTP/1.0
  sockwrite -n $sockname Host: $sock($sockname).addr
  sockwrite -n $sockname User-Agent: */*
  sockwrite -n $sockname Connection: Close
  sockwrite -n $sockname
}

ON *:SOCKREAD:sockget_*: {
  if ($sockerr) { echo -a ERROR: SOCKREAD -> $sock($sockname).wserr -> $sock($sockname).wsmsg | return }
  var %read
  sockread %read
  if ($sockbr) { echo -ag READ: $left(%read,4096) }
}

ON *:SOCKCLOSE:sockget_*: { echo -ag SOCKET CONNECTION CLOSED! }


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
The remote works perfect just send me the code for the home page

you may first connect using "user" " conraseƱa " and then send the code?

Sorry for my writing !

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
I am not sure that you can do that, first of all you must see if the website that you want to login support this, then you must read the website FAQ and see how you can do that and then go to mirc and code the way that the site accept the authentication.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard