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
unstable
Stephen Fewer 2010-09-14 23:33:38 +00:00
parent 7957c8872e
commit 66052df646
2 changed files with 1 additions and 4 deletions

View File

@ -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) + ":" +

View File

@ -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")