intrigueio / intrigue-core

Discover Your Attack Surface!
https://core.intrigue.io
Other
1.36k stars 268 forks source link

SearchSpyse Support Netblocks #413

Closed m-q-t closed 3 years ago

m-q-t commented 3 years ago

Hi team,

Please find attached in this PR, the SearchSpyse task which was modified to support netblocks. I was informed that it was a high priority to get this implemented and as such I didn't refactor the original task due to time constraints. Because of this, there are a lot of instances of DRY and because of that I will revisit the task in the future and clean it up.

As SearchSpyse doesn't accept netblocks but rather 100 IP Addresses at a time... a new helper method in services.rb was implemented which was expand_netblock(). This behaves practically the same as the lib/tasks/net_block_expand.rb however its in a form of a helper.

Best regards, Maxim