diff options
Diffstat (limited to 'CamilStaps-s4498062-Assignment-4/ex1')
-rw-r--r-- | CamilStaps-s4498062-Assignment-4/ex1/ex1.txt | 10 | ||||
-rw-r--r-- | CamilStaps-s4498062-Assignment-4/ex1/hackme.rb | 32 |
2 files changed, 41 insertions, 1 deletions
diff --git a/CamilStaps-s4498062-Assignment-4/ex1/ex1.txt b/CamilStaps-s4498062-Assignment-4/ex1/ex1.txt index 0f72c75..3726769 100644 --- a/CamilStaps-s4498062-Assignment-4/ex1/ex1.txt +++ b/CamilStaps-s4498062-Assignment-4/ex1/ex1.txt @@ -38,5 +38,13 @@ b * README, 2266 replaced with 2288 c - The server crashed on Tuesday evening, I didn't pursue this any further. + I tried this, but couldn't get the module working with any of the given tutorials. Even with no significant things changed, I got the message: + + msf exploit(hackme) > exploit + + [-] Exploit failed: A payload has not been selected. + + The hackme.rb file is still attached. + + Then the server crashed on Tuesday evening, and I didn't pursue this any further in the rest of the week. Sorry. 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 + |