MCPcopy Index your code
hub / github.com/USArmyResearchLab/Dshell / calculateTransfer

Method calculateTransfer

dshell/plugins/ftp/ftp.py:343–348  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

341
342
343 def calculateTransfer(self, val):
344 # calculate passive FTP data port
345 tmp = val.split(',')
346 ip = '.'.join(tmp[:4])
347 port = int(tmp[4])*256 + int(tmp[5])
348 return ip, port
349
350
351if __name__ == "__main__":

Callers 1

blob_handlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected