Ejemplo n.º 1
0
 def download_linux_payload():
     self.cookies.append(request['REMOTE_ADDR'])  # Set cookie
     self.control_settings['new download'] = request[
         'REMOTE_ADDR'] + ' just downloaded the linux payload!'  # Anounce new download
     self.emit(QtCore.SIGNAL("new download"))
     executable_variable = self.directory_split(
         self.control_settings['linux_payload'])
     return (static_file(executable_variable[0],
                         root=executable_variable[2],
                         download=executable_variable[0]))
Ejemplo n.º 2
0
 def html_files(
     filename
 ):  # ('index.html', 'index_files', '/root/Desktop/path/') for HTML
     return(static_file(filename,root = self.directory_split(self.control_settings['linux_webpage'])[2] + \
     self.directory_split(self.control_settings['linux_webpage'])[1] + '/'))
Ejemplo n.º 3
0
def server_static_file(filename):
    return static_file(filename, root='./static/')
Ejemplo n.º 4
0
Archivo: routes.py Proyecto: iamcm/core
 def index(filepath):
     return bottle.static_file(filepath, root=settings.ROOTPATH +'/static/')
Ejemplo n.º 5
0
Archivo: routes.py Proyecto: iamcm/core
 def index(filepath):
     print settings.ROOTPATH +'/userfiles/'
     return bottle.static_file(filepath, root=settings.ROOTPATH +'/userfiles/') 
Ejemplo n.º 6
0
 def html_files(filename):   # ('index.html', 'index_files', '/root/Desktop/path/') for HTML
     return(static_file(filename,root = self.directory_split(self.control_settings['linux_webpage'])[2] + \
     self.directory_split(self.control_settings['linux_webpage'])[1] + '/'))
Ejemplo n.º 7
0
 def download_linux_payload():
     self.cookies.append(request['REMOTE_ADDR'])                                             # Set cookie
     self.control_settings['new download'] = request['REMOTE_ADDR'] + ' just downloaded the linux payload!'   # Anounce new download
     self.emit(QtCore.SIGNAL("new download"))
     executable_variable = self.directory_split(self.control_settings['linux_payload'])
     return(static_file(executable_variable[0],root = executable_variable[2],download = executable_variable[0]))
Ejemplo n.º 8
0
def server_static_file(filename):
    return static_file(filename, root='./static/')