Sha256: 63b01661bf39416c16251fd04dc5015960e89c7a470ce8bcbe861ff263e7a55a

Contents?: true

Size: 651 Bytes

Versions: 813

Compression:

Stored size: 651 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'pwn'

msfrpcd_yaml_conf = ARGV[0].to_s.strip.chomp
rhosts = ARGV[1].to_s.strip.chomp
rport = ARGV[2].to_s.strip.chomp

logger = PWN::Plugins::PWNLogger.create

logger.info('MSF Postgres Login for ' << rhosts)

results = PWN::MSF::PostgresLogin.exploit(
  msfrpcd_yaml_conf: msfrpcd_yaml_conf,
  rhosts: rhosts,
  rport: rport
)

File.write("#{rhosts}_msf_postgres_login.txt", results['data'])

if results['data'].include?('- LOGIN SUCCESSFUL:')
  logger.error(
    "Successful Postgres AuthN!!!  See #{rhosts}_msf_postgres_login.txt for more information."
  )
end

# TODO: - Publish as HTML

Version data entries

813 entries across 813 versions & 1 rubygems

Version Path
pwn-0.5.236 bin/pwn_msf_postgres_login
pwn-0.5.235 bin/pwn_msf_postgres_login
pwn-0.5.234 bin/pwn_msf_postgres_login
pwn-0.5.233 bin/pwn_msf_postgres_login
pwn-0.5.232 bin/pwn_msf_postgres_login
pwn-0.5.231 bin/pwn_msf_postgres_login
pwn-0.5.230 bin/pwn_msf_postgres_login
pwn-0.5.229 bin/pwn_msf_postgres_login
pwn-0.5.228 bin/pwn_msf_postgres_login
pwn-0.5.227 bin/pwn_msf_postgres_login
pwn-0.5.226 bin/pwn_msf_postgres_login
pwn-0.5.225 bin/pwn_msf_postgres_login
pwn-0.5.224 bin/pwn_msf_postgres_login
pwn-0.5.223 bin/pwn_msf_postgres_login
pwn-0.5.222 bin/pwn_msf_postgres_login
pwn-0.5.221 bin/pwn_msf_postgres_login
pwn-0.5.220 bin/pwn_msf_postgres_login
pwn-0.5.219 bin/pwn_msf_postgres_login
pwn-0.5.217 bin/pwn_msf_postgres_login
pwn-0.5.216 bin/pwn_msf_postgres_login