Skip to content

Instantly share code, notes, and snippets.

@powerexploit
Created October 23, 2021 17:15
Show Gist options
  • Select an option

  • Save powerexploit/9407b5b0281bc65a15fd8cf0455b2aa3 to your computer and use it in GitHub Desktop.

Select an option

Save powerexploit/9407b5b0281bc65a15fd8cf0455b2aa3 to your computer and use it in GitHub Desktop.

Revisions

  1. powerexploit created this gist Oct 23, 2021.
    20 changes: 20 additions & 0 deletions UPIGen.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #!/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()