# Path: config/config.py



import os
import shutil
import subprocess
import logging
			import requests
			import requests
from config.config import MaildbRoot, enableMAS, enableCuckoo
			from config.config import MASRoot
			from config.config import cuckooUrl, cuckooPort, cuckooMachine
			from config.config import cuckooUrl, cuckooPort, cuckooMachine
#!/usr/bin/env python
'''
Copyright (C) 2012-2013 Kevin Breen.
This file is part of the Maildb web application
See the 'LICENSE' File for copying permission.
'''


class sandboxSubmit():
	def submitMAS(self, profile, filename, msg_id):
		if enableMAS == '1':
			fileName = os.path.join(MaildbRoot, "store", msg_id,"attatchments", filename)
			profilePath = os.path.join(MASRoot, profile, "src", filename)
			shutil.copyfile(fileName, profilePath)
			logging.info('File %s Submitted to MAS', fileName)
	def submitCuckoo(self, user, pwd, server):
		pass

class cuckooAPI():


	def submitFile(self, fileName):
		if enableCuckoo == '1':
			url = "http://"+cuckooUrl+":"+cuckooPort+"/tasks/create/file"
			options = {'file': fileName, 'machine':cuckooMachine} 
			capi = requests.post(url, data=options)
			return True
		
	def submitURL(self, malUrl):

# Path: config/config.py



# Path: core/sandbox.py
import os
import shutil
import subprocess
import logging
			import requests
			import requests
from config.config import MaildbRoot, enableMAS, enableCuckoo
			from config.config import MASRoot
			from config.config import cuckooUrl, cuckooPort, cuckooMachine
			from config.config import cuckooUrl, cuckooPort, cuckooMachine

#!/usr/bin/env python
'''
Copyright (C) 2012-2013 Kevin Breen.
This file is part of the Maildb web application
See the 'LICENSE' File for copying permission.
'''


class sandboxSubmit():
	def submitMAS(self, profile, filename, msg_id):
		if enableMAS == '1':
			fileName = os.path.join(MaildbRoot, "store", msg_id,"attatchments", filename)
			profilePath = os.path.join(MASRoot, profile, "src", filename)
			shutil.copyfile(fileName, profilePath)
			logging.info('File %s Submitted to MAS', fileName)
	def submitCuckoo(self, user, pwd, server):
		pass

class cuckooAPI():


	def submitFile(self, fileName):
		if enableCuckoo == '1':
			url = "http://"+cuckooUrl+":"+cuckooPort+"/tasks/create/file"
			options = {'file': fileName, 'machine':cuckooMachine} 
			capi = requests.post(url, data=options)
			return True
		
	def submitURL(self, malUrl):

		if enableCuckoo == '1':