зеркало из https://github.com/mozilla/mig.git
247 строки
5.5 KiB
HTML
247 строки
5.5 KiB
HTML
<!DOCTYPE html><html><head><meta charset="utf-8"><title></title><style type="text/css">body {
|
|
width: 95%;
|
|
max-width: 70%;
|
|
margin: 20px;
|
|
padding: 0;
|
|
background: #151515 url("../images/bkg.png") 0 0;
|
|
color: #eaeaea;
|
|
font: 16px;
|
|
line-height: 1.5em;
|
|
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
|
|
}
|
|
|
|
#table-of-contents ul {
|
|
line-height: 1;
|
|
}
|
|
|
|
/* General & 'Reset' Stuff */
|
|
|
|
.container {
|
|
width: 95%;
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
section {
|
|
display: block;
|
|
margin: 0 0 20px 0;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
/*margin: 0 0 20px;*/
|
|
/*margin: 0;*/
|
|
}
|
|
|
|
/* Header, <header>
|
|
* header - container
|
|
* h1 - project name
|
|
* h2 - project description
|
|
* */
|
|
|
|
header {
|
|
background: rgba(0, 0, 0, 0.1);
|
|
width: 100%;
|
|
/*border-bottom: 1px dashed #b5e853;*/
|
|
/*padding: 20px 0;
|
|
* margin: 0 0 40px 0;*/
|
|
padding: 5px 0;
|
|
margin: 0 0 10px 0;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 30px;
|
|
line-height: 1.5;
|
|
margin: 0 0 0 -40px;
|
|
font-weight: bold;
|
|
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
|
|
/*color: #b5e853;*/
|
|
color: #089d00;
|
|
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
|
|
0 0 5px rgba(181, 232, 83, 0.1),
|
|
0 0 10px rgba(181, 232, 83, 0.1);
|
|
letter-spacing: -1px;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
header h1:before {
|
|
content: "./ ";
|
|
font-size: 24px;
|
|
}
|
|
|
|
header h2 {
|
|
font-size: 18px;
|
|
font-weight: 300;
|
|
}
|
|
|
|
/* Main Content
|
|
* */
|
|
|
|
body {
|
|
width: 100%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
section img {
|
|
max-width: 100%
|
|
}
|
|
|
|
h2 a {
|
|
font-weight: bold;
|
|
color: #8AB638;
|
|
line-height: 1.4em;
|
|
font-size: 1.4em;
|
|
}
|
|
h3 a, h4 a, h5 a, h6 a {
|
|
font-weight: bold;
|
|
color: #934500;
|
|
line-height: 1.4em;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 30px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 28px;
|
|
border-bottom: 1px dashed #b5e853;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
h5 {
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
margin: 0 0 5px 0;
|
|
}
|
|
|
|
h6 {
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
color: #999;
|
|
margin: 0 0 5px 0;
|
|
}
|
|
|
|
dt {
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
}
|
|
/*
|
|
ul li {
|
|
list-style: none;
|
|
}
|
|
*/
|
|
/*
|
|
ul li:before {
|
|
content: ">>";
|
|
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
|
|
font-size: 13px;
|
|
color: #b5e853;
|
|
margin-left: -37px;
|
|
margin-right: 21px;
|
|
line-height: 16px;
|
|
}
|
|
*/
|
|
|
|
blockquote {
|
|
color: #aaa;
|
|
padding-left: 10px;
|
|
border-left: 1px dotted #666;
|
|
}
|
|
|
|
|
|
pre {
|
|
background: rgba(0, 0, 0, 0.9);
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
padding: 10px;
|
|
font-size: 14px;
|
|
//color: #b5e853;
|
|
border-radius: 2px;
|
|
-moz-border-radius: 2px;
|
|
-webkit-border-radius: 2px;
|
|
text-wrap: normal;
|
|
overflow: auto;
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
pre.address {
|
|
margin-bottom: 0 ;
|
|
margin-top: 0 ;
|
|
font: inherit }
|
|
|
|
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
|
margin-left: 2em ;
|
|
margin-right: 2em }
|
|
|
|
code .ln { color: grey; } /* line numbers */
|
|
/*code, code { background-color: #eeeeee }*/
|
|
code .comment, code .comment, code .c1 { color: #999; }
|
|
code .keyword, code .keyword, code .kd, code .kn, code .k, code .o { color: #FC8F3F; font-weight: bold;}
|
|
code .nb { color: #c45918;}
|
|
code .s {color: #0a77c4;}
|
|
code .punctuation, code .p { color: white;}
|
|
code .literal.string, code .literal.string { color: #40BF32; }
|
|
code .name, code .name.builtin, code .nx { color: white; }
|
|
code .deleted, code .deleted { background-color: #DEB0A1}
|
|
code .inserted, code .inserted { background-color: #A3D289}
|
|
|
|
table {
|
|
width: 100%;
|
|
margin: 0 0 20px 0;
|
|
}
|
|
|
|
th {
|
|
text-align: left;
|
|
border-bottom: 1px dashed #b5e853;
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
td {
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
hr {
|
|
height: 0;
|
|
border: 0;
|
|
border-bottom: 1px dashed #b5e853;
|
|
color: #b5e853;
|
|
}
|
|
/* Links
|
|
* a, a:hover, a:visited
|
|
* */
|
|
|
|
a {
|
|
color: #63c0f5;
|
|
/*text-shadow: 0 0 5px rgba(104, 182, 255, 0.5);*/
|
|
text-decoration: none;
|
|
}
|
|
|
|
cite {
|
|
color: #00FF4A;
|
|
}
|
|
|
|
strong {
|
|
color: #C64216;
|
|
}
|
|
</style></head><body><h1>MIG command line</h1><p>The MIG command line is a terminal-based client interface that provides fast
|
|
interaction with the MIG API to launch actions and receive results. Its goal is
|
|
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.</p><p>To install the MIG command line, use <cite>go get mig.ninja/mig/client/mig</cite>. This
|
|
command will place a binary called <cite>mig</cite> under $GOPATH/bin/mig. On first run, it
|
|
will invite you to create a configuration:</p><pre><code class="code">$ mig file -path /etc -name "^passwd$" -content "jvehent"
|
|
no configuration file found at /home/jvehent/.migrc
|
|
would you like to generate a new configuration file at /home/jvehent/.migrc? Y/n> Y
|
|
found key 'Julien Vehent (ulfr) <jvehent@mozilla.com>' with fingerprint 'E60892BB9BD89A69F759A1A0A3D652173B763E8F'.
|
|
use this key? Y/n> Y
|
|
using key E60892BB9BD89A69F759A1A0A3D652173B763E8F
|
|
what is the location of the API? (ex: https://mig.example.net/api/v1/) > https://api.mig.example.net/api/v1/
|
|
MIG client configuration generated at /home/jvehent/.migrc
|
|
|
|
1226 agents will be targeted. ctrl+c to cancel. launching in 5 4....</code></pre><p>Subsequent runs of <cite>mig</cite> will read the configuration from <cite>$HOME/.migrc</cite> directly.</p><p>For more examples on how to use the mig command line, see the <a class="reference external" href="cheatsheet.rst.html">cheatsheet</a>.</p></body></html> |