linux - How do I use a text file as input in Python? -
this may seem simple question first time have touched python bear me.
i created simple bash script smtp enumeration , have been trying convert python script. bash script was:
and far python script have this:
but right now, have type in each username individually once , script closes. have created simple text file bunch of possible usernames , want able use usernames in file instead of typing them in individually 1 one not sure on how that.
with open('users.txt') users: user in users: s.send(...)
Comments
Post a Comment