Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
Update upi-recon.py
Browse files Browse the repository at this point in the history
fix error when loading suffix file into list
  • Loading branch information
qurbat committed May 4, 2022
1 parent e6db493 commit 776beb1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions upi-recon.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"""

suffix_file = open("vpa_suffixes.txt", "r")
upi_suffix_dict = suffix_file.readlines()
upi_suffix_dict = suffix_file.read().splitlines() # read all suffixes into a list
suffix_file.close()

gpay_suffix_dict = ['okicici', 'oksbi', 'okaxis', 'okhdfcbank']

Expand Down Expand Up @@ -156,7 +157,5 @@ def address_discovery(vpa, api_url):
except KeyboardInterrupt:
print('\n[!] interrupted! stopping threads...')
exit(1)
finally:
print('[i] finished at ' + datetime.now().strftime("%d/%m/%Y %H:%M:%S"))
exit(1)
print('[i] finished at ' + datetime.now().strftime("%d/%m/%Y %H:%M:%S"))
exit(1)

0 comments on commit 776beb1

Please sign in to comment.