Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. import requests
  2. def main(social, infile, outfile):
  3. with open(infile,'r') as f:
  4. name=f.read().split('\n')
  5. possible_user = list()
  6. for i in range(1,len(name)):
  7. try:
  8. url = (social+name[i])
  9. r = requests.post(url)
  10. if r.status_code == 404:
  11. possible_user.append(str(name[i]))
  12. print('test['+str(i)+'] '+name[i]+' is not in use')
  13. else:
  14. print('test['+str(i)+'] '+name[i]+' is in use')
  15. except:
  16. print('An error has occured trying next instance....')
  17. possible_user="\n".join(possible_user)
  18. with open(outfile,'w') as f:
  19. f.write(possible_user)
  20. print('''
  21. ===============================================================
  22. # __ _ _ __ #
  23. #/ _\ ___ ___(_) __ _| | / _\ ___ __ _ _ __ _ __ ___ _ __ #
  24. #\ \ / _ \ / __| |/ _` | | \ \ / __/ _` | '_ \| '_ \ / _ \ '__|#
  25. #_\ \ (_) | (__| | (_| | | _\ \ (_| (_| | | | | | | | __/ | #
  26. #\__/\___/ \___|_|\__,_|_| \__/\___\__,_|_| |_|_| |_|\___|_| #
  27. # By:Pete McDaniel #
  28. ================================================================
  29.  
  30. Want to see if somebody owns an account on social media?
  31.  
  32. Select your option:
  33. [1]FaceBook
  34. [2]Twitter
  35. [3]Instagram
  36. ''')
  37. while True:
  38. social=input("Enter your choice:")
  39. if social == str(1) or social == str(2) or social == str(3):
  40. if social == str(1):
  41. social = 'https://facebook.com/'
  42. elif social == str(2):
  43. social = 'https://twitter.com/'
  44. elif social == str(3):
  45. social = 'https://instagram.com/'
  46. break
  47. else:
  48. print("you entered a incorrect option...")
  49. while True:
  50. infile=input("Enter the worldlist file path(must be a .txt file:")
  51. if '.txt' not in infile:
  52. print('must be a .txt file')
  53. else:
  54. break
  55. while True:
  56. outfile=input("Enter the file where the info will be stored(must be a .txt file):")
  57. if '.txt' not in outfile:
  58. print('must be a .txt file')
  59. else:
  60. break
  61. main(social,infile,outfile)
  62. print('process complete check results in:'+outfile)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement