Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Cool Fire
nanobot4
Commits
0582de2d
Commit
0582de2d
authored
Jan 26, 2019
by
Cool Fire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update urls to use https
parent
084d0f48
Pipeline
#1254
passed with stages
in 6 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
plugins/shells.rb
plugins/shells.rb
+13
-13
No files found.
plugins/shells.rb
View file @
0582de2d
...
@@ -58,30 +58,30 @@ class Shells
...
@@ -58,30 +58,30 @@ class Shells
def
link
(
_nick
,
_user
,
_host
,
from
,
_msg
,
arguments
,
con
)
def
link
(
_nick
,
_user
,
_host
,
from
,
_msg
,
arguments
,
con
)
case
arguments
case
arguments
when
/^main/i
when
/^main/i
info
=
[
"http://wiki.insomnia247.nl/wiki/Shells"
]
info
=
[
"http
s
://wiki.insomnia247.nl/wiki/Shells"
]
when
/^faq/i
when
/^faq/i
info
=
[
"http://wiki.insomnia247.nl/wiki/Shells_FAQ"
]
info
=
[
"http
s
://wiki.insomnia247.nl/wiki/Shells_FAQ"
]
when
/^rule/i
when
/^rule/i
info
=
[
"http://wiki.insomnia247.nl/wiki/Shells_rules"
]
info
=
[
"http
s
://wiki.insomnia247.nl/wiki/Shells_rules"
]
when
/^shell/i
when
/^shell/i
info
=
[
"http://wiki.insomnia247.nl/wiki/Shells_FAQ#How_do_I_request_a_shell.3F"
,
info
=
[
"http
s
://wiki.insomnia247.nl/wiki/Shells_FAQ#How_do_I_request_a_shell.3F"
,
"The short version is: You need an invite."
]
"The short version is: You need an invite."
]
when
/^invite/i
when
/^invite/i
info
=
[
"http://wiki.insomnia247.nl/wiki/Shells_FAQ#How_do_I_get_an_invite.3F"
,
info
=
[
"http
s
://wiki.insomnia247.nl/wiki/Shells_FAQ#How_do_I_get_an_invite.3F"
,
"The short version is: You need a good reason."
]
"The short version is: You need a good reason."
]
when
/^good/i
when
/^good/i
info
=
[
"http://wiki.insomnia247.nl/wiki/Shells_FAQ#What_is_a_good_reason_for_an_invite.3F"
]
info
=
[
"http
s
://wiki.insomnia247.nl/wiki/Shells_FAQ#What_is_a_good_reason_for_an_invite.3F"
]
when
/^bad/i
when
/^bad/i
info
=
[
"http://wiki.insomnia247.nl/wiki/Shells_FAQ#What_are_bad_reasons_for_an_invite.3F"
]
info
=
[
"http
s
://wiki.insomnia247.nl/wiki/Shells_FAQ#What_are_bad_reasons_for_an_invite.3F"
]
when
/^learning/i
when
/^learning/i
info
=
[
"http://wiki.insomnia247.nl/wiki/Shells_FAQ#Why_isn.27t_learning_a_valid_usage.3F"
]
info
=
[
"http
s
://wiki.insomnia247.nl/wiki/Shells_FAQ#Why_isn.27t_learning_a_valid_usage.3F"
]
when
/^suwww/i
when
/^suwww/i
info
=
[
"You can use the 'suwww' command to change to your Apache user."
,
info
=
[
"You can use the 'suwww' command to change to your Apache user."
,
"More info here: http://wiki.insomnia247.nl/wiki/Shells_websites#suwww"
]
"More info here: http
s
://wiki.insomnia247.nl/wiki/Shells_websites#suwww"
]
when
/^heartbeat/i
when
/^heartbeat/i
info
=
[
"http://heartbeat.insomnia247.nl"
]
info
=
[
"http://heartbeat.insomnia247.nl"
]
when
/^git/i
when
/^git/i
info
=
[
"http://git.insomnia247.nl"
,
info
=
[
"http
s
://git.insomnia247.nl"
,
"No shell account is required to sign up here."
]
"No shell account is required to sign up here."
]
when
/^learnix/i
when
/^learnix/i
info
=
[
"Learnix shells: http://dams.insomnia247.nl/Public/Learnix.html"
]
info
=
[
"Learnix shells: http://dams.insomnia247.nl/Public/Learnix.html"
]
...
@@ -90,12 +90,12 @@ class Shells
...
@@ -90,12 +90,12 @@ class Shells
end
end
printhelp
(
from
,
con
,
info
)
printhelp
(
from
,
con
,
info
)
end
end
# Alias for link
# Alias for link
def
info
(
nick
,
user
,
host
,
from
,
msg
,
arguments
,
con
)
def
info
(
nick
,
user
,
host
,
from
,
msg
,
arguments
,
con
)
link
(
nick
,
user
,
host
,
from
,
msg
,
arguments
,
con
)
link
(
nick
,
user
,
host
,
from
,
msg
,
arguments
,
con
)
end
end
# Show information about open ports
# Show information about open ports
def
port
(
nick
,
user
,
host
,
from
,
msg
,
arguments
,
con
)
def
port
(
nick
,
user
,
host
,
from
,
msg
,
arguments
,
con
)
ports
(
nick
,
user
,
host
,
from
,
msg
,
arguments
,
con
)
ports
(
nick
,
user
,
host
,
from
,
msg
,
arguments
,
con
)
...
@@ -231,7 +231,7 @@ class Shells
...
@@ -231,7 +231,7 @@ class Shells
# Function to grab statistics from shell hosts.
# Function to grab statistics from shell hosts.
def
getstat
(
chan
,
stat
)
def
getstat
(
chan
,
stat
)
begin
begin
iline
=
Net
::
HTTP
.
get
(
'
www.insomnia247.nl
'
,
'
/stats.php?get=
'
+
stat
)
iline
=
Net
::
HTTP
.
get
(
URI
(
"https://
www.insomnia247.nl/stats.php?get=
#{
stat
}
"
)
)
rescue
Exception
=>
e
rescue
Exception
=>
e
iline
=
"[Host appears to be down! (
#{
e
.
message
}
)]"
iline
=
"[Host appears to be down! (
#{
e
.
message
}
)]"
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment