aboutsummaryrefslogtreecommitdiff
path: root/CamilStaps-s4498062-Assignment-4/ex1/hackme.rb
diff options
context:
space:
mode:
authorCamil Staps2015-12-14 10:24:58 +0000
committerCamil Staps2015-12-14 10:24:58 +0000
commit7f48aca014f6d730e2855bb4b59f25b8ba1e7073 (patch)
tree753afd5a7736af8c29cdf6130c4ea25d3c7f461b /CamilStaps-s4498062-Assignment-4/ex1/hackme.rb
parentUpdates bash-covert-channel (diff)
Finish assignment 4
Diffstat (limited to 'CamilStaps-s4498062-Assignment-4/ex1/hackme.rb')
-rw-r--r--CamilStaps-s4498062-Assignment-4/ex1/hackme.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/CamilStaps-s4498062-Assignment-4/ex1/hackme.rb b/CamilStaps-s4498062-Assignment-4/ex1/hackme.rb
new file mode 100644
index 0000000..6a93cc4
--- /dev/null
+++ b/CamilStaps-s4498062-Assignment-4/ex1/hackme.rb
@@ -0,0 +1,32 @@
+require 'msf/core'
+
+class Metasploit3 < Msf::Exploit::Remote
+
+ include Msf::Exploit::Remote::Tcp
+
+ def initialize(info = {})
+ super(update_info(info,
+ 'Name' => 'Hackme',
+ 'Description' => 'hackme.cs.ru.nl:2288 exploit',
+ 'License' => MSF_LICENSE,
+ 'Author' => ['Camil Staps'],
+ 'Version' => '$Revision: $',
+ 'Payload' => { 'Space' => 1400, 'BadChars' => "\x00" },
+ 'Targets' => [ ['Automatic', {} ] ],
+ 'Privileged' => false,
+ 'DefaultOptions'=> { 'EXITFUNC' => 'process' },
+ 'DefaultTarget' => 0))
+
+ register_options(
+ [
+ OptString.new('HOST', [ false, 'The host.', 'hackme.cs.ru.nl'] ),
+ Opt::RPORT(2288)
+ ], self.class)
+ end
+
+ def exploit
+ connect
+ disconnect
+ end
+end
+