-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathVFSNode.py
More file actions
39 lines (28 loc) · 915 Bytes
/
VFSNode.py
File metadata and controls
39 lines (28 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! /usr/bin/env python
"""
VFSNode.py
Longer term this node will do things like offer endpoints (ftp, smb, etc)
that you can use to browse this locally, caching data where possible so as
not to hit the network
"""
from CANVASNode import CANVASNode
from exploitutils import *
class VFSNode(CANVASNode):
def __init__(self):
CANVASNode.__init__(self)
self.nodetype="VFSNode"
self.pix=""
self.activate_text()
#self.findInterfaces()
#self.findLocalHosts()
self.capabilities=["VFS", "upload", "download"]
def dir(self, directory="."):
return self.shell.dodir(directory)
def cd(self, directory):
return self.shell.chdir(directory)
def getcwd(self):
return self.shell.getcwd()
def mkdir(self, directory):
return self.shell.mkdir(directory)
if __name__=="__main__":
node=VFSNode()