~gotlou/phone_nums_lookup_cli

46cb3b569b7795d077512628c2ace230cf47858e — Saksham Mittal 1 year, 8 months ago
Initial commit
3 files changed, 168 insertions(+), 0 deletions(-)

A all_suffixes.txt
A pop_suffixes.txt
A upi.sh
A  => all_suffixes.txt +129 -0
@@ 1,129 @@
abfspay
airtel
airtelpaymentsbank
albk
allahabadbank
allbank
andb
apb
apl
aubank
axis
axisb
axisbank
axisgo
axl
bandhan
barodampay
barodapay
birla
boi
cbin
cboi
centralbank
cmsidfc
cnrb
csbcash
csbpay
cub
dbs
dcb
denabank
dlb
dnsbank
eazypay
esaf
equitas
ezeepay
fbl
federal
finobank
freecharge
hdfcbank
hdfcbankjd
hsbc
ibl
icici
icicibank
idbi
idbibank
idfc
idfcbank
idfcnetc
ikwik
imobile
indbank
indianbank
indianbk
indus
iob
janabank
jio
jkb
jsbp
jupiteraxis
karb
karurvysyabank
kaypay
kbl
kmb
kmbl
kotak
kvb
kvbank
lime
lvb
lvbank
mahb
myicici
nsdl
obc
okaxis
okbizaxis
okhdfcbank
okicici
oksbi
paytm
payzapp
pingpay
pnb
pockets
postbank
psb
purz
rajgovhdfcbank
rbl
rmhdfcbank
sbi
sc
scb
scbl
scmobile
sib
srcb
synd
syndbank
syndicate
tapicici
timecosmos
tjsb
ubi
uboi
uco
unionbank
unionbankofindia
united
upi
utbi
utkarshbank
vijayabank
vijb
vjb
waaxis
wahdfcbank
waicici
wasbi
yapl
ybl
yesbank
yesbankltd
\ No newline at end of file

A  => pop_suffixes.txt +15 -0
@@ 1,15 @@
paytm
upi
ybl
apl
okaxis
okbizaxis
okhdfcbank
okicici
oksbi
waaxis
wahdfcbank
waicici
wasbi
freecharge
payzapp

A  => upi.sh +24 -0
@@ 1,24 @@
#!/bin/bash

if [ $# -eq 0 ]
then
	echo "Missing arguments"
	exit 0
fi

list=$(cat pop_suffixes.txt)
if [[ $2 == "all" ]]
then
	list=$(cat all_suffixes.txt)
fi

for l in $list
do
	status=$(http https://upibankvalidator.com/api/upiValidation?upi=$1@$l upi=$1@$l)
	if [ $(echo $status | jq '.isUpiRegistered') == "true" ];
	then
		echo $1 
		echo $(echo $status | jq '.name')
		break
	fi
done