mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-09-04 20:18:27 +02:00
Process name is no longer case sensitive.
git-svn-id: file:///home/svn/framework3/trunk@10346 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
3c8f86b8c0
commit
0a34941a79
@ -67,7 +67,7 @@ end
|
||||
def find_pids(name)
|
||||
proc_pid = []
|
||||
client.sys.process.get_processes.each do |proc|
|
||||
if proc['name'] == name
|
||||
if proc['name'].downcase == name.downcase
|
||||
proc_pid << proc['pid']
|
||||
end
|
||||
end
|
||||
@ -109,6 +109,7 @@ def dump_mem(pid,name, toggle)
|
||||
|
||||
end
|
||||
|
||||
# Function to query process Size
|
||||
def get_mem_usage( pid )
|
||||
p = client.sys.process.open( pid.to_i, PROCESS_QUERY_INFORMATION | PROCESS_VM_READ )
|
||||
if( p )
|
||||
@ -152,7 +153,7 @@ def get_mem_usage( pid )
|
||||
return nil
|
||||
end
|
||||
|
||||
|
||||
# Main
|
||||
if client.platform =~ /win32|win64/
|
||||
if resource
|
||||
resource.each do |r|
|
||||
|
Loading…
Reference in New Issue
Block a user