;To Start: /rbw on [port] (/rbw on 80)
;To Stop: /rbw off
;To Debug: /rbw debug
alias rbw {
if ($1 == $null) {
echo -a Commands Are:
echo -a On [port], Off, Debug, Info. (/rbw [command])
}
elseif ($1 == on) {
if ($sock(rbw_server)) { echo -a Server already enabled }
elseif (!$sock(rbw_server)) { .socklisten rbw_server $2 | echo -a Server Enabled on port $2 | .set %rbwp $2 | set %rbwurl http:// $+ $ip $+ : $+ %rbwp }
}
elseif ($1 == off) {
if (!$sock(rbw_server)) { echo -a Server not active }
elseif ($sock(rbw_server)) { .sockclose rbw_* | echo -a Web Server Disabled (/rbw on [port] To Enabled Again) }
}
elseif ($1 == debug) {
if ($window(@rbwd)) window -c @rbwd
elseif (!$window(@rbwd)) window @rbwd
}
elseif ($1 == info) {
echo -a -=Small Sock Web Server=-
echo -a Server IP: $ip (If you would like confirmation of your IP, please visit: http://www.whatismyip.com )
echo -a Server Port: %rbwp
echo -a URL: %rbwurl
}
}
on *:socklisten:rbw_server: {
.sockaccept rbw_visitor $+ $r(1000,9999)
}
on *:sockread:rbw_visitor*: {
window @rbw
set %rbw_temp %x
var %x
sockread %x
tokenize 32 %x
if ($1 == GET) && (/rvb?season4.htm isin $2) && ($me !isin $1-) && (HTTP* iswmcs $3) {
var %q .sockwrite -n $sockname
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q
Red Vs. Blue: Season 4
%q
%q Description: The whole season 4 of Red Vs Blue created by RoosterTeeth.com
%q
%q
}
if ($1 == GET) && (/rvb?season3.htm isin $2) && ($me !isin $1-) && (HTTP* iswmcs $3) {
var %q .sockwrite -n $sockname
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q Red Vs. Blue: Season 3
%q
%q Description: The whole season 3 of Red Vs Blue created by RoosterTeeth.com
%q
%q
}
if ($1 == GET) && (/rvb?season1.htm isin $2) && ($me !isin $1-) && (HTTP* iswmcs $3) {
var %q .sockwrite -n $sockname
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q Red Vs. Blue: Season 1
%q
%q Description: The whole season 1 of Red Vs Blue created by RoosterTeeth.com
%q
%q
}
if ($1 == GET) && (/rvb?season2.htm isin $2) && ($me !isin $1-) && (HTTP* iswmcs $3) {
var %q .sockwrite -n $sockname
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q Red Vs. Blue: Season 5
%q
%q Description: The whole season 2 of Red Vs Blue created by RoosterTeeth.com
%q
%q
}
if ($1 == GET) && (/rvb?season5.htm isin $2) && ($me !isin $1-) && (HTTP* iswmcs $3) {
var %q .sockwrite -n $sockname
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q
%q Red Vs. Blue: Season 5
%q
%q Description: The whole season 5 of Red Vs Blue created by RoosterTeeth.com
%q
%q
}
if ($1 == GET) && (/page?test.htm isin $2) && ($me !isin $1-) && (HTTP* iswmcs $3) {
var %q .sockwrite -n $sockname
%q
%q
%q
}
if ($1 == GET) && (/projects?images.htm isin $2) && ($me !isin $1-) && (HTTP* iswmcs $3) {
var %q .sockwrite -n $sockname
%q r00tb0x - projects - images
%q
%q Images By: Brandon
%q Current Image Projects
%q BrandOn's Signature:

%q BrandEn's Signature:

%q Funny Ass Falling:

%q I didnt make this.. its just sm3xy:

}
if ($1 == GET) && (/stats? isin $2) && ($me !isin $1-) && (HTTP* iswmcs $3) {
var %q .sockwrite -n $sockname
set %chan.name $chr(35) $+ $replace($2,/stats?,$chr(0),.htm,$chr(0),&,$chr(0))
echo -a %network
%q r00tb0x - stats of %chan.name $+
%q
%q
%q Stats for %chan.name $+
%q
%q | Nickname | Words Used |
$+ $htmltop( $+ $network $+ @ $+ %chan.name $+ ) $+
%q
Only Avaliable on the r00tb0x network.
To See The Stats of $+ $me $+ click here
}
if ($1 == GET) && ($2 == /) && (HTTP* iswmcs $3) { pg1.htm $sockname | set %home.error 0 | .timer 1 3 set %home.error 1 }
if ($1 == GET) && (/index? isin $2) && (HTTP* iswmcs $3) { $2 $sockname | set %home.error 0 | .timer 1 3 set %home.error 1 }
if ($1 == GET) && (/stats? isin $2) && ($me isin $1-) && (HTTP* iswmcs $3) {
set %home.error 0
.timer 1 3 set %home.error 1
var %q .sockwrite -n $sockname
%q r00tb0x - stats of $me $+
%q
%q $me isin $+ $chan(0) $+ channels. $chr(40) $+ $chan(1) and $chan(2) $+ )
%q $me is owned by: Brandon
%q $me is Currently Connected From: *@cpe-XX-XXX-XX-XXX.cinci.res.rr.com
%q $me is on the $network network ( $+ $server $+ )
%q $me is using the "r00tb0x" webserver on port "88" with the URL of " $+ %rbwurl $+ "
%q
%q Settings Of RBWebserver 1.0.0a:
%q Using: $sockname For You ( $+ $replace($sockname,rbw,GUEST) $+ ).
%q Running off of mIRC v $+ $version (REGISTERED TO r00tb0x inc.)
%q Home page is http://rage.uk.to:88/
%q IP of 65.XXX.XX.87
%q Landing 2404 Cisco Routers Into the Server Services of 65.XXX.XX.87
%q PHP: No (Using RBPHP)
%q HTML: Yes
%q RBSQL: Yes (Not Done Yet! - rbsql.db)
%q RBPHP: Yes (Half way Coded - rbphp.mrc)
%q RBHTM: Yes (Done - HTML 1.1)
%q RBIRC: Yes (Done - MRC $version $+ )
%q Running: r00tb0x ver 1.0b (http://rage.uk.to:88/)
%q Your Current IP Address is $+ $sock($sockname).ip $+
%q Current Screenshot
%q
%q
%q
}
if ($1 == GET) && (/stats isin $2) && (? !isin $2) && (HTTP* iswmcs $3) {
.timer 1 3 set %home.error 1
var %q .sockwrite -n $sockname
%q r00tb0x - stats
%q
%q
%q Stats for #Box
%q
%q | Nickname | Words Used |
$+ $htmltop(r00tb0x@#box) $+
%q
Only Avaliable on the r00tb0x network.
To See The Stats of $+ $me $+ click here
}
echo @rbw $sockname - $sock($sockname).ip
.sockclose $sockname
echo @rbw %x
}
on *:unload: { unset %rbwurl | unset %rbwp | echo -a Thank you for useing rbw. }
on *:load {
echo -a -= rbw (r00tb0x webserver) By: Brandon =-
echo -a To Start: /rbw on [port] (/rbw on 80)
}