Move repository to Ullaakut
This commit is contained in:
committed by
Brendan Le Glaunec
parent
8289f1edda
commit
5a0ee4aaa7
+1
-1
@@ -43,7 +43,7 @@ When your pull request is created, GitHub will first check for conflicts, Codacy
|
||||
|
||||
If GitHub reports conflicts with the develop branch, you should resolve them by yourself using your git command-line interface. The easiest and cleanest way is to use `git rebase -i origin/develop` and follow git's instructions.
|
||||
If Codacy reports new issues, they will be added in the comments of the PR to let you know what you should fix.
|
||||
If Travis CI reports errors, you should be able to view the logs [by clicking here](https://travis-ci.org/EtixLabs/cameradar/builds) and you should fix it. No PR will be merged before all tests are passing correctly.
|
||||
If Travis CI reports errors, you should be able to view the logs [by clicking here](https://travis-ci.org/Ullaakut/cameradar/builds) and you should fix it. No PR will be merged before all tests are passing correctly.
|
||||
|
||||
### Coding guidelines
|
||||
|
||||
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
# Build stage
|
||||
FROM golang:alpine AS build-env
|
||||
|
||||
COPY . /go/src/github.com/EtixLabs/cameradar
|
||||
WORKDIR /go/src/github.com/EtixLabs/cameradar/cameradar
|
||||
COPY . /go/src/github.com/Ullaakut/cameradar
|
||||
WORKDIR /go/src/github.com/Ullaakut/cameradar/cameradar
|
||||
|
||||
RUN apk update && \
|
||||
apk upgrade && \
|
||||
@@ -25,6 +25,6 @@ RUN apk --update add --no-cache nmap nmap-nselibs nmap-scripts \
|
||||
curl-dev
|
||||
|
||||
WORKDIR /app/cameradar
|
||||
COPY --from=build-env /go/src/github.com/EtixLabs/cameradar/dictionaries/ /app/dictionaries/
|
||||
COPY --from=build-env /go/src/github.com/EtixLabs/cameradar/cameradar/ /app/cameradar/
|
||||
COPY --from=build-env /go/src/github.com/Ullaakut/cameradar/dictionaries/ /app/dictionaries/
|
||||
COPY --from=build-env /go/src/github.com/Ullaakut/cameradar/cameradar/ /app/cameradar/
|
||||
ENTRYPOINT ["/app/cameradar/cameradar", "-r", "/app/dictionaries/routes", "-c", "/app/dictionaries/credentials.json"]
|
||||
@@ -1,5 +1,3 @@
|
||||
Copyright 2017 EtixLabs
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
# Cameradar
|
||||
|
||||
<p align="center"><img src="https://raw.githubusercontent.com/EtixLabs/cameradar/master/images/Cameradar.gif" width="100%"/></p>
|
||||
<p align="center"><img src="https://raw.githubusercontent.com/Ullaakut/cameradar/master/images/Cameradar.gif" width="100%"/></p>
|
||||
|
||||
## An RTSP stream access tool that comes with its library
|
||||
|
||||
[](#license)
|
||||
[](https://hub.docker.com/r/ullaakut/cameradar/)
|
||||
[](https://travis-ci.org/EtixLabs/cameradar)
|
||||
[](https://coveralls.io/github/EtixLabs/cameradar?branch=master)
|
||||
[](https://goreportcard.com/report/github.com/EtixLabs/cameradar)
|
||||
[](https://godoc.org/github.com/EtixLabs/cameradar)
|
||||
[](https://github.com/EtixLabs/cameradar/releases/latest)
|
||||
[](https://travis-ci.org/Ullaakut/cameradar)
|
||||
[](https://coveralls.io/github/Ullaakut/cameradar?branch=master)
|
||||
[](https://goreportcard.com/report/github.com/Ullaakut/cameradar)
|
||||
[](https://godoc.org/github.com/Ullaakut/cameradar)
|
||||
[](https://github.com/Ullaakut/cameradar/releases/latest)
|
||||
|
||||
### Cameradar allows you to
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
* Launch automated dictionary attacks to get the **username and password** of the cameras
|
||||
* Retrieve a complete and user-friendly report of the results
|
||||
|
||||
<p align="center"><img src="https://raw.githubusercontent.com/EtixLabs/cameradar/master/images/Cameradar.png" width="250"/></p>
|
||||
<p align="center"><img src="https://raw.githubusercontent.com/Ullaakut/cameradar/master/images/Cameradar.png" width="250"/></p>
|
||||
|
||||
## Table of content
|
||||
|
||||
@@ -66,8 +66,8 @@ e.g.: `docker run -t ullaakut/cameradar -t 192.168.100.0/24 -l` will scan the po
|
||||
|
||||
Make sure you installed the dependencies mentionned above.
|
||||
|
||||
1. `go get github.com/EtixLabs/cameradar`
|
||||
2. `cd $GOPATH/src/github.com/EtixLabs/cameradar`
|
||||
1. `go get github.com/Ullaakut/cameradar`
|
||||
2. `cd $GOPATH/src/github.com/Ullaakut/cameradar`
|
||||
3. `glide install`
|
||||
4. `cd cameradar`
|
||||
5. `go install`
|
||||
@@ -86,11 +86,11 @@ The `cameradar` binary is now in your `$GOPATH/bin` ready to be used. See comman
|
||||
|
||||
#### Installing the library
|
||||
|
||||
`go get github.com/EtixLabs/cameradar`
|
||||
`go get github.com/Ullaakut/cameradar`
|
||||
|
||||
After this command, the _cameradar_ library is ready to use. Its source will be in:
|
||||
|
||||
$GOPATH/src/pkg/github.com/EtixLabs/cameradar
|
||||
$GOPATH/src/pkg/github.com/Ullaakut/cameradar
|
||||
|
||||
You can use `go get -u` to update the package.
|
||||
|
||||
@@ -100,7 +100,7 @@ Here is an overview of the exposed functions of this library:
|
||||
|
||||
You can use the cameradar library for simple discovery purposes if you don't need to access the cameras but just to be aware of their existence.
|
||||
|
||||
<p align="center"><img width="90%" src="https://raw.githubusercontent.com/EtixLabs/cameradar/master/images/NmapPresets.png"/></p>
|
||||
<p align="center"><img width="90%" src="https://raw.githubusercontent.com/Ullaakut/cameradar/master/images/NmapPresets.png"/></p>
|
||||
This describes the nmap time presets. You can pass a value between 1 and 5 as described in this table, to the NmapRun function.
|
||||
|
||||
#### Attack
|
||||
@@ -111,7 +111,7 @@ If you already know which hosts and ports you want to attack, you can also skip
|
||||
|
||||
Here are the different data models useful to use the exposed functions of the cameradar library.
|
||||
|
||||
<p align="center"><img width="60%" src="https://raw.githubusercontent.com/EtixLabs/cameradar/master/images/Models.png"/></p>
|
||||
<p align="center"><img width="60%" src="https://raw.githubusercontent.com/Ullaakut/cameradar/master/images/Models.png"/></p>
|
||||
|
||||
#### Dictionary loaders
|
||||
|
||||
@@ -249,7 +249,7 @@ You can still find it under the 1.1.4 tag on this repo, however it was less perf
|
||||
|
||||
> How to use the Cameradar library for my own project?
|
||||
|
||||
See the example in `/cameradar`. You just need to run `go get github.com/EtixLabs/cameradar` and to use the `cmrdr` package in your code.
|
||||
See the example in `/cameradar`. You just need to run `go get github.com/Ullaakut/cameradar` and to use the `cmrdr` package in your code.
|
||||
|
||||
> I want to scan my own localhost for some reason and it does not work! What's going on?
|
||||
|
||||
@@ -270,7 +270,7 @@ Simply run `docker run -p 8554:8554 -e RTSP_USERNAME=admin -e RTSP_PASSWORD=1234
|
||||
|
||||
## License
|
||||
|
||||
Copyright 2017 EtixLabs
|
||||
Copyright 2017 Ullaakut
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/EtixLabs/cameradar"
|
||||
"github.com/Ullaakut/cameradar"
|
||||
|
||||
curl "github.com/andelf/go-curl"
|
||||
"github.com/fatih/color"
|
||||
@@ -42,8 +42,8 @@ func parseArguments() error {
|
||||
pflag.StringP("target", "t", "", "The target on which to scan for open RTSP streams - required (ex: 172.16.100.0/24)")
|
||||
pflag.StringP("ports", "p", "554,8554", "The ports on which to search for RTSP streams")
|
||||
pflag.StringP("nmap-output", "o", "/tmp/cameradar_scan.xml", "The path where nmap will create its XML result file")
|
||||
pflag.StringP("custom-routes", "r", "<GOPATH>/src/github.com/EtixLabs/cameradar/dictionaries/routes", "The path on which to load a custom routes dictionary")
|
||||
pflag.StringP("custom-credentials", "c", "<GOPATH>/src/github.com/EtixLabs/cameradar/dictionaries/credentials.json", "The path on which to load a custom credentials JSON dictionary")
|
||||
pflag.StringP("custom-routes", "r", "<GOPATH>/src/github.com/Ullaakut/cameradar/dictionaries/routes", "The path on which to load a custom routes dictionary")
|
||||
pflag.StringP("custom-credentials", "c", "<GOPATH>/src/github.com/Ullaakut/cameradar/dictionaries/credentials.json", "The path on which to load a custom credentials JSON dictionary")
|
||||
pflag.IntP("speed", "s", 4, "The nmap speed preset to use")
|
||||
pflag.IntP("timeout", "T", 2000, "The timeout in miliseconds to use for attack attempts")
|
||||
pflag.BoolP("log", "l", false, "Enable the logs for nmap's output to stdout")
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// IP Cameras, often for surveillance.
|
||||
//
|
||||
// A simple example usage of the library can be found in
|
||||
// https://github.com/EtixLabs/cameradar/tree/master/cameradar
|
||||
// https://github.com/Ullaakut/cameradar/tree/master/cameradar
|
||||
//
|
||||
// The example usage is complete enough for most users to
|
||||
// ignore the library, but for users with specific needs
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/EtixLabs/cameradar/server/adaptor"
|
||||
"github.com/Ullaakut/cameradar/server/adaptor"
|
||||
)
|
||||
|
||||
// WebSocket manages server communication using a websocket adaptor
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package jsonrpc2
|
||||
|
||||
import "github.com/EtixLabs/cameradar"
|
||||
import "github.com/Ullaakut/cameradar"
|
||||
|
||||
// http://www.jsonrpc.org/specification
|
||||
const (
|
||||
|
||||
@@ -3,7 +3,7 @@ package websocket
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/EtixLabs/cameradar/server/adaptor"
|
||||
"github.com/Ullaakut/cameradar/server/adaptor"
|
||||
|
||||
"github.com/stretchr/testify/mock"
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/EtixLabs/cameradar/server/adaptor"
|
||||
"github.com/Ullaakut/cameradar/server/adaptor"
|
||||
|
||||
gorilla "github.com/gorilla/websocket"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
+5
-5
@@ -5,9 +5,9 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
"github.com/EtixLabs/cameradar/server/actor/server"
|
||||
"github.com/EtixLabs/cameradar/server/adaptor/websocket"
|
||||
"github.com/EtixLabs/cameradar/server/service"
|
||||
"github.com/Ullaakut/cameradar/server/actor/server"
|
||||
"github.com/Ullaakut/cameradar/server/adaptor/websocket"
|
||||
"github.com/Ullaakut/cameradar/server/service"
|
||||
graceful "gopkg.in/tylerb/graceful.v1"
|
||||
)
|
||||
|
||||
@@ -19,8 +19,8 @@ func main() {
|
||||
server := server.New(webSocketFactory, fromClient, toClient)
|
||||
|
||||
_, err := service.New(
|
||||
"/Users/ullaakut/Work/go/src/github.com/EtixLabs/cameradar/dictionaries/routes",
|
||||
"/Users/ullaakut/Work/go/src/github.com/EtixLabs/cameradar/dictionaries/credentials.json",
|
||||
"/Users/ullaakut/Work/go/src/github.com/Ullaakut/cameradar/dictionaries/routes",
|
||||
"/Users/ullaakut/Work/go/src/github.com/Ullaakut/cameradar/dictionaries/credentials.json",
|
||||
fromClient,
|
||||
toClient,
|
||||
)
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/EtixLabs/cameradar"
|
||||
"github.com/EtixLabs/cameradar/server/adaptor/jsonrpc2"
|
||||
"github.com/Ullaakut/cameradar"
|
||||
"github.com/Ullaakut/cameradar/server/adaptor/jsonrpc2"
|
||||
v "gopkg.in/go-playground/validator.v9"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/EtixLabs/cameradar"
|
||||
"github.com/Ullaakut/cameradar"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user