- Launch 2 minimal local webservers
#.gitconfig file exists on 8081
python3 -m http.server --bind 127.0.0.1 8081
#.gitconfig file does not exist on 8080
python3 -m http.server --bind 127.0.0.1 8080
##Windows over Winrm | |
ansible all -m setup -i <IP-ADDRESS>, -u Administrator -e ansible_connection=winrm -e ansible_password="<PASSWORD-HERE>" -e ansible_winrm_server_cert_validation=ignore -e ansible_port=5986 | |
##Linux AWS SSH | |
ansible all -m setup -i <IP-ADDRESS>, -u ec2-user --private-key <PRIVATE-KEY> -v |
import subprocess | |
import json | |
lb1 = "label1" | |
lb2 = "label2" | |
gcloud_instances_command = "gcloud compute instances list --filter=\"labels.lb1:*\" --format json" | |
gcloud_disks_command = "gcloud compute disks list --filter=\"-labels:lb1 AND -labels:lb2\" --format json" | |
result = subprocess.run(gcloud_instances_command, shell=True, text=True, capture_output=True) |
Packages:
Files:
gcloud compute images list --project ubuntu-os-cloud --filter="name:ubuntu-2004*"
gcloud compute images describe cis-windows-server-2012-r2-v2-2-1-level-1 --project cis-public --format json
gcloud compute images list --project cis-public
gcloud compute images list --project windows-cloud
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
LjMwNTg4MjM1MjkgMC4zMDU4ODIzNTI5IDAuMzA1ODgyMzUyOQAQAoAC0hAREhNaJGNs | |
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
LjMwNTg4MjM1MjkgMC4zMDU4ODIzNTI5IDAuMzA1ODgyMzUyOQAQAoAC0hAREhNaJGNs | |
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp |
import click | |
@click.group() | |
def account(): | |
pass | |
@account.command() | |
def list(): | |
click.echo('This is the list command') |
`nmap -p0- -v -A -T4 <ip>` |