MCPcopy Create free account
hub / github.com/RoganDawes/P4wnP1 / ls_native2

Method ls_native2

hidtools/backdoor/FileSystem.py:168–175  ·  view source on GitHub ↗
(args = [])

Source from the content-addressed store, hash-verified

166
167 @staticmethod
168 def ls_native2(args = []):
169 res = ""
170 from subprocess import PIPE, Popen
171
172 pls = Popen(["ls"]+args, stdout=PIPE,
173 stderr=PIPE,
174 close_fds=True)
175 return [fn.rstrip("\n") for fn in pls.stdout.readlines()] + [fn.rstrip("\n") for fn in pls.stderr.readlines()]
176
177 @staticmethod
178 def readFile(filename):

Callers 1

do_llsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected