honoki / bbrf-client

The Bug Bounty Reconnaissance Framework (BBRF) can help you coordinate your reconnaissance workflows across multiple devices
MIT License
613 stars 90 forks source link

Unable to remove blacklist element #25

Closed xqd-ai closed 3 years ago

xqd-ai commented 3 years ago

when trying to delete a blacklist element from a program, I get bellow error

$ bbrf blacklist add www.example.com -p example.com
$ bbrf blacklist remove www.example.com -p example.com
Traceback (most recent call last):
  File "/root/bbrf-client/bbrf.py", line 935, in <module>
    result = bbrf.run()
  File "/root/bbrf-client/bbrf.py", line 884, in run
    self.remove_blacklist(self.arguments['<element>'])
  File "/root/bbrf-client/bbrf.py", line 694, in remove_blacklist
    blacklist.delete(e)
AttributeError: 'list' object has no attribute 'delete'
xqd-ai commented 3 years ago

I fixed the error by changing line 694's statment 'blacklist.delete(e)' to 'blacklist.remove(e)' and it worked

honoki commented 3 years ago

Thanks for pointing this out. I have fixed this and added some tests to my test suite so the scenario is properly covered.