Created
October 23, 2021 17:15
-
-
Save powerexploit/9407b5b0281bc65a15fd8cf0455b2aa3 to your computer and use it in GitHub Desktop.
UPI_ID Extractor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import re | |
import requests | |
import argparse | |
import sys | |
def upi_grabber(url): | |
response= requests.get('%s' %(url)).text | |
UPI_ID = re.findall(r'[a-zA-Z0-9.\-_]{2,256}@[a-zA-Z]{2,64}',response) | |
print(UPI_ID) | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--url',help='parse the url') | |
args = parser.parse_args() | |
if args.url: | |
print("[+] Extracting UPI ID's: \n") | |
upi_grabber(args.url) | |
sys.exit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment