Skip to content

Instantly share code, notes, and snippets.

@abbyck
Created July 9, 2022 08:03
Show Gist options
  • Save abbyck/36da27e8f4223d9d9072ff0de3058175 to your computer and use it in GitHub Desktop.
Save abbyck/36da27e8f4223d9d9072ff0de3058175 to your computer and use it in GitHub Desktop.
Hack curl snippets

Check BSNL data usage without login

No need to login

curl -s 'https://redirect1.bbportal.bsnl.co.in/portal/fetchUserQuotaPM.do' -X POST | jq '.rows[]'

Delhivery tracking

Quick refresh (replace with your AWB)

curl -s 'https://dlv-web-api.delhivery.com/v3/track?wbn=<replace with ur AWB number>' | jq '.data[0].scans[] |  {cityLocation, scanNslRemark} | join("- ")'

ECCS Customs clearing

Quick refresh (replace with your Courier and AWB)

curl -s -d "hawbNo=31451662432&courierName=ARAMEX+&courierName-flexdatalist=ARAMEX+" -X POST https://eccsmobility.cbic.gov.in/eicimobility/importResult | pup 'tbody > tr > td:nth-child(2) json{}' -i 4 | jq '.[4].text'

IPINFO

curl ipinfo.io

Quick public IP

curl https://ipinfo.io/ip'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment