Commit Graph

194 Commits

Author SHA1 Message Date
Ben Allen
043fa32aef exit script if there are problems with the credentials. 2017-07-11 15:58:21 -05:00
Ben Allen
5bdd5d8e54 add account number to CSV output. 2017-07-11 15:57:33 -05:00
Ben Allen
df47f94cf9 change name of temp file so that it's random
Allows multiple instances of prowler to run in parallel (eg. via xargs
-P ).
Also, add trap handler to remove temp file if interrupted.
2017-07-11 15:57:33 -05:00
Ben Allen
7b6f168d8c update output for check 1.22 to handle multiple users 2017-07-11 15:57:16 -05:00
Ben Allen
cf9a73d539 gather count of topics per region, even when unable to list subscribers. 2017-07-11 15:52:21 -05:00
Toni de la Fuente
ae6ebfcafd Merge pull request #59 from toniblyx/master
Updated README with shortlist of features and parallel command
2017-07-11 16:51:59 -04:00
Toni de la Fuente
52f88abd33 Update README.md
Added short list of features and parallel command from @MrSecure
2017-07-11 16:50:55 -04:00
Ben Allen
95a4b56575 swallow error message for list-subscriptions-by-topic 2017-07-11 15:47:06 -05:00
Toni de la Fuente
1625bbcf19 Merge pull request #5 from Alfresco/master
get all new changes
2017-07-11 16:39:25 -04:00
Toni de la Fuente
59c8c8a9c5 Merge pull request #58 from MrSecure/parallelism
Parallelism Tweaks
2017-07-11 16:36:42 -04:00
Ben Allen
5c335b28b2 handle permission failure on list-subscriptions-by-topic gracefully 2017-07-11 15:36:35 -05:00
Toni de la Fuente
96ec896179 Merge pull request #57 from MrSecure/check122-multiple-users
update output for check 1.22 to handle multiple users
2017-07-11 16:33:02 -04:00
Ben Allen
8913ca84d0 exit script if there are problems with the credentials. 2017-07-11 14:59:20 -05:00
Ben Allen
cdbcac5251 add account number to CSV output. 2017-07-07 16:35:32 -05:00
Ben Allen
1e3985d3b4 change name of temp file so that it's random
Allows multiple instances of prowler to run in parallel (eg. via xargs
-P ).
Also, add trap handler to remove temp file if interrupted.
2017-07-07 16:33:42 -05:00
Ben Allen
d1d0f9edf0 update output for check 1.22 to handle multiple users 2017-07-06 14:14:57 -05:00
Toni de la Fuente
62dfd9a17b Merge pull request #55 from MrSecure/spelling
fix spelling error in CSV output
2017-06-27 12:53:06 -04:00
Ben Allen
d0f587fd55 fix spelling error in CSV output 2017-06-27 11:31:04 -05:00
Toni de la Fuente
765be03111 Merge pull request #53 from MrSecure/add-csv-out
Add csv output mode and code clean up
2017-06-27 10:11:18 -04:00
Ben Allen
94efa3028a clean up CSV output for 1.23 when multiple users match 2017-06-27 09:06:29 -05:00
Ben Allen
085ddae3b9 capture script start time using well supported date arguments 2017-06-27 08:52:55 -05:00
Ben Allen
8232a07437 clean up usage of expr 2017-06-26 17:06:17 -05:00
Ben Allen
e9122b3453 move CSV separator character to a variable 2017-06-26 16:50:57 -05:00
Ben Allen
43527302ac remove commas from output text 2017-06-26 16:45:17 -05:00
Ben Allen
85e620345c remove -b flag, since -M covers it 2017-06-26 16:35:56 -05:00
Ben Allen
8cba6df362 add output mode to README 2017-06-26 16:34:02 -05:00
Ben Allen
1eee23e4e1 documentation & formatting updates
* add M switch to help, readme
* remove title_id data from mono / color output lines
2017-06-26 16:21:07 -05:00
Ben Allen
e66bb7f1ab tiny output tweaks 2017-06-26 16:13:16 -05:00
Ben Allen
9a44414a8e more CSV tweaks
* handle multi-region tests cleanly
* clean up report generation info
2017-06-26 16:05:27 -05:00
Ben Allen
2f16ee4e6e add SCORED column to CSV output; handle section tiles properly 2017-06-26 15:40:28 -05:00
Ben Allen
acb889a267 Initial CSV Support
* rename text output functions to follow convention
* send appropriate data to stderr for progress monitoring
* send results to stdout in pipe-delimited format
* skip banner, etc. when running in CSV mode
2017-06-26 15:32:59 -05:00
Ben Allen
6334e19730 pull ID out of title, and pass it to text_title 2017-06-26 14:53:45 -05:00
Ben Allen
57034ab47d move titles from echo to output function 2017-06-26 13:42:00 -05:00
Ben Allen
f3be4f4c38 cleaning up output messages, clean up logic on chec14 2017-06-26 13:24:45 -05:00
Ben Allen
169eb51b0d switch WARNING output to use text_warn function 2017-06-26 13:09:46 -05:00
Ben Allen
a3a23eb8dc move output formatting functions up in file; use them earlier 2017-06-26 10:54:12 -05:00
Ben Allen
3fadc1cce1 convert NOTICE text to use output function 2017-06-26 10:48:56 -05:00
Ben Allen
029bce9b5b wrap all notice blocks to be single-line ready 2017-06-26 10:38:35 -05:00
Ben Allen
9bb8f0537a finish up first pass of conversion to text_ok for passed checks 2017-06-26 10:30:33 -05:00
Ben Allen
408cc78499 begin transition to function-based output - starting with OK responses for check1* 2017-06-26 10:26:56 -05:00
Ben Allen
045e88038f Clean up ordering; add Mode flag
refactor callCheck case statement to move cleanTemp && exit to end
move calls to functions to after all functions are defined
add -M flag to handle mode changing: text, mono, csv
2017-06-22 16:16:44 -05:00
Toni de la Fuente
783fc715fb Merge pull request #51 from toniblyx/master
fixed issue #44
2017-06-15 18:28:02 -04:00
Toni de la Fuente
1d53bb26a6 fixed check 2.8 error with default key 2017-06-15 18:25:09 -04:00
Toni de la Fuente
8c4da8de2a Merge pull request #4 from Alfresco/master
sync with monocrome mode
2017-06-15 08:49:26 -04:00
Toni de la Fuente
1899866225 Merge pull request #50 from MrSecure/monochrome
Add Monochrome Mode and other fixes
2017-06-15 08:44:12 -04:00
MrSecure
efbf37faaf Add switch for basic mode to README. 2017-06-14 22:03:35 -05:00
Ben Allen
b1a67dfd03 change BAD back to red; simpler logic to decide if color code should show 2017-06-14 21:36:53 -05:00
Ben Allen
2141bf165d more color/mono simplifications 2017-06-14 21:34:41 -05:00
Ben Allen
3bd8a0f8af simplify some of the color/mono checks now that the escape characters are really gone 2017-06-14 21:29:02 -05:00
Ben Allen
023273fa11 fix check 2.4 to find trails when the home region is not the API region 2017-06-14 21:22:13 -05:00