else echo -n "NO" fiadmin@i-025ebc807a8b09af0:~$ git status On branch master Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) deleted: webserver_v1.py Untracked files: (use "git add <file>..." to include in what will be committed) .bash_history .bash_logout .bashrc .config/ .profile .ssh/ agent/ no changes added to commit (use "git add" and/or "git commit -a") admin@i-025ebc807a8b09af0:~$ git restore webserver_v1.py admin@i-025ebc807a8b09af0:~$ git status On branch master Untracked files: (use "git add <file>..." to include in what will be committed) .bash_history .bash_logout .bashrc .config/ .profile .ssh/ agent/ nothing added to commit but untracked files present (use "git add" to track) admin@i-025ebc807a8b09af0:~$ ls agent webserver_v1.py admin@i-025ebc807a8b09af0:~$ more webserver_v1.py from flask import Flask, request import os app = Flask(__name__) @app.route('/', methods=['GET', 'POST']) def home(): if request.method == 'POST': entered_password = request.form.get('password') super_secret_password = os.environ.get('SUPERSECRETPASSWORD') if entered_password == super_secret_password: return 'Access granted!' # DO STUFF HERE return 'Access denied!' return ''' <form method="POST"> <label for="password">Password:</label> <input type="password" id="password" name="password"> <input type="submit" value="Submit"> </form> ''' if __name__ == '__main__': app.run() admin@i-025ebc807a8b09af0:~$
monaco/i-025ebc807a8b09af0
by SadServersMore by SadServers
114 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 ena admin@i-0aba8159a1a1cc7e9:~$ ps PID TTY TIME CMD 695 pts/1 00:00:00 sh 696 pts/1 00:00:00 bash 881 pts/1 00:00:00 ps admin@i-0aba8159a1a1cc7e9:~$ lsof -Ua COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME gotty 563 admin 1u unix 0x000000000e846a83 0t0 10471 type=STREAM gotty 563 admin 2u unix 0x000000000e846a83 0t0 10471 type=STREAM sadagent 564 admin 1u unix 0x00000000cc53c95b 0t0 10477 type=STREAM sadagent 564 admin 2u unix 0x00000000cc53c95b 0t0 10477 type=STREAM admin@i-0aba8159a1a1cc7e9:~$
paris/i-0aba8159a1a1cc7e9 05:20
by SadServersDisk /dev/nvme1n1: 1 GiB, 1073741824 bytes, 2097152 sectors Disk model: Amazon Elastic Block Store Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/nvme2n1: 1 GiB, 1073741824 bytes, 2097152 sectors Disk model: Amazon Elastic Block Store Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes admin@i-06e4118a8793fca70:~$