Merge pull request #1 from tristanweir/replace-mig-ninja
Replace mig.ninja/mig with github.com/mozilla/mig
6
main.go
|
@ -19,9 +19,9 @@ import (
|
|||
"github.com/go-yaml/yaml"
|
||||
"github.com/gorilla/context"
|
||||
"github.com/gorilla/mux"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
migdbsearch "mig.ninja/mig/database/search"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
migdbsearch "github.com/mozilla/mig/database/search"
|
||||
)
|
||||
|
||||
type config struct {
|
||||
|
|
6
vendor/mig.ninja/mig/.travis.yml → vendor/github.com/mozilla/mig/.travis.yml
сгенерированный
поставляемый
|
@ -28,9 +28,9 @@ script:
|
|||
- make
|
||||
- sudo make install
|
||||
- cd ..
|
||||
- mkdir -p "$GOPATH/src/mig.ninja/"
|
||||
- mv "$OLDPATH" "$GOPATH/src/mig.ninja/"
|
||||
- cd "$GOPATH/src/mig.ninja/mig"
|
||||
- mkdir -p "$GOPATH/src/github.com/mozilla/"
|
||||
- mv "$OLDPATH" "$GOPATH/src/github.com/mozilla/"
|
||||
- cd "$GOPATH/src/github.com/mozilla/mig"
|
||||
# the files in conf/ are our default files but we need them to also
|
||||
# exist in the package directory so go get works. make sure the package
|
||||
# specific files match our defaults in conf/ here.
|
0
vendor/mig.ninja/mig/CONTRIBUTING.md → vendor/github.com/mozilla/mig/CONTRIBUTING.md
сгенерированный
поставляемый
6
vendor/mig.ninja/mig/Dockerfile → vendor/github.com/mozilla/mig/Dockerfile
сгенерированный
поставляемый
|
@ -11,14 +11,14 @@ RUN apt-get update && \
|
|||
groupadd -g 10001 mig && \
|
||||
useradd -g 10001 -u 10001 -d /mig -m mig
|
||||
|
||||
ADD . /go/src/mig.ninja/mig
|
||||
ADD . /go/src/github.com/mozilla/mig
|
||||
RUN chown -R mig /go
|
||||
|
||||
USER mig
|
||||
RUN export GOPATH=/go && \
|
||||
cd /go/src/mig.ninja/mig && \
|
||||
cd /go/src/github.com/mozilla/mig && \
|
||||
yes | bash ./tools/standalone_install.sh && \
|
||||
cp /go/src/mig.ninja/mig/tools/standalone_start_all.sh /mig/start.sh && \
|
||||
cp /go/src/github.com/mozilla/mig/tools/standalone_start_all.sh /mig/start.sh && \
|
||||
chmod +x /mig/start.sh && \
|
||||
sudo service postgresql stop
|
||||
|
92
vendor/mig.ninja/mig/Makefile → vendor/github.com/mozilla/mig/Makefile
сгенерированный
поставляемый
|
@ -100,7 +100,7 @@ CGOLDFLAGS :=
|
|||
GOOPTS :=
|
||||
GO := GOOS=$(OS) GOARCH=$(ARCH) GO15VENDOREXPERIMENT=1 go
|
||||
GOGETTER := GOPATH=$(shell pwd)/.tmpdeps go get -d
|
||||
MIGVERFLAGS := -X mig.ninja/mig.Version=$(BUILDREV)
|
||||
MIGVERFLAGS := -X github.com/mozilla/mig.Version=$(BUILDREV)
|
||||
GOLDFLAGS := -ldflags "$(MIGVERFLAGS) $(STRIPOPT)"
|
||||
GOCFLAGS :=
|
||||
MKDIR := mkdir
|
||||
|
@ -134,7 +134,7 @@ create-bindir:
|
|||
|
||||
mig-agent: create-bindir available-modules mig-agent/configuration.go
|
||||
echo building mig-agent for $(OS)/$(ARCH)
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-agent-$(BUILDREV)$(BINSUFFIX) $(GOLDFLAGS) mig.ninja/mig/mig-agent
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-agent-$(BUILDREV)$(BINSUFFIX) $(GOLDFLAGS) github.com/mozilla/mig/mig-agent
|
||||
ln -fs "$$(pwd)/$(BINDIR)/mig-agent-$(BUILDREV)$(BINSUFFIX)" "$$(pwd)/$(BINDIR)/mig-agent-latest"
|
||||
[ -x "$(BINDIR)/mig-agent-$(BUILDREV)$(BINSUFFIX)" ] || (echo FAILED && false)
|
||||
# If our build target is darwin and OSXPROCSIGID is set, sign the binary
|
||||
|
@ -153,19 +153,19 @@ mig-agent/configuration.go: .FORCE
|
|||
cp $(AGTCONF) $@
|
||||
|
||||
mig-scheduler: create-bindir
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-scheduler $(GOLDFLAGS) mig.ninja/mig/mig-scheduler
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-scheduler $(GOLDFLAGS) github.com/mozilla/mig/mig-scheduler
|
||||
|
||||
mig-api: create-bindir
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-api $(GOLDFLAGS) mig.ninja/mig/mig-api
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-api $(GOLDFLAGS) github.com/mozilla/mig/mig-api
|
||||
|
||||
mig-runner: create-bindir
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-runner $(GOLDFLAGS) mig.ninja/mig/mig-runner
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-runner $(GOLDFLAGS) github.com/mozilla/mig/mig-runner
|
||||
|
||||
mig-action-generator: create-bindir
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-action-generator $(GOLDFLAGS) mig.ninja/mig/client/mig-action-generator
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-action-generator $(GOLDFLAGS) github.com/mozilla/mig/client/mig-action-generator
|
||||
|
||||
mig-loader: create-bindir mig-loader/configuration.go
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-loader$(BINSUFFIX) $(GOLDFLAGS) mig.ninja/mig/mig-loader
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-loader$(BINSUFFIX) $(GOLDFLAGS) github.com/mozilla/mig/mig-loader
|
||||
if [ $(OS) = "darwin" -a ! -z "$(OSXPROCSIGID)" ]; then \
|
||||
codesign -s "$(OSXPROCSIGID)" $(BINDIR)/mig-loader; \
|
||||
fi
|
||||
|
@ -175,28 +175,28 @@ mig-loader/configuration.go: .FORCE
|
|||
cp $(LOADERCONF) $@
|
||||
|
||||
mig-action-verifier: create-bindir
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-action-verifier $(GOLDFLAGS) mig.ninja/mig/client/mig-action-verifier
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-action-verifier $(GOLDFLAGS) github.com/mozilla/mig/client/mig-action-verifier
|
||||
|
||||
mig-console: create-bindir available-modules
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-console $(GOLDFLAGS) mig.ninja/mig/client/mig-console
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-console $(GOLDFLAGS) github.com/mozilla/mig/client/mig-console
|
||||
|
||||
mig-cmd: create-bindir available-modules
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig $(GOLDFLAGS) mig.ninja/mig/client/mig
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig $(GOLDFLAGS) github.com/mozilla/mig/client/mig
|
||||
|
||||
mig-agent-search: create-bindir
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-agent-search $(GOLDFLAGS) mig.ninja/mig/client/mig-agent-search
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-agent-search $(GOLDFLAGS) github.com/mozilla/mig/client/mig-agent-search
|
||||
|
||||
worker-agent-verif: create-bindir
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-worker-agent-verif $(GOLDFLAGS) mig.ninja/mig/workers/mig-worker-agent-verif
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-worker-agent-verif $(GOLDFLAGS) github.com/mozilla/mig/workers/mig-worker-agent-verif
|
||||
|
||||
worker-agent-intel: create-bindir
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-worker-agent-intel $(GOLDFLAGS) mig.ninja/mig/workers/mig-worker-agent-intel
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/mig-worker-agent-intel $(GOLDFLAGS) github.com/mozilla/mig/workers/mig-worker-agent-intel
|
||||
|
||||
runner-compliance: create-bindir
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/runner-compliance $(GOLDFLAGS) mig.ninja/mig/runner-plugins/runner-compliance
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/runner-compliance $(GOLDFLAGS) github.com/mozilla/mig/runner-plugins/runner-compliance
|
||||
|
||||
runner-scribe: create-bindir
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/runner-scribe $(GOLDFLAGS) mig.ninja/mig/runner-plugins/runner-scribe
|
||||
$(GO) build $(GOOPTS) -o $(BINDIR)/runner-scribe $(GOLDFLAGS) github.com/mozilla/mig/runner-plugins/runner-scribe
|
||||
|
||||
go_vendor_dependencies:
|
||||
GOOS="linux" $(GOGETTER) github.com/bobappleyard/readline
|
||||
|
@ -439,32 +439,32 @@ doc:
|
|||
make -C doc doc
|
||||
|
||||
test: test-modules
|
||||
$(GO) test mig.ninja/mig/mig-agent/...
|
||||
$(GO) test mig.ninja/mig/mig-scheduler/...
|
||||
$(GO) test mig.ninja/mig/mig-api/...
|
||||
$(GO) test mig.ninja/mig/mig-runner/...
|
||||
$(GO) test mig.ninja/mig/mig-loader/...
|
||||
$(GO) test mig.ninja/mig/client/...
|
||||
$(GO) test mig.ninja/mig/database/...
|
||||
$(GO) test mig.ninja/mig/workers/...
|
||||
$(GO) test mig.ninja/mig
|
||||
$(GO) test github.com/mozilla/mig/mig-agent/...
|
||||
$(GO) test github.com/mozilla/mig/mig-scheduler/...
|
||||
$(GO) test github.com/mozilla/mig/mig-api/...
|
||||
$(GO) test github.com/mozilla/mig/mig-runner/...
|
||||
$(GO) test github.com/mozilla/mig/mig-loader/...
|
||||
$(GO) test github.com/mozilla/mig/client/...
|
||||
$(GO) test github.com/mozilla/mig/database/...
|
||||
$(GO) test github.com/mozilla/mig/workers/...
|
||||
$(GO) test github.com/mozilla/mig
|
||||
|
||||
test-modules:
|
||||
# test all modules
|
||||
$(GO) test mig.ninja/mig/modules/
|
||||
$(GO) test mig.ninja/mig/modules/agentdestroy
|
||||
$(GO) test mig.ninja/mig/modules/example
|
||||
$(GO) test mig.ninja/mig/modules/examplepersist
|
||||
$(GO) test mig.ninja/mig/modules/file
|
||||
$(GO) test mig.ninja/mig/modules/fswatch
|
||||
$(GO) test mig.ninja/mig/modules/memory
|
||||
$(GO) test mig.ninja/mig/modules/netstat
|
||||
$(GO) test mig.ninja/mig/modules/ping
|
||||
$(GO) test mig.ninja/mig/modules/pkg
|
||||
$(GO) test mig.ninja/mig/modules/scribe
|
||||
$(GO) test mig.ninja/mig/modules/timedrift
|
||||
$(GO) test github.com/mozilla/mig/modules/
|
||||
$(GO) test github.com/mozilla/mig/modules/agentdestroy
|
||||
$(GO) test github.com/mozilla/mig/modules/example
|
||||
$(GO) test github.com/mozilla/mig/modules/examplepersist
|
||||
$(GO) test github.com/mozilla/mig/modules/file
|
||||
$(GO) test github.com/mozilla/mig/modules/fswatch
|
||||
$(GO) test github.com/mozilla/mig/modules/memory
|
||||
$(GO) test github.com/mozilla/mig/modules/netstat
|
||||
$(GO) test github.com/mozilla/mig/modules/ping
|
||||
$(GO) test github.com/mozilla/mig/modules/pkg
|
||||
$(GO) test github.com/mozilla/mig/modules/scribe
|
||||
$(GO) test github.com/mozilla/mig/modules/timedrift
|
||||
ifeq ($(WITHYARA),yes)
|
||||
$(GO) test mig.ninja/mig/modules/yara
|
||||
$(GO) test github.com/mozilla/mig/modules/yara
|
||||
endif
|
||||
|
||||
|
||||
|
@ -476,15 +476,15 @@ clean-agent:
|
|||
rm -rf tmp
|
||||
|
||||
vet:
|
||||
$(GO) vet mig.ninja/mig/mig-agent/...
|
||||
$(GO) vet mig.ninja/mig/mig-scheduler/...
|
||||
$(GO) vet mig.ninja/mig/mig-api/...
|
||||
$(GO) vet mig.ninja/mig/mig-runner/...
|
||||
$(GO) vet mig.ninja/mig/client/...
|
||||
$(GO) vet mig.ninja/mig/modules/...
|
||||
$(GO) vet mig.ninja/mig/database/...
|
||||
$(GO) vet mig.ninja/mig/workers/...
|
||||
$(GO) vet mig.ninja/mig
|
||||
$(GO) vet github.com/mozilla/mig/mig-agent/...
|
||||
$(GO) vet github.com/mozilla/mig/mig-scheduler/...
|
||||
$(GO) vet github.com/mozilla/mig/mig-api/...
|
||||
$(GO) vet github.com/mozilla/mig/mig-runner/...
|
||||
$(GO) vet github.com/mozilla/mig/client/...
|
||||
$(GO) vet github.com/mozilla/mig/modules/...
|
||||
$(GO) vet github.com/mozilla/mig/database/...
|
||||
$(GO) vet github.com/mozilla/mig/workers/...
|
||||
$(GO) vet github.com/mozilla/mig
|
||||
|
||||
clean: clean-agent
|
||||
rm -rf bin
|
6
vendor/mig.ninja/mig/README.md → vendor/github.com/mozilla/mig/README.md
сгенерированный
поставляемый
|
@ -111,8 +111,6 @@ Discussion
|
|||
Join **#mig** on [irc.mozilla.org](https://wiki.mozilla.org/IRC) (use a web
|
||||
client such as [mibbit](https://chat.mibbit.com)).
|
||||
|
||||
We also have a [public mailing list at list@mig.ninja](http://list.mig.ninja/listinfo/list).
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
All documentation is available in the 'doc' directory and on http://mig.mozilla.org .
|
||||
|
@ -134,9 +132,9 @@ $ export GOPATH=$HOME/go
|
|||
|
||||
$ mkdir $GOPATH
|
||||
|
||||
$ go get mig.ninja/mig
|
||||
$ go get github.com/mozilla/mig
|
||||
|
||||
$ cd $GOPATH/src/mig.ninja/mig
|
||||
$ cd $GOPATH/src/github.com/mozilla/mig
|
||||
|
||||
$ bash tools/standalone_install.sh
|
||||
```
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import (
|
||||
"fmt"
|
4
vendor/mig.ninja/mig/action.go → vendor/github.com/mozilla/mig/action.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -20,7 +20,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
)
|
||||
|
||||
// ActionVersion is the version of the syntax that is expected
|
0
vendor/mig.ninja/mig/actions/agentdestroy.json → vendor/github.com/mozilla/mig/actions/agentdestroy.json
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/example_v2.json → vendor/github.com/mozilla/mig/actions/example_v2.json
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/integration_tests.json → vendor/github.com/mozilla/mig/actions/integration_tests.json
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/linux-backdoor.json → vendor/github.com/mozilla/mig/actions/linux-backdoor.json
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/linux-botcode.json → vendor/github.com/mozilla/mig/actions/linux-botcode.json
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/linux-trojan-billgates.json → vendor/github.com/mozilla/mig/actions/linux-trojan-billgates.json
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/scribe/README.md → vendor/github.com/mozilla/mig/actions/scribe/README.md
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/scribe/rhsa-2015.json → vendor/github.com/mozilla/mig/actions/scribe/rhsa-2015.json
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/scribe/usn-2015.json → vendor/github.com/mozilla/mig/actions/scribe/usn-2015.json
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/shellshock_iocs.json → vendor/github.com/mozilla/mig/actions/shellshock_iocs.json
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/sshd_backdoor.json → vendor/github.com/mozilla/mig/actions/sshd_backdoor.json
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/suspicious_files.json → vendor/github.com/mozilla/mig/actions/suspicious_files.json
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/tests_windows.json → vendor/github.com/mozilla/mig/actions/tests_windows.json
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/actions/yui-2.4.0-2.9.0.json → vendor/github.com/mozilla/mig/actions/yui-2.4.0-2.9.0.json
сгенерированный
поставляемый
2
vendor/mig.ninja/mig/agent.go → vendor/github.com/mozilla/mig/agent.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import "time"
|
||||
|
8
vendor/mig.ninja/mig/client/client.go → vendor/github.com/mozilla/mig/client/client.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package client /* import "mig.ninja/mig/client" */
|
||||
package client /* import "github.com/mozilla/mig/client" */
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
|
@ -27,9 +27,9 @@ import (
|
|||
"github.com/jvehent/cljs"
|
||||
"golang.org/x/crypto/openpgp"
|
||||
"gopkg.in/gcfg.v1"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/modules"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/modules"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
)
|
||||
|
||||
var version string
|
2
vendor/mig.ninja/mig/client/macro.go → vendor/github.com/mozilla/mig/client/macro.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Aaron Meihm ameihm@mozilla.com [:alm]
|
||||
|
||||
package client /* import "mig.ninja/mig/client" */
|
||||
package client /* import "github.com/mozilla/mig/client" */
|
||||
|
||||
import (
|
||||
"fmt"
|
2
vendor/mig.ninja/mig/client/map.go → vendor/github.com/mozilla/mig/client/map.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package client /* import "mig.ninja/mig/client" */
|
||||
package client /* import "github.com/mozilla/mig/client" */
|
||||
|
||||
import (
|
||||
"encoding/json"
|
|
@ -14,8 +14,8 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
)
|
||||
|
||||
func main() {
|
|
@ -10,8 +10,8 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
)
|
||||
|
||||
func main() {
|
6
vendor/mig.ninja/mig/client/mig-agent-search/main.go → vendor/github.com/mozilla/mig/client/mig-agent-search/main.go
сгенерированный
поставляемый
|
@ -16,9 +16,9 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
migdbsearch "mig.ninja/mig/database/search"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
migdbsearch "github.com/mozilla/mig/database/search"
|
||||
)
|
||||
|
||||
func main() {
|
|
@ -14,9 +14,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"mig.ninja/mig/modules"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
"github.com/mozilla/mig/modules"
|
||||
)
|
||||
|
||||
// default expiration is 300 seconds
|
4
vendor/mig.ninja/mig/client/mig-console/action_reader.go → vendor/github.com/mozilla/mig/client/mig-console/action_reader.go
сгенерированный
поставляемый
|
@ -14,8 +14,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
)
|
||||
|
||||
// actionReader retrieves an action from the API using its numerical ID
|
2
vendor/mig.ninja/mig/client/mig-console/agent.go → vendor/github.com/mozilla/mig/client/mig-console/agent.go
сгенерированный
поставляемый
|
@ -13,7 +13,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig/client"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
)
|
21
vendor/github.com/mozilla/mig/client/mig-console/available_modules.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,21 @@
|
|||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "github.com/mozilla/mig/modules/agentdestroy"
|
||||
//_ "github.com/mozilla/mig/modules/examplepersist"
|
||||
_ "github.com/mozilla/mig/modules/file"
|
||||
//_ "github.com/mozilla/mig/modules/fswatch"
|
||||
_ "github.com/mozilla/mig/modules/memory"
|
||||
_ "github.com/mozilla/mig/modules/netstat"
|
||||
_ "github.com/mozilla/mig/modules/ping"
|
||||
_ "github.com/mozilla/mig/modules/pkg"
|
||||
_ "github.com/mozilla/mig/modules/scribe"
|
||||
_ "github.com/mozilla/mig/modules/timedrift"
|
||||
//_ "github.com/mozilla/mig/modules/yara"
|
||||
//_ "github.com/mozilla/mig/modules/example"
|
||||
)
|
|
@ -10,7 +10,7 @@ import (
|
|||
"fmt"
|
||||
"github.com/bobappleyard/readline"
|
||||
"io"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig/client"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
4
vendor/mig.ninja/mig/client/mig-console/console.go → vendor/github.com/mozilla/mig/client/mig-console/console.go
сгенерированный
поставляемый
|
@ -18,8 +18,8 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
)
|
||||
|
||||
func main() {
|
6
vendor/mig.ninja/mig/client/mig-console/investigator.go → vendor/github.com/mozilla/mig/client/mig-console/investigator.go
сгенерированный
поставляемый
|
@ -15,9 +15,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"mig.ninja/mig/pgp"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
"github.com/mozilla/mig/pgp"
|
||||
)
|
||||
|
||||
// investigatorReader retrieves an agent from the api
|
4
vendor/mig.ninja/mig/client/mig-console/loader.go → vendor/github.com/mozilla/mig/client/mig-console/loader.go
сгенерированный
поставляемый
|
@ -13,8 +13,8 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
)
|
||||
|
||||
// loaderReader is used to manipulate loader entries
|
4
vendor/mig.ninja/mig/client/mig-console/manifest.go → vendor/github.com/mozilla/mig/client/mig-console/manifest.go
сгенерированный
поставляемый
|
@ -13,8 +13,8 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/bobappleyard/readline"
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
)
|
||||
|
||||
// manifestReader is used to manipulate API manifests
|
4
vendor/mig.ninja/mig/client/mig-console/search.go → vendor/github.com/mozilla/mig/client/mig-console/search.go
сгенерированный
поставляемый
|
@ -12,8 +12,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig/client"
|
||||
migdbsearch "mig.ninja/mig/database/search"
|
||||
"github.com/mozilla/mig/client"
|
||||
migdbsearch "github.com/mozilla/mig/database/search"
|
||||
)
|
||||
|
||||
// search runs a search for actions, commands or agents
|
21
vendor/github.com/mozilla/mig/client/mig/available_modules.go
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,21 @@
|
|||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "github.com/mozilla/mig/modules/agentdestroy"
|
||||
//_ "github.com/mozilla/mig/modules/examplepersist"
|
||||
_ "github.com/mozilla/mig/modules/file"
|
||||
//_ "github.com/mozilla/mig/modules/fswatch"
|
||||
_ "github.com/mozilla/mig/modules/memory"
|
||||
_ "github.com/mozilla/mig/modules/netstat"
|
||||
_ "github.com/mozilla/mig/modules/ping"
|
||||
_ "github.com/mozilla/mig/modules/pkg"
|
||||
_ "github.com/mozilla/mig/modules/scribe"
|
||||
_ "github.com/mozilla/mig/modules/timedrift"
|
||||
//_ "github.com/mozilla/mig/modules/yara"
|
||||
//_ "github.com/mozilla/mig/modules/example"
|
||||
)
|
6
vendor/mig.ninja/mig/client/mig/main.go → vendor/github.com/mozilla/mig/client/mig/main.go
сгенерированный
поставляемый
|
@ -14,9 +14,9 @@ import (
|
|||
"os/signal"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/client"
|
||||
"mig.ninja/mig/modules"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/client"
|
||||
"github.com/mozilla/mig/modules"
|
||||
)
|
||||
|
||||
func usage() {
|
4
vendor/mig.ninja/mig/command.go → vendor/github.com/mozilla/mig/command.go
сгенерированный
поставляемый
|
@ -4,14 +4,14 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"mig.ninja/mig/modules"
|
||||
"github.com/mozilla/mig/modules"
|
||||
"time"
|
||||
)
|
||||
|
0
vendor/mig.ninja/mig/conf/agent-intel-worker.cfg.inc → vendor/github.com/mozilla/mig/conf/agent-intel-worker.cfg.inc
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/conf/agent-verif-worker.cfg.inc → vendor/github.com/mozilla/mig/conf/agent-verif-worker.cfg.inc
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/conf/api.cfg.inc → vendor/github.com/mozilla/mig/conf/api.cfg.inc
сгенерированный
поставляемый
|
@ -0,0 +1,21 @@
|
|||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "github.com/mozilla/mig/modules/agentdestroy"
|
||||
//_ "github.com/mozilla/mig/modules/examplepersist"
|
||||
_ "github.com/mozilla/mig/modules/file"
|
||||
//_ "github.com/mozilla/mig/modules/fswatch"
|
||||
_ "github.com/mozilla/mig/modules/memory"
|
||||
_ "github.com/mozilla/mig/modules/netstat"
|
||||
_ "github.com/mozilla/mig/modules/ping"
|
||||
_ "github.com/mozilla/mig/modules/pkg"
|
||||
_ "github.com/mozilla/mig/modules/scribe"
|
||||
_ "github.com/mozilla/mig/modules/timedrift"
|
||||
//_ "github.com/mozilla/mig/modules/yara"
|
||||
//_ "github.com/mozilla/mig/modules/example"
|
||||
)
|
0
vendor/mig.ninja/mig/conf/compliance-item-worker.cfg.inc → vendor/github.com/mozilla/mig/conf/compliance-item-worker.cfg.inc
сгенерированный
поставляемый
2
vendor/mig.ninja/mig/conf/mig-agent-conf.go.inc → vendor/github.com/mozilla/mig/conf/mig-agent-conf.go.inc
сгенерированный
поставляемый
|
@ -6,7 +6,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
"time"
|
||||
)
|
||||
|
0
vendor/mig.ninja/mig/conf/mig-agent-installer.wxs → vendor/github.com/mozilla/mig/conf/mig-agent-installer.wxs
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/conf/mig-agent.cfg.inc → vendor/github.com/mozilla/mig/conf/mig-agent.cfg.inc
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/conf/mig-loader-conf.go.inc → vendor/github.com/mozilla/mig/conf/mig-loader-conf.go.inc
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/conf/migrc.inc → vendor/github.com/mozilla/mig/conf/migrc.inc
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/conf/runner-compliance.conf.inc → vendor/github.com/mozilla/mig/conf/runner-compliance.conf.inc
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/conf/runner.cfg.inc → vendor/github.com/mozilla/mig/conf/runner.cfg.inc
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/conf/scheduler.cfg.inc → vendor/github.com/mozilla/mig/conf/scheduler.cfg.inc
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/conf/upstart/mig-api.conf → vendor/github.com/mozilla/mig/conf/upstart/mig-api.conf
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/conf/upstart/mig-scheduler.conf → vendor/github.com/mozilla/mig/conf/upstart/mig-scheduler.conf
сгенерированный
поставляемый
2
vendor/mig.ninja/mig/constants.go → vendor/github.com/mozilla/mig/constants.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package mig /* import "mig.ninja/mig" */
|
||||
package mig /* import "github.com/mozilla/mig" */
|
||||
|
||||
const (
|
||||
// rabbitmq exchanges and common queues
|
4
vendor/mig.ninja/mig/database/actions.go → vendor/github.com/mozilla/mig/database/actions.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
@ -12,7 +12,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
)
|
4
vendor/mig.ninja/mig/database/agents.go → vendor/github.com/mozilla/mig/database/agents.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
@ -12,7 +12,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
)
|
6
vendor/mig.ninja/mig/database/commands.go → vendor/github.com/mozilla/mig/database/commands.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -13,8 +13,8 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/modules"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/modules"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
)
|
0
vendor/mig.ninja/mig/database/createlocaldb.sh → vendor/github.com/mozilla/mig/database/createlocaldb.sh
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/database/createremotedb.sh → vendor/github.com/mozilla/mig/database/createremotedb.sh
сгенерированный
поставляемый
2
vendor/mig.ninja/mig/database/database.go → vendor/github.com/mozilla/mig/database/database.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"database/sql"
|
4
vendor/mig.ninja/mig/database/investigators.go → vendor/github.com/mozilla/mig/database/investigators.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
@ -12,7 +12,7 @@ import (
|
|||
"time"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
// ActiveInvestigators returns a slice of investigators keys marked as active
|
4
vendor/mig.ninja/mig/database/loader.go → vendor/github.com/mozilla/mig/database/loader.go
сгенерированный
поставляемый
|
@ -4,14 +4,14 @@
|
|||
//
|
||||
// Contributor: Aaron Meihm ameihm@mozilla.com [:alm]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
_ "github.com/lib/pq"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
// Return a loader entry ID given a loader key
|
4
vendor/mig.ninja/mig/database/manifest.go → vendor/github.com/mozilla/mig/database/manifest.go
сгенерированный
поставляемый
|
@ -4,12 +4,12 @@
|
|||
//
|
||||
// Contributor: Aaron Meihm ameihm@mozilla.com [:alm]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
_ "github.com/lib/pq"
|
||||
"mig.ninja/mig"
|
||||
"github.com/mozilla/mig"
|
||||
)
|
||||
|
||||
// Add a new manifest record to the database
|
0
vendor/mig.ninja/mig/database/schema.sql → vendor/github.com/mozilla/mig/database/schema.sql
сгенерированный
поставляемый
2
vendor/mig.ninja/mig/database/search/parameters.go → vendor/github.com/mozilla/mig/database/search/parameters.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package search /* import "mig.ninja/mig/database/search" */
|
||||
package search /* import "github.com/mozilla/mig/database/search" */
|
||||
|
||||
import (
|
||||
"fmt"
|
6
vendor/mig.ninja/mig/database/searches.go → vendor/github.com/mozilla/mig/database/searches.go
сгенерированный
поставляемый
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
||||
|
||||
package database /* import "mig.ninja/mig/database" */
|
||||
package database /* import "github.com/mozilla/mig/database" */
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
@ -13,8 +13,8 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"mig.ninja/mig"
|
||||
"mig.ninja/mig/database/search"
|
||||
"github.com/mozilla/mig"
|
||||
"github.com/mozilla/mig/database/search"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
)
|
0
vendor/mig.ninja/mig/doc/.files/ER-diagram.png → vendor/github.com/mozilla/mig/doc/.files/ER-diagram.png
сгенерированный
поставляемый
До Ширина: | Высота: | Размер: 34 KiB После Ширина: | Высота: | Размер: 34 KiB |
0
vendor/mig.ninja/mig/doc/.files/MIG-Arch-Diagram.png → vendor/github.com/mozilla/mig/doc/.files/MIG-Arch-Diagram.png
сгенерированный
поставляемый
До Ширина: | Высота: | Размер: 91 KiB После Ширина: | Высота: | Размер: 91 KiB |
0
vendor/mig.ninja/mig/doc/.files/MIG-logo-CC-small.jpg → vendor/github.com/mozilla/mig/doc/.files/MIG-logo-CC-small.jpg
сгенерированный
поставляемый
До Ширина: | Высота: | Размер: 87 KiB После Ширина: | Высота: | Размер: 87 KiB |
0
vendor/mig.ninja/mig/doc/.files/MIG-logo-CC.jpg → vendor/github.com/mozilla/mig/doc/.files/MIG-logo-CC.jpg
сгенерированный
поставляемый
До Ширина: | Высота: | Размер: 2.1 MiB После Ширина: | Высота: | Размер: 2.1 MiB |
0
vendor/mig.ninja/mig/doc/.files/action_command_flow.dot → vendor/github.com/mozilla/mig/doc/.files/action_command_flow.dot
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/doc/.files/action_command_flow.svg → vendor/github.com/mozilla/mig/doc/.files/action_command_flow.svg
сгенерированный
поставляемый
До Ширина: | Высота: | Размер: 26 KiB После Ширина: | Высота: | Размер: 26 KiB |
0
vendor/mig.ninja/mig/doc/.files/check_mark_green.png → vendor/github.com/mozilla/mig/doc/.files/check_mark_green.png
сгенерированный
поставляемый
До Ширина: | Высота: | Размер: 1.9 KiB После Ширина: | Высота: | Размер: 1.9 KiB |
0
vendor/mig.ninja/mig/doc/.files/console_screenshot.png → vendor/github.com/mozilla/mig/doc/.files/console_screenshot.png
сгенерированный
поставляемый
До Ширина: | Высота: | Размер: 166 KiB После Ширина: | Высота: | Размер: 166 KiB |
До Ширина: | Высота: | Размер: 96 KiB После Ширина: | Высота: | Размер: 96 KiB |
0
vendor/mig.ninja/mig/doc/.files/mig-cmd-demo.gif → vendor/github.com/mozilla/mig/doc/.files/mig-cmd-demo.gif
сгенерированный
поставляемый
До Ширина: | Высота: | Размер: 1.3 MiB После Ширина: | Высота: | Размер: 1.3 MiB |
0
vendor/mig.ninja/mig/doc/.files/mig-console-demo.mp4 → vendor/github.com/mozilla/mig/doc/.files/mig-console-demo.mp4
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/doc/Makefile → vendor/github.com/mozilla/mig/doc/Makefile
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/doc/agent.rst → vendor/github.com/mozilla/mig/doc/agent.rst
сгенерированный
поставляемый
0
vendor/mig.ninja/mig/doc/api.rst → vendor/github.com/mozilla/mig/doc/api.rst
сгенерированный
поставляемый
2
vendor/mig.ninja/mig/doc/cheatsheet.rst → vendor/github.com/mozilla/mig/doc/cheatsheet.rst
сгенерированный
поставляемый
|
@ -325,7 +325,7 @@ mig-agent-search
|
|||
|
||||
`mig-agent-search` is a small client that lists agents based on a query. It is
|
||||
useful to test target queries before using them live. You can obtain it via `go
|
||||
get mig.ninja/mig/client/mig-agent-search`.
|
||||
get github.com/mozilla/mig/client/mig-agent-search`.
|
||||
|
||||
.. code:: bash
|
||||
|
2
vendor/mig.ninja/mig/doc/command_line.rst → vendor/github.com/mozilla/mig/doc/command_line.rst
сгенерированный
поставляемый
|
@ -11,7 +11,7 @@ to be simple and fast to use for basic investigations. Unlike the mig-console,
|
|||
it does not provide access to previous actions, search or investigators
|
||||
management.
|
||||
|
||||
To install the MIG command line, use `go get mig.ninja/mig/client/mig`. This
|
||||
To install the MIG command line, use `go get github.com/mozilla/mig/client/mig`. This
|
||||
command will place a binary called `mig` under $GOPATH/bin/mig. On first run, it
|
||||
will invite you to create a configuration:
|
||||
|
0
vendor/mig.ninja/mig/doc/concepts.rst → vendor/github.com/mozilla/mig/doc/concepts.rst
сгенерированный
поставляемый
16
vendor/mig.ninja/mig/doc/configuration.rst → vendor/github.com/mozilla/mig/doc/configuration.rst
сгенерированный
поставляемый
|
@ -55,9 +55,9 @@ Then retrieve MIG's source code using go get:
|
|||
|
||||
.. code:: bash
|
||||
|
||||
$ go get mig.ninja/mig
|
||||
$ go get github.com/mozilla/mig
|
||||
|
||||
Go get will place MIG under `$GOPATH/src/mig.ninja/mig`. Change directory to
|
||||
Go get will place MIG under `$GOPATH/src/github.com/mozilla/mig`. Change directory to
|
||||
this path and build the components. Note that, if you're on a Debian or Ubuntu
|
||||
box, you can run `make deb-server` directly which will build the scheduler, api
|
||||
and workers into a single DEB package. Otherwise, use the following make
|
||||
|
@ -185,7 +185,7 @@ AMQP clients to validate the rabbitmq certificate correctly.
|
|||
|
||||
$ mkdir migca
|
||||
$ cd migca
|
||||
$ cp $GOPATH/src/mig.ninja/mig/tools/create_mig_ca.sh .
|
||||
$ cp $GOPATH/src/github.com/mozilla/mig/tools/create_mig_ca.sh .
|
||||
$ bash create_mig_ca.sh
|
||||
[...]
|
||||
enter the public dns name of the rabbitmq server agents will connect to> mymigrelay.example.net
|
||||
|
@ -685,7 +685,7 @@ its source repository
|
|||
.. code::
|
||||
|
||||
$ sudo apt-get install libreadline-dev
|
||||
$ go get mig.ninja/mig/client/mig-console
|
||||
$ go get github.com/mozilla/mig/client/mig-console
|
||||
$ $GOPATH/bin/mig-console
|
||||
|
||||
## ## _.---._ .---.
|
||||
|
@ -834,8 +834,8 @@ format.
|
|||
|
||||
.. code:: bash
|
||||
|
||||
$ go get mig.ninja/mig
|
||||
$ cd $GOPATH/src/mig.ninja/mig
|
||||
$ go get github.com/mozilla/mig
|
||||
$ cd $GOPATH/src/github.com/mozilla/mig
|
||||
$ cp conf/mig-agent-conf.go.inc example.net.agents-conf.go
|
||||
$ vim conf/example.net.agents-conf.go
|
||||
|
||||
|
@ -1085,7 +1085,7 @@ for, it is set to `dev` by default.
|
|||
# test if the agent configuration variable contains something different than the default value
|
||||
# and if so, replace the link to the default configuration with the provided configuration
|
||||
if [ conf/linuxwall-mig-agent-conf.go != "conf/mig-agent-conf.go.inc" ]; then rm mig-agent/configuration.go; cp conf/linuxwall-mig-agent-conf.go mig-agent/configuration.go; fi
|
||||
GOOS=linux GOARCH=amd64 GO15VENDOREXPERIMENT=1 go build -o bin/linux/amd64/mig-agent-20150909+556e9c0.dev"" -ldflags "-X main.version=20150909+556e9c0.dev" mig.ninja/mig/mig-agent
|
||||
GOOS=linux GOARCH=amd64 GO15VENDOREXPERIMENT=1 go build -o bin/linux/amd64/mig-agent-20150909+556e9c0.dev"" -ldflags "-X main.version=20150909+556e9c0.dev" github.com/mozilla/mig/mig-agent
|
||||
ln -fs "$(pwd)/bin/linux/amd64/mig-agent-20150909+556e9c0.dev""" "$(pwd)/bin/linux/amd64/mig-agent-latest"
|
||||
[ -x "bin/linux/amd64/mig-agent-20150909+556e9c0.dev""" ] && echo SUCCESS && exit 0
|
||||
SUCCESS
|
||||
|
@ -1169,7 +1169,7 @@ investigation that looks for a user in `/etc/passwd`.
|
|||
|
||||
.. code:: bash
|
||||
|
||||
$ go get mig.ninja/mig/client/mig
|
||||
$ go get github.com/mozilla/mig/client/mig
|
||||
$ $GOPATH/bin/mig file -path /etc -name "^passwd$" -content "^root"
|
||||
1 agents will be targeted. ctrl+c to cancel. launching in 5 4 3 2 1 GO
|
||||
Following action ID 4885615083564.status=inflight.
|