Home | History | Annotate | Download | only in windows

Lines Matching defs:query

102             self.query(["echo @off"])  # Remove header
104 self.query(["$FormatEnumerationLimit=-1"]) # Do not crop long IP lists
114 def query(self, command):
118 # Call powershell query using running process
121 query = " ".join(command) + ("&" if self.cmd else ";") + " echo scapy_end\n"
122 self.process.stdin.write(query.encode())
136 """Execute a PowerShell query, using the cmd command,
141 # Build query
146 # Ask the powershell manager to process the query
147 stdout = POWERSHELL_PROCESS.query(query_cmd)
219 """Execute a query using VBS. Currently Get-WmiObject, Get-Service
256 """Execute a system query using PowerShell if it is available, and
370 query = exec_query(['Get-NetAdapter'],
374 query = exec_query(['Get-WmiObject', 'Win32_NetworkAdapter'],
380 for line in query)
616 stdout = POWERSHELL_PROCESS.query([_encapsulate_admin(command) if askadmin else command])
852 stdout = POWERSHELL_PROCESS.query([query_cmd])
952 stdout = POWERSHELL_PROCESS.query([query_cmd])