Commit Graph

194 Commits

Author SHA1 Message Date
Brendan LE GLAUNEC 89647ae457 Fix timeout and unresponsive cameras being detected as successful & add error message
Update unit tests

Fix deadlock in libcurl for tests to stop failing randomly
2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC 216d30fd45 Add issue template 2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC 82e36e1fd3 Update file architecture to make go install work 2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC 34994e615a Fix in README.md 2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC 6daceaeb2b Add glide package manager 2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC 50da5ea82d Fix usage of custom dictionaries in docker image 2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC da7fb6cd49 Add more credentials to default dictionary 2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC cfa90b36d8 Fix output when logs enabled 2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC 72fb21b132 Add multi stage docker build
Upgrade travis docker version
2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC 948bfce5a0 Removed Output part from README 2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC 049a43ace2 Add gif to README.md 2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC 1c845d2b3c Improve UX - Add spinner and messages
Improve UX - Add number of streams being attacked
2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC cb74761675 Add unit tests and functional test in CI
* Unit tests Discover 90%

The NmapRun function needs a refacto to make it use adaptors instead of directly calling exec.Command, exec.Command.StdoutPipe, exec.Command.Start, bufio.Scanner.Scan and bufio.Scanner.Err
It makes me uncomfortable to push a test file that covers only 90%, but it's better than none, and the 10 missing %s are not very error-prone so it should be okay to delay this part a bit. For now it's more urgent to test as much of the code as possible

* Unit tests Helpers 100%

* Unit tests Loaders 100% - Attack 85%

Once again, the Attack functions are not as simple as the rest to unit test, so I will refacto all of this to use a CURL adaptor later, but for now the total is of 88.6% of coverage, which is good enough for something I spent 2 hours on

* Add testing to CI validation process

* CI now does functional testing with RTSPATT

* Change travis language to bash
2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC be63c6a231 Add package overview & fix dead link 2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC eab18925c7 Add godoc badge and remove temporary images 2018-03-12 15:04:00 +01:00
Brendan LE GLAUNEC 4c9d23acb1 Improve comments & improve cameraccess speed 2018-03-12 15:00:02 +01:00
Brendan LE GLAUNEC ecdac00145 Move cameradar to root folder 2018-03-12 14:59:59 +01:00
Brendan LE GLAUNEC 2555a86f5f Add known bugs to README & update examples 2018-03-12 14:59:56 +01:00
Brendan LE GLAUNEC ebce965730 Remove debug logs from previous PR 2018-03-12 14:59:50 +01:00
Brendan LE GLAUNEC a2af1329d7 Fix bug for some cameras running gst rtsp server 2018-03-12 14:59:47 +01:00
Brendan LE GLAUNEC bf3a967fad Fix entrypoint ignoring parameters & fix default dictionary values 2018-03-12 14:59:44 +01:00
Brendan LE GLAUNEC 3dcc80a0e8 Fixes in readme and contributing.md (#77) (#79)
Remove codacy badge
2018-03-12 14:59:38 +01:00
Brendan LE GLAUNEC 624ff8bc1b Fixes in readme and contributing.md (#77) 2018-03-12 14:59:22 +01:00
Brendan LE GLAUNEC 59f51f6149 Cameradar becomes a golang library and cameraccess replaces the old cameradar (#75)
* Better performance
* Better UX
* Lighter docker image
* More control over the features
* Suited for devs
* Better documentation

* No tests yet
2018-03-12 14:59:16 +01:00
Brendan LE GLAUNEC b4090b8301 Improve README.md 2018-03-12 14:59:13 +01:00
Brendan LE GLAUNEC 02b58ad1a9 Rename bruteforce to dictionary attack to avoid confusion (#71) 2018-03-12 14:59:09 +01:00
Brendan LE GLAUNEC 81b7e893dc Rename subnet to target to avoid confusion (#70) 2018-03-12 14:59:06 +01:00
Brendan LE GLAUNEC 8c6c94cc34 Update README.md (#69)
Add more precision to the subnetwork (-s) argument to cameradar to improve user experience
2018-03-12 14:59:03 +01:00
Brendan LE GLAUNEC fac60679bc Rename CONTRIBUTION.md to CONTRIBUTING.md (#66) 2018-03-12 14:58:59 +01:00
Brendan LE GLAUNEC 55122d523c Add new RTSP routes (#67) 2018-03-12 14:58:56 +01:00
Brendan LE GLAUNEC 5825f14ef1 Fix golang style issues (#65)
In writeResult.go, two error strings began with an uppercase letter and ended with a dot.
See https://github.com/golang/go/wiki/Errors for more information
2018-03-12 14:58:53 +01:00
Brendan LE GLAUNEC 60c2f1f18c Update Codacy badge URL 2018-03-12 14:58:50 +01:00
Brendan LE GLAUNEC 44e3911e01 Usage of the develop branch unrestricted
I decided that putting a `2.0.0` branch in place would require too much work as it would mean maintaining two versions of Cameradar at the same time. Thus, we will just keep the normal workflow as we used to.
2018-03-12 14:58:47 +01:00
Brendan LE GLAUNEC 28f642d39f Fix automatic Docker Hub deployment
The previous travis script was only tagging latest and not the
tag of the branch, which resulted in outdated tags on the DockerHub
2018-03-12 14:58:43 +01:00
Brendan LE GLAUNEC 4dfe99064b Release 1.1.4 2018-03-12 14:58:40 +01:00
Brendan LE GLAUNEC 097cbe3df3 Rename MySQL table & Update CONTRIBUTION.md for 2.0.0 2018-03-12 14:58:37 +01:00
Brendan LE GLAUNEC 3123e34076 Improve docker image usage 2018-03-12 14:58:33 +01:00
Brendan LE GLAUNEC c334ea9f91 Fix critical functional test bug 2018-03-12 14:58:29 +01:00
Brendan LE GLAUNEC bfecea00ad Add contribution doc & update readme & dictionaries 2018-03-12 14:58:26 +01:00
Brendan LE GLAUNEC 1c7c462771 Add code quality check & fixed output format 2018-03-12 14:58:23 +01:00
Brendan LE GLAUNEC 308ba24e90 Improve output & remove legacy code 2018-03-12 14:58:16 +01:00
Brendan LE GLAUNEC 4a8f6550af Put Gitflow back in place 2018-03-12 14:58:13 +01:00
Brendan LE GLAUNEC c56cce6319 Update contribution format guidelines 2018-03-12 14:58:10 +01:00
Brendan LE GLAUNEC 832e4f9fa2 Update contribution info 2018-03-12 14:58:06 +01:00
Brendan LE GLAUNEC 63008d19af Enhanced the latest release badge
Replaced the raw version with one that will get the latest tag automatically and update the badge.
2018-03-12 14:58:03 +01:00
Brendan LE GLAUNEC fbd78301a0 Travis functional testing & minor changes 2018-03-12 14:57:59 +01:00
Brendan LE GLAUNEC 2961d68200 Travis build test integration & changes to docker deployment 2018-03-12 14:57:55 +01:00
Brendan LE GLAUNEC f86683d9ca Add docker pulls badge to README.md 2018-03-12 14:57:52 +01:00
Brendan LE GLAUNEC 58bcfb9ee5 Fix functional tests & multiple bugfixes & use CES 2018-03-12 14:57:49 +01:00
Brendan LE GLAUNEC 5be5124e70 Remove unnecessary null pointer checks 2018-03-12 14:57:46 +01:00