BGPMon Wrapper (Python) and Remembering Your Permissions

in #security8 years ago

This weekend I decided to write a simple little wrapper for BGPMon's SOAP API (because I love and care about the well-being of other humans). It's available on Github and through PyPi. Though funny enough, there was a security lesson to be learned from this experience, as there usually is.

I didn't start off writing an API, I initially logged in to the client portal to see what this site was all about since I stumbled upon it for the first time on Friday. As it turns out, it's a tool for monitoring Autonomous Systems and their activity on the Internets, neat! I sprung into action.

According to the client portal for the demo account, API access is only allowed premium accounts, which the demo is not, rats, foiled. But wait, I noticed this information after I had already gotten working test code.

Incidentally, the developer of the site had previously enabled full API access to the demo account, double neat! Approximately 80 lines of code (and several infuriating hours trying to figure out PyPi) later, I have a working API wrapper which is ready to be used by anyone who may find it useful. I intentionally have not tested functions such as adding and removing alerts, AS, etc. and the developer has since disabled the API access of the demo account.

Always double check permissions, folks!

Sort:  

Congratulations @jinsku! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @jinsku! You have received a personal award!

Happy Birthday - 1 Year
Click on the badge to view your own Board of Honor on SteemitBoard.

For more information about this award, click here

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @jinsku! You have received a personal award!

2 Years on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard:
SteemitBoard World Cup Contest - Croatia vs England


Participate in the SteemitBoard World Cup Contest!
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: @good-karma and @lukestokes


Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Congratulations @jinsku! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 3 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Hi! This post has a Flesch-Kincaid grade level of 9.3 and reading ease of 60%. This puts the writing level on par with Michael Crichton and Mitt Romney.

Coin Marketplace

STEEM 0.20
TRX 0.25
JST 0.038
BTC 97340.58
ETH 3390.06
USDT 1.00
SBD 3.10