Move repository to Ullaakut

This commit is contained in:
Brendan Le Glaunec
2018-02-16 15:00:27 +01:00
committed by Brendan Le Glaunec
parent 8289f1edda
commit 5a0ee4aaa7
13 changed files with 36 additions and 38 deletions
+1 -1
View File
@@ -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 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 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 ### Coding guidelines
+4 -4
View File
@@ -1,8 +1,8 @@
# Build stage # Build stage
FROM golang:alpine AS build-env FROM golang:alpine AS build-env
COPY . /go/src/github.com/EtixLabs/cameradar COPY . /go/src/github.com/Ullaakut/cameradar
WORKDIR /go/src/github.com/EtixLabs/cameradar/cameradar WORKDIR /go/src/github.com/Ullaakut/cameradar/cameradar
RUN apk update && \ RUN apk update && \
apk upgrade && \ apk upgrade && \
@@ -25,6 +25,6 @@ RUN apk --update add --no-cache nmap nmap-nselibs nmap-scripts \
curl-dev curl-dev
WORKDIR /app/cameradar WORKDIR /app/cameradar
COPY --from=build-env /go/src/github.com/EtixLabs/cameradar/dictionaries/ /app/dictionaries/ COPY --from=build-env /go/src/github.com/Ullaakut/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/cameradar/ /app/cameradar/
ENTRYPOINT ["/app/cameradar/cameradar", "-r", "/app/dictionaries/routes", "-c", "/app/dictionaries/credentials.json"] ENTRYPOINT ["/app/cameradar/cameradar", "-r", "/app/dictionaries/routes", "-c", "/app/dictionaries/credentials.json"]
-2
View File
@@ -1,5 +1,3 @@
Copyright 2017 EtixLabs
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights in the Software without restriction, including without limitation the rights
+15 -15
View File
@@ -1,16 +1,16 @@
# Cameradar # 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 ## An RTSP stream access tool that comes with its library
[![cameradar License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](#license) [![cameradar License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](#license)
[![Docker Pulls](https://img.shields.io/docker/pulls/ullaakut/cameradar.svg?style=flat)](https://hub.docker.com/r/ullaakut/cameradar/) [![Docker Pulls](https://img.shields.io/docker/pulls/ullaakut/cameradar.svg?style=flat)](https://hub.docker.com/r/ullaakut/cameradar/)
[![Build](https://img.shields.io/travis/EtixLabs/cameradar/master.svg?style=flat)](https://travis-ci.org/EtixLabs/cameradar) [![Build](https://img.shields.io/travis/Ullaakut/cameradar/master.svg?style=flat)](https://travis-ci.org/Ullaakut/cameradar)
[![Coverage Status](https://coveralls.io/repos/github/EtixLabs/cameradar/badge.svg?branch=master)](https://coveralls.io/github/EtixLabs/cameradar?branch=master) [![Coverage Status](https://coveralls.io/repos/github/Ullaakut/cameradar/badge.svg?branch=master)](https://coveralls.io/github/Ullaakut/cameradar?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/EtixLabs/cameradar)](https://goreportcard.com/report/github.com/EtixLabs/cameradar) [![Go Report Card](https://goreportcard.com/badge/github.com/Ullaakut/cameradar)](https://goreportcard.com/report/github.com/Ullaakut/cameradar)
[![GoDoc](https://godoc.org/github.com/EtixLabs/cameradar?status.svg)](https://godoc.org/github.com/EtixLabs/cameradar) [![GoDoc](https://godoc.org/github.com/Ullaakut/cameradar?status.svg)](https://godoc.org/github.com/Ullaakut/cameradar)
[![Latest release](https://img.shields.io/github/release/EtixLabs/cameradar.svg?style=flat)](https://github.com/EtixLabs/cameradar/releases/latest) [![Latest release](https://img.shields.io/github/release/Ullaakut/cameradar.svg?style=flat)](https://github.com/Ullaakut/cameradar/releases/latest)
### Cameradar allows you to ### Cameradar allows you to
@@ -20,7 +20,7 @@
* Launch automated dictionary attacks to get the **username and password** of the cameras * Launch automated dictionary attacks to get the **username and password** of the cameras
* Retrieve a complete and user-friendly report of the results * 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 ## 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. Make sure you installed the dependencies mentionned above.
1. `go get github.com/EtixLabs/cameradar` 1. `go get github.com/Ullaakut/cameradar`
2. `cd $GOPATH/src/github.com/EtixLabs/cameradar` 2. `cd $GOPATH/src/github.com/Ullaakut/cameradar`
3. `glide install` 3. `glide install`
4. `cd cameradar` 4. `cd cameradar`
5. `go install` 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 #### 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: 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. 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. 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. 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 #### 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. 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 #### 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? > 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? > 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 ## License
Copyright 2017 EtixLabs Copyright 2017 Ullaakut
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+3 -3
View File
@@ -7,7 +7,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/EtixLabs/cameradar" "github.com/Ullaakut/cameradar"
curl "github.com/andelf/go-curl" curl "github.com/andelf/go-curl"
"github.com/fatih/color" "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("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("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("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-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/EtixLabs/cameradar/dictionaries/credentials.json", "The path on which to load a custom credentials JSON 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("speed", "s", 4, "The nmap speed preset to use")
pflag.IntP("timeout", "T", 2000, "The timeout in miliseconds to use for attack attempts") 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") pflag.BoolP("log", "l", false, "Enable the logs for nmap's output to stdout")
+1 -1
View File
@@ -3,7 +3,7 @@
// IP Cameras, often for surveillance. // IP Cameras, often for surveillance.
// //
// A simple example usage of the library can be found in // 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 // The example usage is complete enough for most users to
// ignore the library, but for users with specific needs // ignore the library, but for users with specific needs
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/EtixLabs/cameradar/server/adaptor" "github.com/Ullaakut/cameradar/server/adaptor"
) )
// WebSocket manages server communication using a websocket adaptor // WebSocket manages server communication using a websocket adaptor
+1 -1
View File
@@ -1,6 +1,6 @@
package jsonrpc2 package jsonrpc2
import "github.com/EtixLabs/cameradar" import "github.com/Ullaakut/cameradar"
// http://www.jsonrpc.org/specification // http://www.jsonrpc.org/specification
const ( const (
+1 -1
View File
@@ -3,7 +3,7 @@ package websocket
import ( import (
"net/http" "net/http"
"github.com/EtixLabs/cameradar/server/adaptor" "github.com/Ullaakut/cameradar/server/adaptor"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
) )
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/EtixLabs/cameradar/server/adaptor" "github.com/Ullaakut/cameradar/server/adaptor"
gorilla "github.com/gorilla/websocket" gorilla "github.com/gorilla/websocket"
"github.com/pkg/errors" "github.com/pkg/errors"
+5 -5
View File
@@ -5,9 +5,9 @@ import (
"net/http" "net/http"
"os" "os"
"github.com/EtixLabs/cameradar/server/actor/server" "github.com/Ullaakut/cameradar/server/actor/server"
"github.com/EtixLabs/cameradar/server/adaptor/websocket" "github.com/Ullaakut/cameradar/server/adaptor/websocket"
"github.com/EtixLabs/cameradar/server/service" "github.com/Ullaakut/cameradar/server/service"
graceful "gopkg.in/tylerb/graceful.v1" graceful "gopkg.in/tylerb/graceful.v1"
) )
@@ -19,8 +19,8 @@ func main() {
server := server.New(webSocketFactory, fromClient, toClient) server := server.New(webSocketFactory, fromClient, toClient)
_, err := service.New( _, err := service.New(
"/Users/ullaakut/Work/go/src/github.com/EtixLabs/cameradar/dictionaries/routes", "/Users/ullaakut/Work/go/src/github.com/Ullaakut/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/credentials.json",
fromClient, fromClient,
toClient, toClient,
) )
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/EtixLabs/cameradar" "github.com/Ullaakut/cameradar"
"github.com/EtixLabs/cameradar/server/adaptor/jsonrpc2" "github.com/Ullaakut/cameradar/server/adaptor/jsonrpc2"
v "gopkg.in/go-playground/validator.v9" v "gopkg.in/go-playground/validator.v9"
) )
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/EtixLabs/cameradar" "github.com/Ullaakut/cameradar"
"github.com/pkg/errors" "github.com/pkg/errors"
) )