Port Knocking via AWS APIs

We wrote this tool because we were tried of changing AWS EC2 security groups by hand and we did not want to leave TCP port 22 open to the Internet all the time.

YupPhrasing will add your ip address to the security group of an AWS EC2 instance so you can SSH into the instance from your current location. It is kind of like Port Knocking for AWS but it leverages AWS's APIs to add security group (e.g. firewall) rules on the fly. YupPhrasing is mostly designed as a proof of concept but could also be used to streamline accessing or debugging AWS EC2 instances.

$ ./yupPhrasing-v0_0_2.py Tweek 35.167.178.36
root        : CRITICAL 

 __   __           ____  _                   _             
 \ \ / /   _ _ __ |  _ \| |__  _ __ __ _ ___(_)_ __   __ _ 
  \ V / | | | '_ \| |_) | '_ \| '__/ _` / __| | '_ \ / _` |
   | || |_| | |_) |  __/| | | | | | (_| \__ \ | | | | (_| |
   |_| \__,_| .__/|_|   |_| |_|_|  \__,_|___/_|_| |_|\__, |
            |_|                                      |___/ 


root        : CRITICAL Alpha v0.0.2
root        : CRITICAL [+] Deleting Unused Security Group: yupPhrasing_Tweek_1510493232.49
root        : CRITICAL [+] IP Address WhiteListed by Adding a Security Group to the Instance!
root        : CRITICAL [+] CIDR Added: 104.154.74.221/32
Bryce KunzComment