Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 39 additions & 5 deletions eni-tool/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,41 @@
# ENI Tool
This tool can be used to find the resource that is using a specific IP address, or all resources using network interfaces
This tool can be used to find the resource that is using a specific IP address, or all resources using network interfaces


## Python Virtual Environment Setup (Linux)

**Create the Virtual Environment (Example):**
python3 -m venv ~/projects/aws-tools/eni-tool/v-env

**Activate the Virtual Environment (Example):**
source ~/projects/aws-tools/eni-tool/v-env/bin/activate

**Generate Requirements for project:**
To create requirements.txt:

1) Setup virtual environment
2) Install all python packages
Example:
~/projects/aws-tools/eni-tool/v-env/bin/pip3 install <PACKAGE_NAME>
3) Note: Make sure to upgrade pip
~/projects/aws-tools/eni-tool/v-env/bin/pip3 install --upgrade pip
4) run:
[Path to Virtual Environment Bin Directory]/pip3 freeze > requirements.txt
Example (Linux):
~/projects/aws-tools/eni-tool/v-env/bin/pip3 freeze > requirements.txt

**Install the Requirements/Dependancies (Example):**
~/projects/aws-tools/eni-tool/v-env/bin/pip3 install -r requirements.txt

**Example usage:**

**Template:**

`./eni.py <IP_ADDRESS>`

**Example Call:**

`./eni.py 192.168.10.10`
`./eni.py all`


Examples:
```
./eni.py 192.168.10.10
./eni.py all
46 changes: 46 additions & 0 deletions eni-tool/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
async-generator==1.10
attrs==22.1.0
beautifulsoup4==4.11.1
boto3==1.24.72
botocore==1.27.72
certifi==2022.6.15.2
charset-normalizer==2.1.1
cycler==0.11.0
DateTime==4.7
demjson==2.2.4
dnspython==2.2.1
fonttools==4.37.1
h11==0.13.0
idna==3.4
jmespath==1.0.1
jtutils==0.0.8
kiwisolver==1.4.4
leven==1.0.4
matplotlib==3.5.3
netaddr==0.8.0
nose==1.3.7
numpy==1.23.3
outcome==1.2.0
packaging==21.3
pandas==1.4.4
Pillow==9.2.0
pkg_resources==0.0.0
pyparsing==3.0.9
PySocks==1.7.1
python-csv==0.0.13
python-dateutil==2.8.2
pytz==2022.2.1
requests==2.28.1
s3transfer==0.6.0
selenium==4.4.3
six==1.16.0
sniffio==1.3.0
sortedcontainers==2.4.0
soupsieve==2.3.2.post1
trio==0.21.0
trio-websocket==0.9.2
urllib3==1.26.12
wsproto==1.2.0
xlrd==2.0.1
xmltodict==0.13.0
zope.interface==5.4.0
54 changes: 49 additions & 5 deletions sg-tool/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,53 @@
# SG Tool
This tool can be used to find ALL information related to a Security Group:
# SG Tool

This tool can be used to find ALL information related to a Security Group:

- Inbound + Outbound Rules
- Attached Resources
- References in other SGs

Examples:
```
./sg.py sg-abc123456
--

**Note:**
*Updates to this tool were done by:*
Name: Richard Knechtel
Company: Blast Motion
Date: 06/29/2022

--

## Python Virtual Environment Setup (Linux)

**Create the Virtual Environment (Example):**
python3 -m venv ~/projects/aws-tools/sg-tool/v-env

**Activate the Virtual Environment (Example):**
source ~/projects/aws-tools/sg-tool/v-env/bin/activate

**Generate Requirements for project:**
To create requirements.txt:

1) Setup virtual environment
2) Install all python packages
Example:
~/projects/aws-tools/sg-tool/v-env/bin/pip3 install <PACKAGE_NAME>
3) Note: Make sure to upgrade pip
~/projects/aws-tools/sg-tool/v-env/bin/pip3 install --upgrade pip
4) run:
[Path to Virtual Environment Bin Directory]/pip3 freeze > requirements.txt
Example (Linux):
~/projects/aws-tools/sg-tool/v-env/bin/pip3 freeze > requirements.txt

**Install the Requirements/Dependancies (Example):**
~/projects/aws-tools/sg-tool/v-env/bin/pip3 install -r requirements.txt

**Example usage:**

**Template:**

`./sg.py <SECURITY_GROUP_ID>`

**Example Call:**

`./sg.py sg-abc123456`

16 changes: 16 additions & 0 deletions sg-tool/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
boto3==1.24.15
botocore==1.27.15
click==8.1.3
DateTime==4.4
dnspython==2.2.1
futures3==1.0.0
jmespath==1.0.1
netaddr==0.8.0
pickle5==0.0.11
pkg_resources==0.0.0
python-dateutil==2.8.2
pytz==2022.1
s3transfer==0.6.0
six==1.16.0
urllib3==1.26.9
zope.interface==5.4.0
Loading