This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Unlock the database | |
Linux: | |
Change all the ‘md5’ entries to ‘trust’ in the /opt/rapid7/nexpose/nsc/nxpgsql/nxpdata/pg_hba.conf file. | |
example: nano /opt/rapid7/nexpose/nsc/nxpgsql/nxpdata/pg_hba.conf | |
ctrl + w to find all instances of md5 | |
Windows: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": { | |
"Effect": "Allow", | |
"Action": "sts:AssumeRole", | |
"Resource": "arn:aws:iam::ACCOUNT-ID-WITHOUT-HYPHENS:role/Test*" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cask_args appdir: '/Applications' | |
tap 'homebrew/bundle' | |
tap 'caskroom/cask' | |
tap 'homebrew/services' | |
tap 'atlassian/tap' | |
brew 'vim' | |
brew 'git' | |
brew 'go' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [{ | |
"Effect": "Allow", | |
"Action": [ | |
"cloudtrail:LookupEvents", | |
"cloudtrail:DescribeTrails" | |
], | |
"Resource": "*" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$url = "https://s3.amazonaws.com/com.rapid7.razor.public/endpoint/agent/latest/windows/x86_64/PyForensicsAgent-x64.msi" | |
$output = "$PSScriptRoot\agentInstaller-x86_64.msi" | |
Invoke-WebRequest -Uri $url -OutFile $output | |
msiexec /i $output CUSTOM_TOKEN=<REPLACE ME> /qn | |
rm $output, cafile.pem, client.crt, client.key, client.pem, config.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -o agent_installer.sh https://s3.amazonaws.com/com.rapid7.razor.public/endpoint/agent/latest/linux/x86_64/agent_control_latest.sh | |
chmod u+x agent_installer.sh | |
./agent_installer.sh install_start --token <REPLACE ME> | |
rm agent_installer.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
####################################################################### | |
# | |
# Metasploit Segmentation and Firewall Testing Target | |
# | |
# The Segmentation and Firewall Testing MetaModule uses a server hosted | |
# by Rapid7 to determine what ports allow egress traffic out of a | |
# network. In some scenarios, you may want to set up your own egress | |
# testing server. This is useful when you want to test egress between |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [{ | |
"Effect": "Allow", | |
"Action": [ | |
"cloudtrail:LookupEvents", | |
"cloudtrail:DescribeTrails" | |
], | |
"Resource": "*" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"eventVersion": "1.05", | |
"userIdentity": { | |
"type": "IAMUser", | |
"principalId": "PRINCIPALIDHAHA", | |
"arn": "arn:aws:iam::123456789101:user/user1", | |
"accountId": "123456789101", | |
"accessKeyId": "ACCESSKEYIDHAHA", | |
"userName": "user1", | |
"sessionContext": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /tmp/ | |
wget http://download2.rapid7.com/download/InsightVM/Rapid7Setup-Linux64.bin | |
chmod +x Rapid7Setup-Linux64.bin | |
opt_custname="Test" | |
opt_custlastname="Last Name" | |
opt_custcpny="Company Name" | |
typ=true #false | |
eng=true #true |