command-line-murders/i-053cf7ec3f9449b45
by SadServersMore by SadServers
Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. [sudo] password for admin: sudo: a password is required admin@i-0f9d17817910b720d:~$ ls -l total 8 drwxr-xr-x 2 admin root 4096 Sep 24 23:20 agent -rwxrwx--- 1 root root 360 Sep 24 23:20 webserver.py admin@i-0f9d17817910b720d:~$ cat webserver.py cat: webserver.py: Permission denied admin@i-0f9d17817910b720d:~$ nc localhost:
paris/i-0f9d17817910b720d 01:47
by SadServers<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Error response</title> </head> <body> <h1>Error response</h1> <p>Error code: 400</p> <p>Message: Bad HTTP/0.9 request type ('GEYT').</p> <p>Error code explanation: HTTPStatus.BAD_REQUEST - Bad request syntax o> </body> </html> GET / admin@i-07ffd3300e901c7ee:~$
paris/i-07ffd3300e901c7ee 01:57
by SadServersHere, the second and the third argument of open(2) are decoded by breakin traditional or native usage differs from ANSI or POSIX, the latter forms Structure pointers are dereferenced and the members are displayed as ap mand "ls -l /dev/null" is captured as: lstat("/dev/null", {st_mode=S_IFCHR|0666, st_rdev=makedev(0x1, 0x3), Notice how the 'struct stat' argument is dereferenced and how each member and numeric values. Also notice in this example that the first argument the system call fails, arguments may not always be dereferenced. For exa lstat("/foo/bar", 0xb004) = -1 ENOENT (No such file or directory) Manual page strace(1) line 17 (press h for help or q to quit)