@@ -13,7 +13,7 @@ class MetasploitModule < Msf::Auxiliary
1313
1414 def initialize
1515 super (
16- 'Name' => 'Chargen Probe Utility' ,
16+ 'Name' => 'Chargen Probe Utility' ,
1717 'Description' => %q{
1818 Chargen is a debugging and measurement tool and a character
1919 generator service. A character generator service simply sends
@@ -26,18 +26,23 @@ def initialize
2626 This can result in traffic loops and service degradation with
2727 large amounts of network traffic.
2828 } ,
29- 'Author' => 'Matteo Cantoni <goony[at]nothink.org>' ,
30- 'License' => MSF_LICENSE ,
31- 'References' =>
32- [
33- [ 'CVE' , '1999-0103' ] , # Note, does not actually trigger a flood.
34- [ 'URL' , 'http://tools.ietf.org/html/rfc864' ]
35- ] ,
36- 'DisclosureDate' => 'Feb 08 1996' )
29+ 'Author' => 'Matteo Cantoni <goony[at]nothink.org>' ,
30+ 'License' => MSF_LICENSE ,
31+ 'References' => [
32+ [ 'CVE' , '1999-0103' ] , # Note, does not actually trigger a flood.
33+ [ 'URL' , 'http://tools.ietf.org/html/rfc864' ]
34+ ] ,
35+ 'DisclosureDate' => 'Feb 08 1996' ,
36+ 'Notes' => {
37+ 'Stability' => [ CRASH_SAFE ] ,
38+ 'SideEffects' => [ ] ,
39+ 'Reliability' => [ ]
40+ }
41+ )
3742
38- register_options ( [
39- Opt ::RPORT ( 19 )
40- ] )
43+ register_options ( [
44+ Opt ::RPORT ( 19 )
45+ ] )
4146 end
4247
4348 def run_host ( rhost )
@@ -51,17 +56,17 @@ def run_host(rhost)
5156 r = udp_sock . recvfrom ( 65535 , 0.1 )
5257
5358 if r and r [ 1 ]
54- vprint_status ( "#{ rhost } :#{ rport } - Response: #{ r [ 0 ] . to_s } " )
59+ vprint_status ( "#{ rhost } :#{ rport } - Response: #{ r [ 0 ] } " )
5560 res = r [ 0 ] . to_s . strip
56- if ( res . match ( /ABCDEFGHIJKLMNOPQRSTUVWXYZ/i ) || res . match ( /0123456789/ ) )
61+ if res . match ( /ABCDEFGHIJKLMNOPQRSTUVWXYZ/i ) || res . match ( /0123456789/ )
5762 print_good ( "#{ rhost } :#{ rport } answers with #{ res . length } bytes (headers + UDP payload)" )
58- report_service ( : host => rhost , : port => rport , : proto => " udp" , : name => " chargen" , : info => res . length )
63+ report_service ( host : rhost , port : rport , proto : ' udp' , name : ' chargen' , info : res . length )
5964 end
6065 end
6166 rescue ::Rex ::HostUnreachable , ::Rex ::ConnectionTimeout , ::Rex ::ConnectionRefused
6267 nil
6368 ensure
64- disconnect_udp if self . udp_sock
69+ disconnect_udp if udp_sock
6570 end
6671 end
6772 end
0 commit comments