Conversation
some sample scripts for interacting with Posh-Shodan: Added Test-API.ps1 which makes sure the Posh-Shodan wrapper and Shodan API are working correctly. Added Simple-Query.ps1, a wrapper for the Posh-Shodan library that helps users make non-token queries and parse a simple subset of the results
upload some sample queries
sample-queries.ps1 provides new users with inspirational / sample queries to get their feet wet with the Shodan API save-output.ps1 provides new users with ways to save their Shodan API queries to easily parsable file formats
modify save output and add two new queries simple_netcam_search is a no token search for belkin netcams simple_airlink_search is a no token search for arilink webcam servers
add new sample searches
Consolidate and fix errors in Sample-Queries.ps1
|
Any update on merging this branch @darkoperator ? |
|
Can you make them follow https://github.com/PoshCode/PowerShellPracticeAndStyle the use of echo is just ugly in a PS script, also make sure it follows the same indentation, brace and other styles of the module it self. Thanks you for the effort and work. looking forward to merging it once they are modified.
|
|
@darkoperator Thank you for the feedback, please see edits |
|
Any update? |
|
I have not taken a look, will do today.
|
|
One more set of recommendations, instead of write-host each property better to output and object, since it is PSv3 and above you can create an ordered hash table ([ordered]@{}) out each property as a member of the hash table and then do new-object -typename psobject -properties that way you return an object. that can then be manipulated. on the relative path better to use $psscriptroot\file than .\file |
Add some sample scripts / templates for programmatically using the wrapper