1353 Commits

Author SHA1 Message Date
ahrav b0d79180f6 [THOG-314] Add new parameter to the Init method for the source interface. (#529)
* Add new parameter to the Init method for the source interface.

* Add Oauth Token service.

* remove .test file.

* remove .test file.

* Fix param spelling.

* fix tests with new param in init

* Add missing gock lib.
2022-05-10 11:11:43 -07:00
ahrav e12432cef8 [THOG-315] Replace bytes.buffer with strings.builder. (#533)
* Replace bytes.buffer with string.builder.

* Remove profiling.

* Remove detector changes.

* ignore .test files.

* fix detectors removed.
2022-05-09 17:02:46 -07:00
Miccah edaf1e1fd3 Move GitHub integration tests behind a build flag and add unit tests (#527)
* Add unit tests and refactor some logic

* Move integration tests to a separate file behind a build flag

* Fix bugs in normalizeRepos

* Address lint errors

* Sort slices before comparing because order doesn't matter
2022-05-09 08:31:00 -07:00
Miccah 85208606bb Reorganize GitHub source (#517)
* Reorganize GitHub source

This breaks up the Chunks method into smaller sub-method calls to help
organize and better understand the logic flow. No logic has been
modified (except one obvious bug), just shuffling code around.

* Check errors and revert bug fix
2022-05-06 05:00:46 -07:00
Bill Rich 212aa9ba1e Disable tests that take too long (#524) 2022-05-04 16:37:37 -07:00
Bill Rich 6ee5c57968 Fix overlooked nil (#523)
* Fix overlooked nil

* Use default case
2022-05-04 15:45:12 -07:00
Bill Rich c78120e56f Syslog source (#500)
* Add syslog source

* only load cert/key with tls

* Cleanup

* Linting

Co-authored-by: Bill Rich <bill.rich@trufflesec.com>
2022-05-04 15:08:11 -07:00
Bill Rich 62bb3c57d3 Keep first line number for each chunk (#520) 2022-05-04 14:11:10 -07:00
Dustin Decker d217a517c0 Cleanup packages and include more detectors (#521)
* clean up duplicate packages

* include more detectors
2022-05-04 09:27:42 -07:00
Miccah 71442320ec Chunk orgs the same when authenticated as unauthenticated (#501)
Also debug log the amount of forks we find in addReposByOrg.
2022-05-02 17:26:01 -07:00
ahrav 1bd5e9d9d2 fix merge conflicts. (#497) 2022-05-02 15:04:05 -07:00
ahrav eb9d3e333c [THOG-269] Increase test coverage for git. (#496) 2022-05-02 12:47:38 -07:00
dcRUSTy a74bea0e8e fix: regex for hostnames (#494)
* fix: regex for ends with github.com

* fix: regex for hooks.zapier.com

* fix: regex for hooks.slack.com

* fix: regex for signalwire.com

* fix: regex for kanbantool.com

* fix: regex for invoiceoceam.com

* fix: regex for invoiceocean.com

* fix: regex for freshdesk.com

* fix: regex for discord.com

* fix: regex for deputy.com
2022-05-02 09:44:37 -07:00
Marlon 48a0c28d33 added new protos (#495)
* added new protos

* fix comment
2022-05-02 09:23:09 -07:00
ahrav ac6fc02f36 Fix crash when scanning with json-legacy flag on a github repo. (#491) 2022-04-29 17:28:04 -07:00
roxanne-tampus b8b9acf8bb Added zulipchat scanner (#411)
* added new protos

* added new detectors

* added zulipchat scanner

* modified regex
2022-04-29 09:54:06 -07:00
Dustin Decker 28d5396e61 Pr/371 (#490)
* added paydirtyapp scanner

* change paydirtyapp to paydirtapp

Co-authored-by: Marlon Pamisa <marlonpamisa@gmail.com>
2022-04-28 23:39:35 -07:00
valerie gale cb8fa4eb03 added mux scanner (#388) 2022-04-28 23:18:37 -07:00
Dustin Decker 40a2d8c9f4 Pr/478 (#489)
* added nightfall detector

* fix protos and improve pattern

Co-authored-by: Mildred Tosoc <mildredtosoc@gmail.com>
2022-04-28 23:11:48 -07:00
Dustin Decker 335a5212a6 invert logic for sonarcloud (#487) 2022-04-28 13:33:51 -07:00
Mildred Bernardo 6b25502509 added sportradar scanner (#379) 2022-04-23 19:19:00 -07:00
Mildred Bernardo f4ef49b448 added uptimerobot scanner (#384) 2022-04-23 19:11:30 -07:00
Marlon b37a4ecdb6 added wit scanner (#422) 2022-04-23 19:01:46 -07:00
Marlon 753815fa92 added formcraft scanner (#433) 2022-04-23 18:57:54 -07:00
Marlon 2240851037 added reachmail scanner (#421) 2022-04-23 18:53:47 -07:00
Marlon 9fe5f010aa added iexapis scanner (#418) 2022-04-23 18:52:53 -07:00
Marlon 271ad9e8b0 added chartmogul scanner (#426) 2022-04-23 18:49:37 -07:00
Marlon b4a1468cea added paperform scanner (#374) 2022-04-23 18:41:50 -07:00
Marlon fb0b11f698 added statuscake scanner (#373) 2022-04-23 18:31:18 -07:00
Marlon 06fb4cdf5d added detectify scanner (#372) 2022-04-23 18:26:43 -07:00
Marlon 0d7be1fdab added gumroad scanner (#370) 2022-04-23 18:15:54 -07:00
Marlon 0b1e673151 added disqus scanner (#369) 2022-04-23 18:09:21 -07:00
Miccah 8cd0831f77 Test Gitlab basic authentication with password and personal access token (#474) 2022-04-23 17:55:13 -07:00
ahrav 753f116c89 Fix broken test for gitlab. (#473) 2022-04-22 10:28:17 -07:00
Dustin Decker 1735892c49 fix github detector (#472) 2022-04-22 08:51:38 -07:00
Marlon 5aaa60e418 added new protos (#445) 2022-04-21 21:46:56 -07:00
roxanne-tampus 0dedefdd1b Added new detectors (#443) 2022-04-21 20:56:07 -07:00
ahrav 865bc5baf6 [THOG-248] fix broken gitlab tests (#437)
* Fix broken gitlab test.

* Close chunks chan from blocking indefinitely.

* Range over chunksCh in the event chunksCh is nil we don't run into an invalid memory address error.
Update warnings and move clone output information back.

* Remove commented out code.

* Remove .Run() because .CombinedOutput() should call .Run()

* Update test to include count check.

* Address PR comments.

* Fix merge issue.
2022-04-21 18:18:07 -07:00
roxanne-tampus 3e0e1da232 Renamed GTmetrix detector (#436)
* added new protos

* added new detectors

* Renamed mispelled detector
2022-04-21 18:02:05 -07:00
roxanne-tampus 7cfb6dddee Added fibery scanner (#409)
* added new protos

* added new detectors

* added fibery scanner

* modified method and header

* enhancement for regex and endpoint
2022-04-21 18:00:09 -07:00
roxanne-tampus 02fb786a03 Added typetalk scanner (#410)
* added new protos

* added new detectors

* added typetalk scanner

* enhanced endpoint
2022-04-21 17:57:51 -07:00
ahrav 3b35404238 [THOG-204] Use oauth2 as username when cloning (#441)
* Use oauth2 as the username for cloning private repos with a token.

* Update username string.

* Only set user to "placeholder" if no username is present.
2022-04-21 17:49:08 -07:00
trufflesteeeve b5743277a3 Detectors that fail verification should still report the unverified secret (#440)
* Detectors that fail verification should still report the unverified secret

* fixup - change microsoft webhook keywords, filter false positives for old github detector

* fixup - fix typo
2022-04-21 15:32:26 -07:00
Dustin Decker 913c75db15 Add 12 more detecotrs 2022-04-21 15:31:17 -07:00
roxanne-tampus 6d82056a9b Added voodoosms scanner (#408)
* added new protos

* added new detectors

* added voodoosms scanner
2022-04-21 15:28:27 -07:00
roxanne-tampus 853e434518 Added flowdock scanner (#407)
* added new protos

* added new detectors

* added flowdock scanner

* added params
2022-04-21 15:28:17 -07:00
roxanne-tampus 9b0c3f2901 Added flowdash scanner (#406)
* added new protos

* added new detectors

* added flowdash scanner

* updated the endpoint
2022-04-21 15:27:58 -07:00
roxanne-tampus c49744c278 Added cloudsmith scanner (#405)
* added new protos

* added new detectors

* added cloudsmith scanner

* enhanced regex and added version to endpoint
2022-04-21 15:27:40 -07:00
roxanne-tampus bbff98487d Added packagecloud scanner (#404)
* added new protos

* added new detectors

* added packagecloud scanner

* updated regex
2022-04-21 15:27:14 -07:00
roxanne-tampus 6c1b3c65f8 Added parsehub scanner (#403)
* added new protos

* added new detectors

* added parsehub scanner

* enhanced enpoint
2022-04-21 15:26:32 -07:00