lib/ronin/exploits/exceptions.rb in ronin-exploits-0.3.1 vs lib/ronin/exploits/exceptions.rb in ronin-exploits-1.0.0.beta1
- old
+ new
@@ -1,28 +1,38 @@
#
-# Ronin Exploits - A Ruby library for Ronin that provides exploitation and
+# ronin-exploits - A Ruby library for ronin-rb that provides exploitation and
# payload crafting functionality.
#
-# Copyright (c) 2007-2009 Hal Brodigan (postmodern.mod3 at gmail.com)
+# Copyright (c) 2007-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
#
-# This program 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 2 of the License, or
+# ronin-exploits is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published
+# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
-# This program is distributed in the hope that it will be useful,
+# ronin-exploits 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.
+# GNU Lesser General Public License for more details.
#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+# You should have received a copy of the GNU Lesser General Public License
+# along with ronin-exploits. If not, see <https://www.gnu.org/licenses/>.
#
-require 'ronin/exploits/exceptions/exception'
-require 'ronin/exploits/exceptions/unknown_helper'
-require 'ronin/exploits/exceptions/target_unspecified'
-require 'ronin/exploits/exceptions/target_data_missing'
-require 'ronin/exploits/exceptions/exploit_not_built'
-require 'ronin/exploits/exceptions/restricted_char'
-require 'ronin/exploits/exceptions/payload_size'
+module Ronin
+ module Exploits
+ class ExploitError < RuntimeError
+ end
+
+ class IncompatiblePayload < ExploitError
+ end
+
+ class ValidationError < ExploitError
+ end
+
+ class MissingPayload < ValidationError
+ end
+
+ class ExploitFailed < ExploitError
+ end
+ end
+end