From 66052df64691674801f6e96bca09ee25beb36a31 Mon Sep 17 00:00:00 2001 From: Stephen Fewer Date: Tue, 14 Sep 2010 23:33:38 +0000 Subject: [PATCH] Tiny update to these two scripts that use railgun - we don't need to perform a 'client.core.use("railgun")' any more as railgun is directly in stdapi. git-svn-id: file:///home/svn/framework3/trunk@10321 4d416f70-5f16-0410-b530-b9f4589650da --- scripts/meterpreter/arp_scanner.rb | 4 +--- scripts/meterpreter/keylogrecorder.rb | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/meterpreter/arp_scanner.rb b/scripts/meterpreter/arp_scanner.rb index a0078be72b..297f28ae10 100644 --- a/scripts/meterpreter/arp_scanner.rb +++ b/scripts/meterpreter/arp_scanner.rb @@ -27,8 +27,6 @@ def enum_int end def arp_scan(cidr) print_status("ARP Scanning #{cidr}") - client.core.use("railgun") - rail = client.railgun ws = client.railgun.ws2_32 iphlp = client.railgun.iphlpapi i, a = 0, [] @@ -48,7 +46,7 @@ def arp_scan(cidr) h = ws.inet_addr(ip_text) ip = h["return"] h = iphlp.SendARP(ip,0,6,6) - if h["return"] == rail.const("NO_ERROR") + if h["return"] == client.railgun.const("NO_ERROR") mac = h["pMacAddr"] print_status("IP: #{ip_text} MAC " + mac[0].ord.to_s(16) + ":" + diff --git a/scripts/meterpreter/keylogrecorder.rb b/scripts/meterpreter/keylogrecorder.rb index b09fb1459a..bdf8f15dc2 100644 --- a/scripts/meterpreter/keylogrecorder.rb +++ b/scripts/meterpreter/keylogrecorder.rb @@ -42,7 +42,6 @@ captype = 0 # Function for locking the screen -- Thanks for the idea and API call Mubix def lock_screen print_status("Locking Screen...") - client.core.use("railgun") lock_info = client.railgun.user32.LockWorkStation() if lock_info["GetLastError"] == 0 print_status("Screen has been locked")