Beispiel #1
0
def myvbox(file):


    vm = VBoxAuto('winxp')
   
    if not vm.check():
        print 'Error initializing'
        sys.exit()
       
    # copy the malware to the shared folder
    try:
        shutil.copy(file, vbox_hostpath)
    except Exception, e:
        print 'Cannot copy: %s' % e
        return
Beispiel #2
0
def myvbox(file):


    #if len(sys.argv) != 2:
        #print 'Usage: %s <file>' % argv[0]
        #return 0

    # select your VM to work with
    vm = VBoxAuto('winxp')
   
    if not vm.check():
        print 'Error initializing'
        sys.exit()
       
    #file = sys.argv[1]
       
    # copy the malware to the shared folder
    try:
        shutil.copy(file, vbox_hostpath)
    except Exception, e:
        print 'Cannot copy: %s' % e
        return