MCPcopy Create free account
hub / github.com/fortra/impacket / precmd

Method precmd

impacket/examples/smbclient.py:85–93  ·  view source on GitHub ↗
(self,line)

Source from the content-addressed store, hash-verified

83 pass
84
85 def precmd(self,line):
86 # switch to unicode
87 if self.outputfile is not None:
88 f = open(self.outputfile, 'a')
89 f.write('> ' + line + "\n")
90 f.close()
91 if PY2:
92 return line.decode('utf-8')
93 return line
94
95 def onecmd(self,s):
96 retVal = False

Callers

nothing calls this directly

Calls 3

writeMethod · 0.45
closeMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected