This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started to Fix help command, added TCP/UDP/HTTP Banner grabbing
Added the ability for ronin-bot to grab banners Example: !banner mail.cnn.com 25 !banner_tcp mail.cnn.com 25 !banner_udp doesthisexist.com 1111 !banner_http www.reddit.com 80
- Loading branch information
1 parent
b90c52e
commit 4e1dca2
Showing
8 changed files
with
165 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# encoding: utf-8 | ||
# | ||
# Copyright (c) 2012 Hal Brodigan (postmodern.mod3 at gmail.com) | ||
# | ||
# This file is part of Ronin UI IRC. | ||
# | ||
# Ronin Ui Irc is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# Ronin Ui Irc is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with Ronin Ui Irc. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
|
||
require 'ronin/ui/irc/plugin' | ||
require 'ronin/network/http' | ||
|
||
include Ronin::Network::HTTP | ||
|
||
module Ronin | ||
module UI | ||
module IRC | ||
module Plugins | ||
class HTTP < Plugin | ||
|
||
match /(?:http_banner) (.+) (.+)/, :method => :banner | ||
|
||
usage "[HOST] [PORT]" | ||
summary "Retrieve the HTTP banner of remote host" | ||
|
||
def banner(m,host,port) | ||
msg_filter(m) do | ||
result = http_server(:url => "http://#{host}:#{port}") | ||
if result | ||
m.reply(result) | ||
else | ||
m.reply("Banner Not Found") | ||
end | ||
end | ||
end | ||
|
||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# encoding: utf-8 | ||
# | ||
# Copyright (c) 2012 Hal Brodigan (postmodern.mod3 at gmail.com) | ||
# | ||
# This file is part of Ronin UI IRC. | ||
# | ||
# Ronin Ui Irc is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# Ronin Ui Irc is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with Ronin Ui Irc. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
|
||
require 'ronin/ui/irc/plugin' | ||
require 'ronin/network/tcp' | ||
|
||
include Ronin::Network::TCP | ||
|
||
module Ronin | ||
module UI | ||
module IRC | ||
module Plugins | ||
class TCP < Plugin | ||
|
||
match /(?:banner|tcp_banner) (.+) (.+)/, :method => :banner | ||
|
||
usage "[HOST] [PORT]" | ||
summary "Retrieve banner of remote host" | ||
|
||
def banner(m,host,port) | ||
msg_filter(m) do | ||
result = tcp_banner(host,port) | ||
if result | ||
m.reply(result) | ||
else | ||
m.reply("Banner Not Found") | ||
end | ||
end | ||
end | ||
|
||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# encoding: utf-8 | ||
# | ||
# Copyright (c) 2012 Hal Brodigan (postmodern.mod3 at gmail.com) | ||
# | ||
# This file is part of Ronin UI IRC. | ||
# | ||
# Ronin Ui Irc is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# Ronin Ui Irc is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with Ronin Ui Irc. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
|
||
require 'ronin/ui/irc/plugin' | ||
require 'ronin/network/udp' | ||
|
||
include Ronin::Network::UDP | ||
|
||
module Ronin | ||
module UI | ||
module IRC | ||
module Plugins | ||
class UDP < Plugin | ||
|
||
match /(?:udp_banner) (.+) (.+)/, :method => :banner | ||
|
||
usage "[HOST] [PORT]" | ||
summary "Retrieve banner of remote host" | ||
|
||
def banner(m,host,port) | ||
msg_filter(m) do | ||
result = tcp_banner(host,port) | ||
if result | ||
m.reply(result) | ||
else | ||
m.reply("Banner Not Found") | ||
end | ||
end | ||
end | ||
|
||
end | ||
end | ||
end | ||
end | ||
end |