Sha256: 63b01661bf39416c16251fd04dc5015960e89c7a470ce8bcbe861ff263e7a55a

Contents?: true

Size: 651 Bytes

Versions: 829

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

829 entries across 829 versions & 1 rubygems

Version Path
pwn-0.4.389 bin/pwn_msf_postgres_login
pwn-0.4.388 bin/pwn_msf_postgres_login
pwn-0.4.387 bin/pwn_msf_postgres_login
pwn-0.4.386 bin/pwn_msf_postgres_login
pwn-0.4.385 bin/pwn_msf_postgres_login
pwn-0.4.384 bin/pwn_msf_postgres_login
pwn-0.4.383 bin/pwn_msf_postgres_login
pwn-0.4.382 bin/pwn_msf_postgres_login
pwn-0.4.381 bin/pwn_msf_postgres_login
pwn-0.4.380 bin/pwn_msf_postgres_login
pwn-0.4.378 bin/pwn_msf_postgres_login
pwn-0.4.377 bin/pwn_msf_postgres_login
pwn-0.4.376 bin/pwn_msf_postgres_login
pwn-0.4.375 bin/pwn_msf_postgres_login
pwn-0.4.374 bin/pwn_msf_postgres_login
pwn-0.4.373 bin/pwn_msf_postgres_login
pwn-0.4.372 bin/pwn_msf_postgres_login
pwn-0.4.371 bin/pwn_msf_postgres_login
pwn-0.4.370 bin/pwn_msf_postgres_login
pwn-0.4.369 bin/pwn_msf_postgres_login