Skip to content

Instantly share code, notes, and snippets.

@powerexploit
Created October 23, 2021 17:15
Show Gist options
  • Save powerexploit/9407b5b0281bc65a15fd8cf0455b2aa3 to your computer and use it in GitHub Desktop.
Save powerexploit/9407b5b0281bc65a15fd8cf0455b2aa3 to your computer and use it in GitHub Desktop.
UPI_ID Extractor
#!/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