Update wiki to use latest ruby conventions

This commit is contained in:
adfoster-r7
2023-02-03 13:31:49 +00:00
parent c3c3987867
commit c777b33fcb
12 changed files with 262 additions and 255 deletions
@@ -27,41 +27,39 @@ AKA (_deprecated_*) | anything | ~~`['AKA', 'shellshock']`~~
## Code example of references in a module
```ruby
require 'msf/core'
class MetasploitModule < Msf::Exploit::Remote
Rank = NormalRanking
def initialize(info={})
super(update_info(info,
'Name' => "Code Example",
'Description' => %q{
This is an example of a module using references
},
'License' => MSF_LICENSE,
'Author' => [ 'Unknown' ],
'References' =>
[
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Code Example',
'Description' => %q{
This is an example of a module using references
},
'License' => MSF_LICENSE,
'Author' => [ 'Unknown' ],
'References' => [
[ 'CVE', '2014-9999' ],
['BID', '1234'],
['URL', 'http://example.com/blog.php?id=123']
],
'Platform' => 'win',
'Targets' =>
[
'Platform' => 'win',
'Targets' => [
[ 'Example', { 'Ret' => 0x41414141 } ]
],
'Payload' =>
{
'Payload' => {
'BadChars' => "\x00"
},
'Privileged' => false,
'DisclosureDate' => "Apr 1 2014",
'DefaultTarget' => 0,
'Notes' => {
'AKA' => [ 'shellshock' ]
'Privileged' => false,
'DisclosureDate' => '2014-04-01',
'DefaultTarget' => 0,
'Notes' => {
'AKA' => [ 'shellshock' ]
}
))
)
)
end
def exploit
@@ -69,4 +67,4 @@ class MetasploitModule < Msf::Exploit::Remote
end
end
```
```