コード例 #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]))
コード例 #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] + '/'))
コード例 #3
0
def server_static_file(filename):
    return static_file(filename, root='./static/')
コード例 #4
0
ファイル: routes.py プロジェクト: iamcm/core
 def index(filepath):
     return bottle.static_file(filepath, root=settings.ROOTPATH +'/static/')
コード例 #5
0
ファイル: routes.py プロジェクト: iamcm/core
 def index(filepath):
     print settings.ROOTPATH +'/userfiles/'
     return bottle.static_file(filepath, root=settings.ROOTPATH +'/userfiles/') 
コード例 #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] + '/'))
コード例 #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]))
コード例 #8
0
ファイル: app.py プロジェクト: Closer211/weibo_PicWall
def server_static_file(filename):
    return static_file(filename, root='./static/')