(Oct-10-2017, 11:39 AM)Larz60+ Wrote: The intent is to overwrite sys.stdout -- This will redirect text to the file
remove the close
also make sure you imported sys
i need to redirect text to the file :)
the script is doing this scan network range and then save them to .txt file on linux machine and then run external python script for (eternal blues vulnerability scanner) by using this command detect_doublepulsar_smb.py --file last.txt
when i remove the close() i got an empty file and when i leave the close() i got this error
Quote:Traceback (most recent call last):
File "test.py", line 113, in <module>
lena = int(raw_input("Enter Number : "))
ValueError: I/O operation on closed file