forked from p15670423/monkey
Merge branch 'develop' into attack_file_copy
This commit is contained in:
commit
022361e090
|
@ -13,9 +13,10 @@ Don't forget to add python to PATH or do so while installing it via this script.
|
||||||
|
|
||||||
## Linux
|
## Linux
|
||||||
|
|
||||||
You must have root permissions, but there is no need to run the script as root.<br>
|
You must have root permissions, but don't run the script as root.<br>
|
||||||
Launch deploy_linux.sh from scripts directory.<br>
|
Launch deploy_linux.sh from scripts directory.<br>
|
||||||
First argument is an empty directory (script can create one) and second is branch you want to clone.
|
First argument should be an empty directory (script can create one, default is ./infection_monkey) and second is the branch you want to clone (develop by default).
|
||||||
|
Choose a directory where you have all the relevant permissions, for e.g. /home/your_username
|
||||||
Example usages:<br>
|
Example usages:<br>
|
||||||
./deploy_linux.sh (deploys under ./infection_monkey)<br>
|
./deploy_linux.sh (deploys under ./infection_monkey)<br>
|
||||||
./deploy_linux.sh "/home/test/monkey" (deploys under /home/test/monkey)<br>
|
./deploy_linux.sh "/home/test/monkey" (deploys under /home/test/monkey)<br>
|
||||||
|
|
|
@ -32,6 +32,7 @@ class Monkey(Document):
|
||||||
critical_services = ListField(StringField())
|
critical_services = ListField(StringField())
|
||||||
pba_results = ListField()
|
pba_results = ListField()
|
||||||
ttl_ref = ReferenceField(MonkeyTtl)
|
ttl_ref = ReferenceField(MonkeyTtl)
|
||||||
|
tunnel = ReferenceField("self")
|
||||||
|
|
||||||
# LOGIC
|
# LOGIC
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
@ -373,8 +373,13 @@ class ReportService:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_exploits():
|
def get_exploits():
|
||||||
|
query = [{'$match': {'telem_category': 'exploit', 'data.result': True}},
|
||||||
|
{'$group': {'_id': {'ip_address': '$data.machine.ip_addr'},
|
||||||
|
'data': {'$first': '$$ROOT'},
|
||||||
|
}},
|
||||||
|
{"$replaceRoot": {"newRoot": "$data"}}]
|
||||||
exploits = []
|
exploits = []
|
||||||
for exploit in mongo.db.telemetry.find({'telem_category': 'exploit', 'data.result': True}):
|
for exploit in mongo.db.telemetry.aggregate(query):
|
||||||
new_exploit = ReportService.process_exploit(exploit)
|
new_exploit = ReportService.process_exploit(exploit)
|
||||||
if new_exploit not in exploits:
|
if new_exploit not in exploits:
|
||||||
exploits.append(new_exploit)
|
exploits.append(new_exploit)
|
||||||
|
|
|
@ -241,7 +241,7 @@ class RunMonkeyPageComponent extends AuthComponent {
|
||||||
<div style={{'marginTop': '1em', 'marginBottom': '1em'}}>
|
<div style={{'marginTop': '1em', 'marginBottom': '1em'}}>
|
||||||
<p className="alert alert-info">
|
<p className="alert alert-info">
|
||||||
<i className="glyphicon glyphicon-info-sign" style={{'marginRight': '5px'}}/>
|
<i className="glyphicon glyphicon-info-sign" style={{'marginRight': '5px'}}/>
|
||||||
Not sure what this is? Not seeing your AWS EC2 instances? <a href="https://github.com/guardicore/monkey/wiki/Monkey-Island:-Running-the-monkey-on-AWS-EC2-instances">Read the documentation</a>!
|
Not sure what this is? Not seeing your AWS EC2 instances? <a href="https://github.com/guardicore/monkey/wiki/Monkey-Island:-Running-the-monkey-on-AWS-EC2-instances" target="_blank">Read the documentation</a>!
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue